Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
28bd1dd1
Commit
28bd1dd1
authored
Feb 28, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Feb 28, 2014
Browse files
Merge "Adding consts to arguments of vp9_block_error()."
parents
51e0e0c0
791e9bda
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_rtcd_defs.sh
View file @
28bd1dd1
...
...
@@ -683,7 +683,7 @@ prototype unsigned int vp9_get_mb_ss "const int16_t *"
specialize vp9_get_mb_ss mmx sse2
# ENCODEMB INVOKE
prototype int64_t vp9_block_error
"int16_t *coeff, int16_t *dqcoeff, intptr_t block_size, int64_t *ssz"
prototype int64_t vp9_block_error
"
const
int16_t *coeff,
const
int16_t *dqcoeff, intptr_t block_size, int64_t *ssz"
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"
...
...
vp9/encoder/vp9_rdopt.c
View file @
28bd1dd1
...
...
@@ -520,15 +520,15 @@ static void model_rd_for_sb_y_tx(VP9_COMP *cpi, BLOCK_SIZE bsize,
*
out_dist_sum
=
dist_sum
<<
4
;
}
int64_t
vp9_block_error_c
(
int16_t
*
coeff
,
int16_t
*
dqcoeff
,
int64_t
vp9_block_error_c
(
const
int16_t
*
coeff
,
const
int16_t
*
dqcoeff
,
intptr_t
block_size
,
int64_t
*
ssz
)
{
int
i
;
int64_t
error
=
0
,
sqcoeff
=
0
;
for
(
i
=
0
;
i
<
block_size
;
i
++
)
{
int
this_
diff
=
coeff
[
i
]
-
dqcoeff
[
i
];
error
+=
(
unsigned
)
this_
diff
*
this_
diff
;
sqcoeff
+=
(
unsigned
)
coeff
[
i
]
*
coeff
[
i
];
const
int
diff
=
coeff
[
i
]
-
dqcoeff
[
i
];
error
+=
diff
*
diff
;
sqcoeff
+=
coeff
[
i
]
*
coeff
[
i
];
}
*
ssz
=
sqcoeff
;
...
...
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