comparison libvo/vo_vdpau.c @ 28611:00c0123b6df3

Add VOCAP_NOSLICES and use it to allow vo_vdpau to not support slices for YV12 - since VDPAU only has functions to upload the full frame at once there is no sense in supporting draw_slice for that.
author reimar
date Wed, 18 Feb 2009 12:30:15 +0000
parents 4172d83194f2
children 7b16ccf423b4
comparison
equal deleted inserted replaced
28610:2a1e03c1a4ba 28611:00c0123b6df3
652 return VO_TRUE; 652 return VO_TRUE;
653 } 653 }
654 654
655 static int query_format(uint32_t format) 655 static int query_format(uint32_t format)
656 { 656 {
657 int default_flags = VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_OSD;
657 switch (format) { 658 switch (format) {
658 case IMGFMT_YV12: 659 case IMGFMT_YV12:
660 return default_flags | VOCAP_NOSLICES;
659 case IMGFMT_VDPAU_MPEG1: 661 case IMGFMT_VDPAU_MPEG1:
660 case IMGFMT_VDPAU_MPEG2: 662 case IMGFMT_VDPAU_MPEG2:
661 case IMGFMT_VDPAU_H264: 663 case IMGFMT_VDPAU_H264:
662 case IMGFMT_VDPAU_WMV3: 664 case IMGFMT_VDPAU_WMV3:
663 case IMGFMT_VDPAU_VC1: 665 case IMGFMT_VDPAU_VC1:
664 return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_OSD; 666 return default_flags;
665 } 667 }
666 return 0; 668 return 0;
667 } 669 }
668 670
669 static void DestroyVdpauObjects(void) 671 static void DestroyVdpauObjects(void)