mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02: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)
|
static int check_intra_pred_mode(int mode, int mb_x, int mb_y)
|
||||||
{
|
{
|
||||||
if (mode == DC_PRED8x8) {
|
if (mode == DC_PRED8x8) {
|
||||||
if (!(mb_x|mb_y))
|
if (!mb_x) {
|
||||||
mode = DC_128_PRED8x8;
|
mode = mb_y ? TOP_DC_PRED8x8 : DC_128_PRED8x8;
|
||||||
else if (!mb_y)
|
} else if (!mb_y) {
|
||||||
mode = LEFT_DC_PRED8x8;
|
mode = mb_x ? LEFT_DC_PRED8x8 : DC_128_PRED8x8;
|
||||||
else if (!mb_x)
|
}
|
||||||
mode = TOP_DC_PRED8x8;
|
|
||||||
}
|
}
|
||||||
return mode;
|
return mode;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user