Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
8c1ec12a
Commit
8c1ec12a
authored
Jun 02, 2008
by
Loren Merritt
Browse files
CQP is incompatible with AQ
parent
9bdf19c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
encoder/encoder.c
View file @
8c1ec12a
...
...
@@ -373,7 +373,6 @@ static int x264_validate_parameters( x264_t *h )
h
->
param
.
analyse
.
b_fast_pskip
=
0
;
h
->
param
.
analyse
.
i_noise_reduction
=
0
;
h
->
param
.
analyse
.
i_subpel_refine
=
x264_clip3
(
h
->
param
.
analyse
.
i_subpel_refine
,
1
,
6
);
h
->
param
.
rc
.
i_aq_mode
=
0
;
}
if
(
h
->
param
.
rc
.
i_rc_method
==
X264_RC_CQP
)
{
...
...
@@ -382,6 +381,7 @@ static int x264_validate_parameters( x264_t *h )
float
qp_b
=
qp_p
+
6
*
log
(
h
->
param
.
rc
.
f_pb_factor
)
/
log
(
2
);
h
->
param
.
rc
.
i_qp_min
=
x264_clip3
(
(
int
)(
X264_MIN3
(
qp_p
,
qp_i
,
qp_b
)),
0
,
51
);
h
->
param
.
rc
.
i_qp_max
=
x264_clip3
(
(
int
)(
X264_MAX3
(
qp_p
,
qp_i
,
qp_b
)
+
.
999
),
0
,
51
);
h
->
param
.
rc
.
i_aq_mode
=
0
;
}
if
(
(
h
->
param
.
i_width
%
16
||
h
->
param
.
i_height
%
16
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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