diff options
author | siretart <siretart@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-01 06:53:56 +0000 |
---|---|---|
committer | siretart <siretart@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-01 06:53:56 +0000 |
commit | 88c4cbb3f9e741fe44ea825b6966d63c6effa5f3 (patch) | |
tree | ef6eb65388e7f93728b255812c9b1496a60bbe67 /libmpcodecs | |
parent | e629ec20bc9dc5538e2defb8eca94b2a85b8c2a1 (diff) | |
download | mpv-88c4cbb3f9e741fe44ea825b6966d63c6effa5f3.tar.bz2 mpv-88c4cbb3f9e741fe44ea825b6966d63c6effa5f3.tar.xz |
remove palette8torgb15 and palette8tobgr15
They contain exactly the same code as their 16bit variants, so this is
effectively code de-duplication.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31298 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf_palette.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libmpcodecs/vf_palette.c b/libmpcodecs/vf_palette.c index cef47df788..44a4756121 100644 --- a/libmpcodecs/vf_palette.c +++ b/libmpcodecs/vf_palette.c @@ -114,11 +114,6 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){ // no stride conversion needed switch(IMGFMT_RGB_DEPTH(dmpi->imgfmt)){ case 15: - if (IMGFMT_IS_BGR(dmpi->imgfmt)) - palette8tobgr15(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]); - else - palette8torgb15(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]); - break; case 16: if (IMGFMT_IS_BGR(dmpi->imgfmt)) palette8tobgr16(mpi->planes[0],dmpi->planes[0],mpi->h*mpi->w,mpi->planes[1]); @@ -145,11 +140,6 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts){ unsigned char* dst=dmpi->planes[0]+y*dmpi->stride[0]; switch(IMGFMT_RGB_DEPTH(dmpi->imgfmt)){ case 15: - if (IMGFMT_IS_BGR(dmpi->imgfmt)) - palette8tobgr15(src,dst,mpi->w,mpi->planes[1]); - else - palette8torgb15(src,dst,mpi->w,mpi->planes[1]); - break; case 16: if (IMGFMT_IS_BGR(dmpi->imgfmt)) palette8tobgr16(src,dst,mpi->w,mpi->planes[1]); |