Skip to content
GitLab
Menu
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
aed0d8c4
Commit
aed0d8c4
authored
Jan 24, 2014
by
Alex Converse
Committed by
Gerrit Code Review
Jan 24, 2014
Browse files
Merge "Add some consts to vp9_calc_ss_err()."
parents
442ff059
ea283a62
Changes
4
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_onyx_if.c
View file @
aed0d8c4
...
...
@@ -3872,24 +3872,25 @@ void vp9_set_svc(VP9_PTR comp, int use_svc) {
return
;
}
int
vp9_calc_ss_err
(
YV12_BUFFER_CONFIG
*
source
,
YV12_BUFFER_CONFIG
*
dest
)
{
int
vp9_calc_ss_err
(
const
YV12_BUFFER_CONFIG
*
source
,
const
YV12_BUFFER_CONFIG
*
reference
)
{
int
i
,
j
;
int
total
=
0
;
uint8_t
*
src
=
source
->
y_buffer
;
uint8_t
*
dst
=
dest
->
y_buffer
;
const
uint8_t
*
src
=
source
->
y_buffer
;
const
uint8_t
*
ref
=
reference
->
y_buffer
;
// Loop through the Y plane raw and reconstruction data summing
// (square differences)
for
(
i
=
0
;
i
<
source
->
y_height
;
i
+=
16
)
{
for
(
j
=
0
;
j
<
source
->
y_width
;
j
+=
16
)
{
unsigned
int
sse
;
total
+=
vp9_mse16x16
(
src
+
j
,
source
->
y_stride
,
dst
+
j
,
dest
->
y_stride
,
&
sse
);
total
+=
vp9_mse16x16
(
src
+
j
,
source
->
y_stride
,
ref
+
j
,
reference
->
y_stride
,
&
sse
);
}
src
+=
16
*
source
->
y_stride
;
dst
+=
16
*
dest
->
y_stride
;
ref
+=
16
*
reference
->
y_stride
;
}
return
total
;
...
...
vp9/encoder/vp9_onyx_int.h
View file @
aed0d8c4
...
...
@@ -810,7 +810,8 @@ void vp9_activity_masking(VP9_COMP *cpi, MACROBLOCK *x);
void
vp9_set_speed_features
(
VP9_COMP
*
cpi
);
int
vp9_calc_ss_err
(
YV12_BUFFER_CONFIG
*
source
,
YV12_BUFFER_CONFIG
*
dest
);
int
vp9_calc_ss_err
(
const
YV12_BUFFER_CONFIG
*
source
,
const
YV12_BUFFER_CONFIG
*
reference
);
void
vp9_alloc_compressor_data
(
VP9_COMP
*
cpi
);
...
...
vp9/encoder/vp9_picklpf.c
View file @
aed0d8c4
...
...
@@ -34,7 +34,7 @@ static int get_max_filter_level(VP9_COMP *cpi, int base_qindex) {
void
vp9_set_alt_lf_level
(
VP9_COMP
*
cpi
,
int
filt_val
)
{
}
static
void
search_filter_level
(
YV12_BUFFER_CONFIG
*
sd
,
VP9_COMP
*
cpi
,
static
void
search_filter_level
(
const
YV12_BUFFER_CONFIG
*
sd
,
VP9_COMP
*
cpi
,
int
partial
)
{
MACROBLOCKD
*
const
xd
=
&
cpi
->
mb
.
e_mbd
;
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
...
...
@@ -128,7 +128,8 @@ static void search_filter_level(YV12_BUFFER_CONFIG *sd, VP9_COMP *cpi,
lf
->
filter_level
=
filt_best
;
}
void
vp9_pick_filter_level
(
YV12_BUFFER_CONFIG
*
sd
,
VP9_COMP
*
cpi
,
int
method
)
{
void
vp9_pick_filter_level
(
const
YV12_BUFFER_CONFIG
*
sd
,
VP9_COMP
*
cpi
,
int
method
)
{
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
struct
loopfilter
*
const
lf
=
&
cm
->
lf
;
...
...
vp9/encoder/vp9_picklpf.h
View file @
aed0d8c4
...
...
@@ -21,7 +21,7 @@ struct VP9_COMP;
void
vp9_set_alt_lf_level
(
struct
VP9_COMP
*
cpi
,
int
filt_val
);
void
vp9_pick_filter_level
(
struct
yv12_buffer_config
*
sd
,
void
vp9_pick_filter_level
(
const
struct
yv12_buffer_config
*
sd
,
struct
VP9_COMP
*
cpi
,
int
method
);
#ifdef __cplusplus
}
// extern "C"
...
...
Write
Preview
Supports
Markdown
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