Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
fd294c55
Commit
fd294c55
authored
Dec 19, 2011
by
Yunqing Wang
Committed by
Gerrit Code Review
Dec 19, 2011
Browse files
Merge "Merge mr_pick_inter_mode and pick_inter_mode"
parents
0ccefd2c
c647ec44
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
325 additions
and
735 deletions
+325
-735
vp8/encoder/encodeframe.c
vp8/encoder/encodeframe.c
+1
-16
vp8/encoder/pickinter.c
vp8/encoder/pickinter.c
+318
-711
vp8/encoder/pickinter.h
vp8/encoder/pickinter.h
+2
-8
vp8/vp8_cx_iface.c
vp8/vp8_cx_iface.c
+4
-0
No files found.
vp8/encoder/encodeframe.c
View file @
fd294c55
...
...
@@ -1186,24 +1186,9 @@ int vp8cx_encode_inter_macroblock
}
else
{
#if CONFIG_MULTI_RES_ENCODING
if
(
cpi
->
oxcf
.
mr_encoder_id
==
0
)
{
/* Lowest-resolution encoding */
vp8_pick_inter_mode
(
cpi
,
x
,
recon_yoffset
,
recon_uvoffset
,
&
rate
,
&
distortion
,
&
intra_error
);
}
else
{
/* Higher-resolution encoding */
vp8_mr_pick_inter_mode
(
cpi
,
x
,
recon_yoffset
,
recon_uvoffset
,
&
rate
,
&
distortion
,
&
intra_error
,
mb_row
,
mb_col
);
}
#else
vp8_pick_inter_mode
(
cpi
,
x
,
recon_yoffset
,
recon_uvoffset
,
&
rate
,
&
distortion
,
&
intra_error
);
#endif
}
cpi
->
prediction_error
+=
distortion
;
cpi
->
intra_error
+=
intra_error
;
...
...
vp8/encoder/pickinter.c
View file @
fd294c55
This diff is collapsed.
Click to expand it.
vp8/encoder/pickinter.h
View file @
fd294c55
...
...
@@ -16,14 +16,8 @@
extern
void
vp8_pick_inter_mode
(
VP8_COMP
*
cpi
,
MACROBLOCK
*
x
,
int
recon_yoffset
,
int
recon_uvoffset
,
int
*
returnrate
,
int
*
returndistortion
,
int
*
returnintra
);
int
*
returndistortion
,
int
*
returnintra
,
int
mb_row
,
int
mb_col
);
extern
void
vp8_pick_intra_mode
(
VP8_COMP
*
cpi
,
MACROBLOCK
*
x
,
int
*
rate
);
#if CONFIG_MULTI_RES_ENCODING
extern
void
vp8_mr_pick_inter_mode
(
VP8_COMP
*
cpi
,
MACROBLOCK
*
x
,
int
recon_yoffset
,
int
recon_uvoffset
,
int
*
returnrate
,
int
*
returndistortion
,
int
*
returnintra
,
int
mb_row
,
int
mb_col
);
#endif
#endif
vp8/vp8_cx_iface.c
View file @
fd294c55
...
...
@@ -361,6 +361,10 @@ static vpx_codec_err_t set_vp8e_config(VP8_CONFIG *oxcf,
}
#if CONFIG_MULTI_RES_ENCODING
/* When mr_cfg is NULL, oxcf->mr_total_resolutions and oxcf->mr_encoder_id
* are both memset to 0, which ensures the correct logic under this
* situation.
*/
if
(
mr_cfg
)
{
oxcf
->
mr_total_resolutions
=
mr_cfg
->
mr_total_resolutions
;
...
...
Write
Preview
Markdown
is supported
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