aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-28 02:50:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-28 04:14:22 +0100
commitb89ce2d6af851f79c6a0d17f712ead54f523c891 (patch)
tree7e10a5c5077b6394b1e2209422d79a6f06be5829 /libswscale/utils.c
parentb14a2381f8882f21369bd4680dc17ae7db81e886 (diff)
downloadffmpeg-b89ce2d6af851f79c6a0d17f712ead54f523c891.tar.gz
swscale: alpha less rgb32 support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r--libswscale/utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 347b9905e0..e27144e594 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -100,6 +100,10 @@ const static FormatEntry format_entries[PIX_FMT_NB] = {
[PIX_FMT_RGBA] = { 1 , 1 },
[PIX_FMT_ABGR] = { 1 , 1 },
[PIX_FMT_BGRA] = { 1 , 1 },
+ [PIX_FMT_0RGB] = { 1 , 1 },
+ [PIX_FMT_RGB0] = { 1 , 1 },
+ [PIX_FMT_0BGR] = { 1 , 1 },
+ [PIX_FMT_BGR0] = { 1 , 1 },
[PIX_FMT_GRAY16BE] = { 1 , 1 },
[PIX_FMT_GRAY16LE] = { 1 , 1 },
[PIX_FMT_YUV440P] = { 1 , 1 },
@@ -742,6 +746,10 @@ static int handle_jpeg(enum PixelFormat *format)
case PIX_FMT_YUVJ422P: *format = PIX_FMT_YUV422P; return 1;
case PIX_FMT_YUVJ444P: *format = PIX_FMT_YUV444P; return 1;
case PIX_FMT_YUVJ440P: *format = PIX_FMT_YUV440P; return 1;
+ case PIX_FMT_0BGR : *format = PIX_FMT_ABGR ; return 0;
+ case PIX_FMT_BGR0 : *format = PIX_FMT_BGRA ; return 0;
+ case PIX_FMT_0RGB : *format = PIX_FMT_ARGB ; return 0;
+ case PIX_FMT_RGB0 : *format = PIX_FMT_RGBA ; return 0;
default: return 0;
}
}