summaryrefslogtreecommitdiff
path: root/libswscale/rgb2rgb.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-01-10 18:15:16 +0000
committerPaul B Mahol <onemda@gmail.com>2012-01-10 18:28:40 +0000
commit296a338261ebcfaf7b961a6d1e6a3adb4da69a61 (patch)
tree8b8677c60ad26ea10c4e5b594ba126fdbe63cbed /libswscale/rgb2rgb.c
parent4ad40d6d9f489aed3e4b283c640e81585686e4a1 (diff)
downloadffmpeg-296a338261ebcfaf7b961a6d1e6a3adb4da69a61.tar.gz
rgb2rgb: remove unused bgr8torgb8()
RGB8 and BGR8 are paletted formats now.
Diffstat (limited to 'libswscale/rgb2rgb.c')
-rw-r--r--libswscale/rgb2rgb.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index c6c1ebaaa5..eb7ca7ba1a 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -295,21 +295,6 @@ void rgb12tobgr12(const uint8_t *src, uint8_t *dst, int src_size)
}
}
-void bgr8torgb8(const uint8_t *src, uint8_t *dst, int src_size)
-{
- int i;
- int num_pixels = src_size;
- for (i=0; i<num_pixels; i++) {
- unsigned b,g,r;
- register uint8_t rgb;
- rgb = src[i];
- r = (rgb&0x07);
- g = (rgb&0x38)>>3;
- b = (rgb&0xC0)>>6;
- dst[i] = ((b<<1)&0x07) | ((g&0x07)<<3) | ((r&0x03)<<6);
- }
-}
-
#define DEFINE_SHUFFLE_BYTES(a, b, c, d) \
void shuffle_bytes_##a##b##c##d(const uint8_t *src, uint8_t *dst, int src_size) \
{ \