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
3efb87c0
Commit
3efb87c0
authored
Jan 17, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264.c: add psy mbtree and intra-refresh boolean options
parent
cc85d3ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
modules/codec/x264.c
modules/codec/x264.c
+26
-3
No files found.
modules/codec/x264.c
View file @
3efb87c0
...
...
@@ -142,6 +142,11 @@ static void Close( vlc_object_t * );
#define INTERLACED_TEXT N_("Interlaced mode")
#define INTERLACED_LONGTEXT N_( "Pure-interlaced mode.")
#define INTRAREFRESH_TEXT N_("Use Periodic Intra Refresh")
#define INTRAREFRESH_LONGTEXT N_("Use Periodic Intra Refresh instead of IDR frames")
#define MBTREE_TEXT N_("Use mb-tree ratecontrol")
#define MBTREE_LONGTEXT N_("You can disable use of Macroblock-tree on ratecontrol")
#define SLICE_COUNT N_("Force number of slices per frame")
#define SLICE_COUNT_LONGTEXT N_("Force rectangular slices and is overridden by other slicing optinos")
...
...
@@ -324,6 +329,9 @@ static void Close( vlc_object_t * );
#define DCT_DECIMATE_LONGTEXT N_( "Coefficient thresholding on P-frames." \
"Eliminate dct blocks containing only a small single coefficient.")
#define PSY_TEXT N_("Use Psy-optimizations")
#define PSY_LONGTEXT N_("Use all visual optimizations that can worsen both PSNR and SSIM")
/* Noise reduction 1 is too weak to measure, suggest at least 10 */
#define NR_TEXT N_("Noise reduction")
#define NR_LONGTEXT N_( "Dct-domain noise reduction. Adaptive pseudo-deadzone. " \
...
...
@@ -460,6 +468,8 @@ vlc_module_begin ()
add_string
(
SOUT_CFG_PREFIX
"psy-rd"
,
"1.0:0.0"
,
NULL
,
PSY_RD_TEXT
,
PSY_RD_LONGTEXT
,
false
)
add_bool
(
SOUT_CFG_PREFIX
"psy"
,
true
,
NULL
,
PSY_TEXT
,
PSY_LONGTEXT
,
false
)
add_string
(
SOUT_CFG_PREFIX
"level"
,
"5.1"
,
NULL
,
LEVEL_TEXT
,
LEVEL_LONGTEXT
,
false
)
...
...
@@ -608,6 +618,11 @@ vlc_module_begin ()
LOOKAHEAD_LONGTEXT
,
false
)
change_integer_range
(
0
,
60
)
add_bool
(
SOUT_CFG_PREFIX
"intra-refresh"
,
false
,
NULL
,
INTRAREFRESH_TEXT
,
INTRAREFRESH_LONGTEXT
,
false
)
add_bool
(
SOUT_CFG_PREFIX
"mbtree"
,
true
,
NULL
,
MBTREE_TEXT
,
MBTREE_LONGTEXT
,
false
)
add_bool
(
SOUT_CFG_PREFIX
"fast-pskip"
,
true
,
NULL
,
FAST_PSKIP_TEXT
,
FAST_PSKIP_LONGTEXT
,
false
)
...
...
@@ -673,9 +688,9 @@ static const char *const ppsz_sout_options[] = {
"pre-scenecut"
,
"psnr"
,
"qblur"
,
"qp"
,
"qcomp"
,
"qpstep"
,
"qpmax"
,
"qpmin"
,
"qp-max"
,
"qp-min"
,
"quiet"
,
"ratetol"
,
"ref"
,
"scenecut"
,
"sps-id"
,
"ssim"
,
"stats"
,
"subme"
,
"subpel"
,
"tolerance"
,
"trellis"
,
"verbose"
,
"vbv-bufsize"
,
"vbv-init"
,
"vbv-maxrate"
,
"weightb"
,
"weightp"
,
"aq-mode"
,
"aq-
strength"
,
"psy-rd"
,
"profile"
,
"lookahead"
,
"slices"
,
"slice-max-size
"
,
"slice-max-
mbs
"
,
NULL
"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
"
,
NULL
};
static
block_t
*
Encode
(
encoder_t
*
,
picture_t
*
);
...
...
@@ -830,6 +845,8 @@ static int Open ( vlc_object_t *p_this )
free
(
psz_val
);
}
p_sys
->
param
.
analyse
.
b_psy
=
var_GetBool
(
p_enc
,
SOUT_CFG_PREFIX
"psy"
);
psz_val
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"level"
);
if
(
psz_val
)
{
...
...
@@ -871,6 +888,10 @@ static int Open ( vlc_object_t *p_this )
if
(
i_val
>=
0
&&
i_val
<=
16
)
p_sys
->
param
.
i_bframe
=
i_val
;
#if X264_BUILD >= 82
p_sys
->
param
.
b_intra_refresh
=
var_GetBool
(
p_enc
,
SOUT_CFG_PREFIX
"intra-refresh"
);
#endif
#if X264_BUILD >= 78
psz_val
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"bpyramid"
);
p_sys
->
param
.
i_bframe_pyramid
=
X264_B_PYRAMID_NONE
;
...
...
@@ -1150,6 +1171,8 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
param
.
rc
.
b_stat_read
=
i_val
&
2
;
}
p_sys
->
param
.
rc
.
b_mb_tree
=
var_GetBool
(
p_enc
,
SOUT_CFG_PREFIX
"mbtree"
);
/* We need to initialize pthreadw32 before we open the encoder,
but only once for the whole application. Since pthreadw32
doesn't keep a refcount, do it ourselves. */
...
...
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