Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
85baa887
Commit
85baa887
authored
Nov 09, 2009
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264: add option to fiddle weighting for P-frames from x264_BUILD >= 79
parent
b0b94a1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/codec/x264.c
modules/codec/x264.c
+17
-1
No files found.
modules/codec/x264.c
View file @
85baa887
...
...
@@ -240,6 +240,12 @@ static void Close( vlc_object_t * );
#define WEIGHTB_TEXT N_("Weighted prediction for B-frames")
#define WEIGHTB_LONGTEXT N_( "Weighted prediction for B-frames.")
#define WEIGHTP_TEXT N_("Weighted prediction for P-frames")
#define WEIGHTP_LONGTEXT N_(" Weighted prediction for P-frames: "\
" - 0: Disabled\n"\
" - 1: Blind offset\n"\
" - 2: Smart analysis\n" )
#define ME_TEXT N_("Integer pixel motion estimation method")
#define ME_LONGTEXT N_( "Selects the motion estimation algorithm: "\
" - dia: diamond search, radius 1 (fast)\n" \
...
...
@@ -539,6 +545,10 @@ vlc_module_begin ()
add_bool
(
SOUT_CFG_PREFIX
"weightb"
,
true
,
NULL
,
WEIGHTB_TEXT
,
WEIGHTB_LONGTEXT
,
false
)
add_integer
(
SOUT_CFG_PREFIX
"weightp"
,
2
,
NULL
,
WEIGHTP_TEXT
,
WEIGHTP_LONGTEXT
,
false
)
change_integer_range
(
0
,
2
)
add_string
(
SOUT_CFG_PREFIX
"me"
,
"hex"
,
NULL
,
ME_TEXT
,
ME_LONGTEXT
,
false
)
change_string_list
(
enc_me_list
,
enc_me_list_text
,
0
);
...
...
@@ -640,7 +650,7 @@ 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"
,
"aq-mode"
,
"verbose"
,
"vbv-bufsize"
,
"vbv-init"
,
"vbv-maxrate"
,
"weightb"
,
"
weightp"
,
"
aq-mode"
,
"aq-strength"
,
"psy-rd"
,
"profile"
,
NULL
};
...
...
@@ -917,6 +927,9 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
param
.
analyse
.
b_ssim
=
var_GetBool
(
p_enc
,
SOUT_CFG_PREFIX
"ssim"
);
p_sys
->
param
.
analyse
.
b_weighted_bipred
=
var_GetBool
(
p_enc
,
SOUT_CFG_PREFIX
"weightb"
);
#if X264_BUILD >= 79
p_sys
->
param
.
analyse
.
i_weighted_pred
=
var_GetInteger
(
p_enc
,
SOUT_CFG_PREFIX
"weightp"
);
#endif
p_sys
->
param
.
i_bframe_adaptive
=
var_GetInteger
(
p_enc
,
SOUT_CFG_PREFIX
"b-adapt"
);
...
...
@@ -1041,6 +1054,9 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
param
.
analyse
.
b_transform_8x8
=
0
;
p_sys
->
param
.
b_cabac
=
0
;
p_sys
->
param
.
i_bframe
=
0
;
#if X264_BUILD >= 79
p_sys
->
param
.
analyse
.
i_weighted_pred
=
X264_WEIGHTP_NONE
;
#endif
}
else
if
(
!
strcasecmp
(
psz_val
,
"main"
)
)
{
...
...
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