summaryrefslogtreecommitdiffstats
path: root/postproc
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 17:56:11 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 17:56:11 +0000
commit6ef8871203df8ff00f6149197254ce985f8d8c3e (patch)
tree44c01d149f22cfee3d7c013327efca23acba2f01 /postproc
parentf5d935298609b3530f0e274033d264d8da20cd42 (diff)
downloadmpv-6ef8871203df8ff00f6149197254ce985f8d8c3e.tar.bz2
mpv-6ef8871203df8ff00f6149197254ce985f8d8c3e.tar.xz
Fixed rgb32(24)to15 stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2721 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r--postproc/rgb2rgb.c4
-rw-r--r--postproc/rgb2rgb_template.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c
index 5779bf5e30..ddb805bbc6 100644
--- a/postproc/rgb2rgb.c
+++ b/postproc/rgb2rgb.c
@@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1];
const int r= src[i+2];
- d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7);
+ d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7);
}
}
@@ -266,7 +266,7 @@ void rgb24to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1];
const int r= src[i+2];
- d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7);
+ d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7);
}
}
diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c
index 5779bf5e30..ddb805bbc6 100644
--- a/postproc/rgb2rgb_template.c
+++ b/postproc/rgb2rgb_template.c
@@ -238,7 +238,7 @@ void rgb32to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1];
const int r= src[i+2];
- d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7);
+ d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7);
}
}
@@ -266,7 +266,7 @@ void rgb24to15(const uint8_t *src, uint8_t *dst, unsigned src_size)
const int g= src[i+1];
const int r= src[i+2];
- d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7);
+ d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7);
}
}