Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
3d571632
Commit
3d571632
authored
Feb 21, 2012
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264: add frame-packing option
parent
17779413
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
modules/codec/x264.c
modules/codec/x264.c
+20
-1
No files found.
modules/codec/x264.c
View file @
3d571632
...
...
@@ -153,6 +153,15 @@ static void x264_log( void *, int i_level, const char *psz, va_list );
#define INTERLACED_TEXT N_("Interlaced mode")
#define INTERLACED_LONGTEXT N_( "Pure-interlaced mode.")
#define FRAMEPACKING_TEXT N_("Frame packing")
#define FRAMEPACKING_LONGTEXT N_( "For stereoscopic videos define frame arrangement:\n" \
" 0: checkerboard - pixels are alternatively from L and R\n" \
" 1: column alternation - L and R are interlaced by column\n" \
" 2: row alternation - L and R are interlaced by row\n" \
" 3: side by side - L is on the left, R on the right\n" \
" 4: top bottom - L is on top, R on bottom\n" \
" 5: frame alternation - one view per frame" )
#define INTRAREFRESH_TEXT N_("Use Periodic Intra Refresh")
#define INTRAREFRESH_LONGTEXT N_("Use Periodic Intra Refresh instead of IDR frames")
...
...
@@ -499,6 +508,11 @@ vlc_module_begin ()
add_bool
(
SOUT_CFG_PREFIX
"interlaced"
,
false
,
INTERLACED_TEXT
,
INTERLACED_LONGTEXT
,
true
)
#if X264_BUILD >= 111
add_integer
(
SOUT_CFG_PREFIX
"frame-packing"
,
-
1
,
FRAMEPACKING_TEXT
,
FRAMEPACKING_LONGTEXT
,
true
)
change_integer_range
(
-
1
,
5
)
#endif
add_integer
(
SOUT_CFG_PREFIX
"slices"
,
0
,
SLICE_COUNT
,
SLICE_COUNT_LONGTEXT
,
true
)
add_integer
(
SOUT_CFG_PREFIX
"slice-max-size"
,
0
,
SLICE_MAX_SIZE
,
SLICE_MAX_SIZE_LONGTEXT
,
true
)
add_integer
(
SOUT_CFG_PREFIX
"slice-max-mbs"
,
0
,
SLICE_MAX_MBS
,
SLICE_MAX_MBS_LONGTEXT
,
true
)
...
...
@@ -714,7 +728,7 @@ static const char *const ppsz_sout_options[] = {
"verbose"
,
"vbv-bufsize"
,
"vbv-init"
,
"vbv-maxrate"
,
"weightb"
,
"weightp"
,
"aq-mode"
,
"aq-strength"
,
"psy-rd"
,
"psy"
,
"profile"
,
"lookahead"
,
"slices"
,
"slice-max-size"
,
"slice-max-mbs"
,
"intra-refresh"
,
"mbtree"
,
"hrd"
,
"tune"
,
"preset"
,
"opengop"
,
"bluray-compat"
,
NULL
"tune"
,
"preset"
,
"opengop"
,
"bluray-compat"
,
"frame-packing"
,
NULL
};
static
block_t
*
Encode
(
encoder_t
*
,
picture_t
*
);
...
...
@@ -936,6 +950,11 @@ static int Open ( vlc_object_t *p_this )
if
(
fabs
(
var_GetFloat
(
p_enc
,
SOUT_CFG_PREFIX
"aq-strength"
)
-
1
.
0
)
>
0
.
005
)
p_sys
->
param
.
rc
.
f_aq_strength
=
var_GetFloat
(
p_enc
,
SOUT_CFG_PREFIX
"aq-strength"
);
#if X264_BUILD >= 111
if
(
var_GetInteger
(
p_enc
,
SOUT_CFG_PREFIX
"frame-packing"
)
>
-
1
)
p_sys
->
param
.
i_frame_packing
=
var_GetInteger
(
p_enc
,
SOUT_CFG_PREFIX
"frame-packing"
);
#endif
if
(
var_GetBool
(
p_enc
,
SOUT_CFG_PREFIX
"verbose"
)
)
p_sys
->
param
.
i_log_level
=
X264_LOG_DEBUG
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment