Mercurial > mplayer.hg
comparison libmpcodecs/vf_vo.c @ 32488:49722126eba9
Add and use a IMGFMT_IS_HWACCEL define.
author | reimar |
---|---|
date | Wed, 03 Nov 2010 16:39:52 +0000 |
parents | fbe5c829c69b |
children | 899d817e56fc |
comparison
equal
deleted
inserted
replaced
32487:7e21cc8ad3d4 | 32488:49722126eba9 |
---|---|
155 static void get_image(struct vf_instance *vf, | 155 static void get_image(struct vf_instance *vf, |
156 mp_image_t *mpi){ | 156 mp_image_t *mpi){ |
157 if(!vo_config_count) return; | 157 if(!vo_config_count) return; |
158 // GET_IMAGE is required for hardware-accelerated formats | 158 // GET_IMAGE is required for hardware-accelerated formats |
159 if(vo_directrendering || | 159 if(vo_directrendering || |
160 IMGFMT_IS_XVMC(mpi->imgfmt) || IMGFMT_IS_VDPAU(mpi->imgfmt)) | 160 IMGFMT_IS_HWACCEL(mpi->imgfmt)) |
161 video_out->control(VOCTRL_GET_IMAGE,mpi); | 161 video_out->control(VOCTRL_GET_IMAGE,mpi); |
162 } | 162 } |
163 | 163 |
164 static int put_image(struct vf_instance *vf, | 164 static int put_image(struct vf_instance *vf, |
165 mp_image_t *mpi, double pts){ | 165 mp_image_t *mpi, double pts){ |