diff options
author | Christophe Thommeret <hftom@free.fr> | 2010-05-21 11:51:46 +0200 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2010-05-21 11:51:46 +0200 |
commit | d214c516d4260b6ef0c925897dacc02befe394f7 (patch) | |
tree | bda7c443921cf7608506421eff3832731eaeef6c /src | |
parent | 7da363097cc2ce5c13d4799c7c0523882976b611 (diff) | |
download | xine-lib-d214c516d4260b6ef0c925897dacc02befe394f7.tar.gz xine-lib-d214c516d4260b6ef0c925897dacc02befe394f7.tar.bz2 |
Check for mpeg4-part2 vdpau hardware support.
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_vdpau.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index 668ca1f1b..852b4f856 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -2756,6 +2756,16 @@ static vo_driver_t *vdpau_open_plugin (video_driver_class_t *class_gen, const vo else this->capabilities |= VO_CAP_VDPAU_MPEG12; +#ifdef VDP_DECODER_PROFILE_MPEG4_PART2_ASP + st = vdp_decoder_query_capabilities( vdp_device, VDP_DECODER_PROFILE_MPEG4_PART2_ASP, &ok, &ml, &mr, &mw, &mh ); + if ( st != VDP_STATUS_OK ) + fprintf(stderr, "vo_vdpau: getting mpeg4-part2_supported failed! : %s\n", vdp_get_error_string( st ) ); + else if ( !ok ) + fprintf(stderr, "vo_vdpau: this hardware doesn't support mpeg4-part2.\n" ); + else + this->capabilities |= VO_CAP_VDPAU_MPEG4; +#endif + for ( i=0; i<NUM_FRAMES_BACK; i++) this->back_frame[i] = NULL; |