comparison libvo/vo_x11.c @ 27883:96831cf06109

Remove code from unused and since ages deprecated draw_frame function.
author reimar
date Sat, 15 Nov 2008 16:40:48 +0000
parents 573ee864ce9a
children 9829cfa41d6d
comparison
equal deleted inserted replaced
27882:a875d666fee2 27883:96831cf06109
636 return 0; 636 return 0;
637 } 637 }
638 638
639 static int draw_frame(uint8_t * src[]) 639 static int draw_frame(uint8_t * src[])
640 { 640 {
641 #if 0 641 return VO_ERROR;
642 int stride[3] = { 0, 0, 0 };
643
644 if (in_format == IMGFMT_YUY2)
645 stride[0] = srcW * 2;
646 else if (in_format == IMGFMT_BGR8)
647 stride[0] = srcW;
648 else if (in_format == IMGFMT_BGR15)
649 stride[0] = srcW * 2;
650 else if (in_format == IMGFMT_BGR16)
651 stride[0] = srcW * 2;
652 else if (in_format == IMGFMT_BGR24)
653 stride[0] = srcW * 3;
654 else if (in_format == IMGFMT_BGR32)
655 stride[0] = srcW * 4;
656
657 return draw_slice(src, stride, srcW, srcH, 0, 0);
658 #else
659 mp_msg(MSGT_VO,MSGL_INFO, MSGTR_LIBVO_X11_DrawFrameCalled);
660 return -1;
661 #endif
662 } 642 }
663 643
664 static uint32_t get_image(mp_image_t * mpi) 644 static uint32_t get_image(mp_image_t * mpi)
665 { 645 {
666 if (zoomFlag || 646 if (zoomFlag ||