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
065972f9
Commit
065972f9
authored
11 years ago
by
Dmitry Kovalev
Browse files
Options
Download
Patches
Plain Diff
Adding const to vp9_quantize_b_{32x32,} parameters.
Change-Id: I56f8c50ac382202f66040cd9cfaa05d889572fc7
parent
b4139d58
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vp9/common/vp9_rtcd_defs.sh
+2
-2
vp9/common/vp9_rtcd_defs.sh
vp9/encoder/vp9_quantize.c
+15
-12
vp9/encoder/vp9_quantize.c
with
17 additions
and
14 deletions
vp9/common/vp9_rtcd_defs.sh
+
2
−
2
View file @
065972f9
...
...
@@ -671,10 +671,10 @@ specialize vp9_block_error $sse2_x86inc
prototype void vp9_subtract_block
"int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride"
specialize vp9_subtract_block
$sse2_x86inc
prototype void vp9_quantize_b
"int16_t *coeff_ptr, intptr_t n_coeffs, int skip_block, int16_t *zbin_ptr, int16_t *round_ptr, int16_t *quant_ptr, int16_t *quant_shift_ptr, int16_t *qcoeff_ptr, int16_t *dqcoeff_ptr, int16_t *dequant_ptr, int zbin_oq_value, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan"
prototype void vp9_quantize_b
"
const
int16_t *coeff_ptr, intptr_t n_coeffs, int skip_block,
const
int16_t *zbin_ptr,
const
int16_t *round_ptr,
const
int16_t *quant_ptr,
const
int16_t *quant_shift_ptr, int16_t *qcoeff_ptr, int16_t *dqcoeff_ptr,
const
int16_t *dequant_ptr, int zbin_oq_value, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan"
specialize vp9_quantize_b
$ssse3_x86_64
prototype void vp9_quantize_b_32x32
"int16_t *coeff_ptr, intptr_t n_coeffs, int skip_block, int16_t *zbin_ptr, int16_t *round_ptr, int16_t *quant_ptr, int16_t *quant_shift_ptr, int16_t *qcoeff_ptr, int16_t *dqcoeff_ptr, int16_t *dequant_ptr, int zbin_oq_value, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan"
prototype void vp9_quantize_b_32x32
"
const
int16_t *coeff_ptr, intptr_t n_coeffs, int skip_block,
const
int16_t *zbin_ptr,
const
int16_t *round_ptr,
const
int16_t *quant_ptr,
const
int16_t *quant_shift_ptr, int16_t *qcoeff_ptr, int16_t *dqcoeff_ptr,
const
int16_t *dequant_ptr, int zbin_oq_value, uint16_t *eob_ptr, const int16_t *scan, const int16_t *iscan"
specialize vp9_quantize_b_32x32
$ssse3_x86_64
#
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/vp9_quantize.c
+
15
−
12
View file @
065972f9
...
...
@@ -22,12 +22,14 @@
extern
int
enc_debug
;
#endif
void
vp9_quantize_b_c
(
int16_t
*
coeff_ptr
,
intptr_t
n_coeffs
,
int
skip_block
,
int16_t
*
zbin_ptr
,
int16_t
*
round_ptr
,
int16_t
*
quant_ptr
,
int16_t
*
quant_shift_ptr
,
int16_t
*
qcoeff_ptr
,
int16_t
*
dqcoeff_ptr
,
int16_t
*
dequant_ptr
,
int
zbin_oq_value
,
uint16_t
*
eob_ptr
,
const
int16_t
*
scan
,
const
int16_t
*
iscan
)
{
void
vp9_quantize_b_c
(
const
int16_t
*
coeff_ptr
,
intptr_t
n_coeffs
,
int
skip_block
,
const
int16_t
*
zbin_ptr
,
const
int16_t
*
round_ptr
,
const
int16_t
*
quant_ptr
,
const
int16_t
*
quant_shift_ptr
,
int16_t
*
qcoeff_ptr
,
int16_t
*
dqcoeff_ptr
,
const
int16_t
*
dequant_ptr
,
int
zbin_oq_value
,
uint16_t
*
eob_ptr
,
const
int16_t
*
scan
,
const
int16_t
*
iscan
)
{
int
i
,
rc
,
eob
;
int
zbins
[
2
],
nzbins
[
2
],
zbin
;
int
x
,
y
,
z
,
sz
;
...
...
@@ -86,14 +88,15 @@ void vp9_quantize_b_c(int16_t *coeff_ptr, intptr_t n_coeffs, int skip_block,
*
eob_ptr
=
eob
+
1
;
}
void
vp9_quantize_b_32x32_c
(
int16_t
*
coeff_ptr
,
intptr_t
n_coeffs
,
void
vp9_quantize_b_32x32_c
(
const
int16_t
*
coeff_ptr
,
intptr_t
n_coeffs
,
int
skip_block
,
int16_t
*
zbin_ptr
,
int16_t
*
round_ptr
,
int16_t
*
quant_ptr
,
int16_t
*
quant_shift_ptr
,
const
int16_t
*
zbin_ptr
,
const
int16_t
*
round_ptr
,
const
int16_t
*
quant_ptr
,
const
int16_t
*
quant_shift_ptr
,
int16_t
*
qcoeff_ptr
,
int16_t
*
dqcoeff_ptr
,
int16_t
*
dequant_ptr
,
int
zbin_oq_value
,
u
int
16_t
*
eob_ptr
,
const
int16_t
*
scan
,
const
int16_t
*
iscan
)
{
const
int16_t
*
dequant_ptr
,
int
zbin_oq_value
,
u
int16_t
*
eob_ptr
,
const
int16_t
*
scan
,
const
int16_t
*
iscan
)
{
int
i
,
rc
,
eob
;
int
zbins
[
2
],
nzbins
[
2
];
int
x
,
y
,
z
,
sz
;
...
...
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