mirror of https://github.com/mpv-player/mpv
Use memcpy_pic2 instead of reimplementing it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29402 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
32a7d61acc
commit
95dcb65379
|
@ -1011,17 +1011,11 @@ static int draw_frame(uint8_t *src[])
|
|||
|
||||
static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
|
||||
{
|
||||
uint8_t *d, *s;
|
||||
uint8_t *d;
|
||||
|
||||
d = center + fb_line_len * y + fb_pixel_size * x;
|
||||
|
||||
s = src[0];
|
||||
while (h) {
|
||||
fast_memcpy(d, s, w * fb_pixel_size);
|
||||
d += fb_line_len;
|
||||
s += stride[0];
|
||||
h--;
|
||||
}
|
||||
memcpy_pic2(d, src[0], w * fb_pixel_size, h, fb_line_len, stride[0], 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue