summaryrefslogtreecommitdiff
path: root/libswscale/rgb2rgb.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-02-03 23:46:00 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-02-03 23:46:00 +0000
commit82e5f86bd503db42999df3c0a90efeef8e3dda20 (patch)
treed51e529dbe637d9feb7f375081c9c719904b802d /libswscale/rgb2rgb.h
parentf5968788bb3692f2fd503bb2ec1526b0369c7f92 (diff)
Implement shuffle_bytes_abcd() functions and use them for shuffling
bytes when converting between RGB32 variants. In particular fix the argb -> rgba and abgr -> bgra conversions. See the thread: Subject: [FFmpeg-devel] [RFC] RGB32 / BGR32 ethernal bug Date: Tue, 26 Jan 2010 01:06:18 +0100 Originally committed as revision 30501 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/rgb2rgb.h')
-rw-r--r--libswscale/rgb2rgb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libswscale/rgb2rgb.h b/libswscale/rgb2rgb.h
index 740b04e1cb..386068b856 100644
--- a/libswscale/rgb2rgb.h
+++ b/libswscale/rgb2rgb.h
@@ -60,6 +60,11 @@ void rgb15tobgr16(const uint8_t *src, uint8_t *dst, long src_size);
void rgb15tobgr15(const uint8_t *src, uint8_t *dst, long src_size);
void bgr8torgb8 (const uint8_t *src, uint8_t *dst, long src_size);
+void shuffle_bytes_0321(const uint8_t *src, uint8_t *dst, long src_size);
+void shuffle_bytes_1230(const uint8_t *src, uint8_t *dst, long src_size);
+void shuffle_bytes_2103(const uint8_t *src, uint8_t *dst, long src_size);
+void shuffle_bytes_3012(const uint8_t *src, uint8_t *dst, long src_size);
+void shuffle_bytes_3210(const uint8_t *src, uint8_t *dst, long src_size);
void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);