[FFmpeg-cvslog] swscale: support endianness conversion for AV_PIX_FMT_XYZ12
Janne Grunau
git at videolan.org
Tue May 7 11:20:42 CEST 2013
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Fri Apr 26 14:47:50 2013 +0200| [9cfa21c8c2b81146aab574f55c93f27e5c2d435c] | committer: Janne Grunau
swscale: support endianness conversion for AV_PIX_FMT_XYZ12
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cfa21c8c2b81146aab574f55c93f27e5c2d435c
---
libswscale/swscale_unscaled.c | 3 ++-
libswscale/utils.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index a994d6f..433dbdb 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -1030,7 +1030,8 @@ void ff_get_unscaled_swscale(SwsContext *c)
IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_RGB444) ||
IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_RGB48) ||
IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_RGB555) ||
- IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_RGB565))
+ IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_RGB565) ||
+ IS_DIFFERENT_ENDIANESS(srcFormat, dstFormat, AV_PIX_FMT_XYZ12))
c->swScale = packed_16bpc_bswap;
if ((usePal(srcFormat) && (
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 538a3df..e20a5f1 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -172,6 +172,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
[AV_PIX_FMT_GBRP10BE] = { 1, 1 },
[AV_PIX_FMT_GBRP16LE] = { 1, 0 },
[AV_PIX_FMT_GBRP16BE] = { 1, 0 },
+ [AV_PIX_FMT_XYZ12BE] = { 0, 0, 1 },
+ [AV_PIX_FMT_XYZ12LE] = { 0, 0, 1 },
};
int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
More information about the ffmpeg-cvslog
mailing list