diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-09 20:55:57 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-09 20:55:57 +0000 |
commit | 5ff7f345deb7552db74ce174ec7c61b201664df6 (patch) | |
tree | 289a78a4e09204db9b6edb25110c6ed475761d0f /libmpcodecs | |
parent | cff81fe49807a0f131e136f2778f95e697aa440d (diff) |
yuv422planar->yuy2 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7343 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_yuy2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmpcodecs/vf_yuy2.c b/libmpcodecs/vf_yuy2.c index 8af60aac12..c8091a0524 100644 --- a/libmpcodecs/vf_yuy2.c +++ b/libmpcodecs/vf_yuy2.c @@ -35,6 +35,10 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, mpi->w, mpi->h); + if(mpi->imgfmt==IMGFMT_422P) + yuv422ptoyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0], + mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]); + else yv12toyuy2(mpi->planes[0],mpi->planes[1],mpi->planes[2], dmpi->planes[0], mpi->w,mpi->h, mpi->stride[0],mpi->stride[1],dmpi->stride[0]); @@ -51,6 +55,7 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){ case IMGFMT_YV12: case IMGFMT_I420: case IMGFMT_IYUV: + case IMGFMT_422P: return vf_next_query_format(vf,IMGFMT_YUY2) & (~VFCAP_CSP_SUPPORTED_BY_HW); } return 0; @@ -64,7 +69,7 @@ static int open(vf_instance_t *vf, char* args){ } vf_info_t vf_info_yuy2 = { - "fast YV12->YUY2 conversion", + "fast YV12/Y422p -> YUY2 conversion", "yuy2", "A'rpi", "", |