[FFmpeg-cvslog] Merge commit '4b2e69397b84d1c1a29ffae6e9f106f2c32b1869'
Clément Bœsch
git at videolan.org
Tue Jun 21 12:44:28 CEST 2016
ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Tue Jun 21 12:20:38 2016 +0200| [f36fcf7b6cc40cfcad0642cc1c6ed0ceb39b2143] | committer: Clément Bœsch
Merge commit '4b2e69397b84d1c1a29ffae6e9f106f2c32b1869'
* commit '4b2e69397b84d1c1a29ffae6e9f106f2c32b1869':
dds: Add support for monochrome images
Merged-by: Clément Bœsch <clement at stupeflix.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f36fcf7b6cc40cfcad0642cc1c6ed0ceb39b2143
---
libavcodec/dds.c | 4 ++++
tests/fate/image.mak | 1 +
tests/ref/fate/dds-monob | 6 ++++++
3 files changed, 11 insertions(+)
diff --git a/libavcodec/dds.c b/libavcodec/dds.c
index 5468a45..763371a 100644
--- a/libavcodec/dds.c
+++ b/libavcodec/dds.c
@@ -242,6 +242,10 @@ static int parse_pixel_format(AVCodecContext *avctx)
ctx->paletted = 1;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
break;
+ case MKTAG('G', '1', ' ', ' '):
+ ctx->compressed = 0;
+ avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;
+ break;
case MKTAG('D', 'X', '1', '0'):
/* DirectX 10 extra header */
dxgi = bytestream2_get_le32(gbc);
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index baf87a0..a67c07f 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -65,6 +65,7 @@ DDS_FMT = alpha8 \
dxt5-xrbg \
dxt5-ycocg \
dxt5-ycocg-scaled \
+ monob \
pal \
pal-ati \
rgb1555 \
diff --git a/tests/ref/fate/dds-monob b/tests/ref/fate/dds-monob
new file mode 100644
index 0000000..629b417
--- /dev/null
+++ b/tests/ref/fate/dds-monob
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 122x122
+#sar 0: 0/1
+0, 0, 0, 1, 1952, 0x716498a1
======================================================================
diff --cc tests/ref/fate/dds-monob
index 0000000,370a431..629b417
mode 000000,100644..100644
--- a/tests/ref/fate/dds-monob
+++ b/tests/ref/fate/dds-monob
@@@ -1,0 -1,2 +1,6 @@@
+ #tb 0: 1/25
++#media_type 0: video
++#codec_id 0: rawvideo
++#dimensions 0: 122x122
++#sar 0: 0/1
+ 0, 0, 0, 1, 1952, 0x716498a1
More information about the ffmpeg-cvslog
mailing list