Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
4bfdc331
Commit
4bfdc331
authored
10 years ago
by
Johann
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Download
Plain Diff
Merge "Remove unused vp8_strict_quantize"
parents
ad4edc0b
f1f7bcd2
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
sandbox/Jingning/experimental
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vp8/encoder/encodemb.c
+0
-7
vp8/encoder/encodemb.c
vp8/encoder/quantize.c
+0
-58
vp8/encoder/quantize.c
with
0 additions
and
65 deletions
vp8/encoder/encodemb.c
+
0
−
7
View file @
4bfdc331
...
...
@@ -258,13 +258,6 @@ static void optimize_b(MACROBLOCK *mb, int ib, int type,
b
=
&
mb
->
block
[
ib
];
d
=
&
mb
->
e_mbd
.
block
[
ib
];
/* Enable this to test the effect of RDO as a replacement for the dynamic
* zero bin instead of an augmentation of it.
*/
#if 0
vp8_strict_quantize_b(b, d);
#endif
dequant_ptr
=
d
->
dequant
;
coeff_ptr
=
b
->
coeff
;
qcoeff_ptr
=
d
->
qcoeff
;
...
...
This diff is collapsed.
Click to expand it.
vp8/encoder/quantize.c
+
0
−
58
View file @
4bfdc331
...
...
@@ -101,64 +101,6 @@ void vp8_regular_quantize_b_c(BLOCK *b, BLOCKD *d)
*
d
->
eob
=
(
char
)(
eob
+
1
);
}
/* Perform regular quantization, with unbiased rounding and no zero bin. */
void
vp8_strict_quantize_b_c
(
BLOCK
*
b
,
BLOCKD
*
d
)
{
int
i
;
int
rc
;
int
eob
;
int
x
;
int
y
;
int
z
;
int
sz
;
short
*
coeff_ptr
;
short
*
quant_ptr
;
short
*
quant_shift_ptr
;
short
*
qcoeff_ptr
;
short
*
dqcoeff_ptr
;
short
*
dequant_ptr
;
coeff_ptr
=
b
->
coeff
;
quant_ptr
=
b
->
quant
;
quant_shift_ptr
=
b
->
quant_shift
;
qcoeff_ptr
=
d
->
qcoeff
;
dqcoeff_ptr
=
d
->
dqcoeff
;
dequant_ptr
=
d
->
dequant
;
eob
=
-
1
;
vpx_memset
(
qcoeff_ptr
,
0
,
32
);
vpx_memset
(
dqcoeff_ptr
,
0
,
32
);
for
(
i
=
0
;
i
<
16
;
i
++
)
{
int
dq
;
int
rounding
;
/*TODO: These arrays should be stored in zig-zag order.*/
rc
=
vp8_default_zig_zag1d
[
i
];
z
=
coeff_ptr
[
rc
];
dq
=
dequant_ptr
[
rc
];
rounding
=
dq
>>
1
;
/* Sign of z. */
sz
=
-
(
z
<
0
);
x
=
(
z
+
sz
)
^
sz
;
x
+=
rounding
;
if
(
x
>=
dq
)
{
/* Quantize x. */
y
=
((((
x
*
quant_ptr
[
rc
])
>>
16
)
+
x
)
*
quant_shift_ptr
[
rc
])
>>
16
;
/* Put the sign back. */
x
=
(
y
+
sz
)
^
sz
;
/* Save the coefficient and its dequantized value. */
qcoeff_ptr
[
rc
]
=
x
;
dqcoeff_ptr
[
rc
]
=
x
*
dq
;
/* Remember the last non-zero coefficient. */
if
(
y
)
eob
=
i
;
}
}
*
d
->
eob
=
(
char
)(
eob
+
1
);
}
void
vp8_quantize_mby_c
(
MACROBLOCK
*
x
)
{
int
i
;
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets