From b0e8fdd803216a06f014e93912e72cb6eff53426 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Mon, 1 Oct 2001 09:15:07 +0000 Subject: Use the video_out copy function, if available. dvdnav menus are working now, when using the XShm video_out driver. CVS patchset: 711 CVS date: 2001/10/01 09:15:07 --- src/libvfill/xine_decoder.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/libvfill/xine_decoder.c b/src/libvfill/xine_decoder.c index b934b8a92..dbe834467 100644 --- a/src/libvfill/xine_decoder.c +++ b/src/libvfill/xine_decoder.c @@ -85,6 +85,21 @@ static void videofill_decode_data (video_decoder_t *this_gen, buf_element_t *buf img->PTS = 0; img->bad_frame = 0; + if (img->copy) { + int height = last_img->height; + int stride = last_img->width; + uint8_t* src[3]; + + src[0] = img->base[0]; + src[1] = img->base[1]; + src[2] = img->base[2]; + while ((height -= 16) >= 0) { + img->copy(img, src); + src[0] += 16 * stride; + src[1] += 4 * stride; + src[2] += 4 * stride; + } + } img->draw(img); img->free(img); } -- cgit v1.2.3