mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-19 20:31:12 +00:00
VP8: shave a few clocks off check_intra_pred_mode
Originally committed as revision 24458 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a58ed9a2e7
commit
a71abb714e
@ -929,12 +929,11 @@ void xchg_mb_border(uint8_t *top_border, uint8_t *src_y, uint8_t *src_cb, uint8_
|
||||
static int check_intra_pred_mode(int mode, int mb_x, int mb_y)
|
||||
{
|
||||
if (mode == DC_PRED8x8) {
|
||||
if (!(mb_x|mb_y))
|
||||
mode = DC_128_PRED8x8;
|
||||
else if (!mb_y)
|
||||
mode = LEFT_DC_PRED8x8;
|
||||
else if (!mb_x)
|
||||
mode = TOP_DC_PRED8x8;
|
||||
if (!mb_x) {
|
||||
mode = mb_y ? TOP_DC_PRED8x8 : DC_128_PRED8x8;
|
||||
} else if (!mb_y) {
|
||||
mode = mb_x ? LEFT_DC_PRED8x8 : DC_128_PRED8x8;
|
||||
}
|
||||
}
|
||||
return mode;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user