Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH v2] avcodec/evc_decoder: Fix pixel format handling in export_stream_params function
       [not found] <CGME20250325085040eucas1p2ba990d5e61d9d9d317a161b6da180653@eucas1p2.samsung.com>
@ 2025-03-25  8:50 ` Dawid Kozinski
  0 siblings, 0 replies; only message in thread
From: Dawid Kozinski @ 2025-03-25  8:50 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Dawid Kozinski

Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com>
---
 libavcodec/libxevd.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index 520fdab7d8..8a1719f264 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -154,15 +154,27 @@ static int export_stream_params(const XevdContext *xectx, AVCodecContext *avctx)
     case XEVD_CS_YCBCR400_10LE:
         avctx->pix_fmt = AV_PIX_FMT_GRAY10LE;
         break;
+    case XEVD_CS_SET(XEVD_CF_YCBCR400, 10, 1):
+        avctx->pix_fmt = AV_PIX_FMT_GRAY10BE;
+        break;
     case XEVD_CS_YCBCR420_10LE:
         avctx->pix_fmt = AV_PIX_FMT_YUV420P10LE;
         break;
+    case XEVD_CS_SET(XEVD_CF_YCBCR420, 10, 1):
+        avctx->pix_fmt = AV_PIX_FMT_YUV420P10BE;
+        break;
     case XEVD_CS_YCBCR422_10LE:
         avctx->pix_fmt = AV_PIX_FMT_YUV422P10LE;
         break;
+    case XEVD_CS_SET(XEVD_CF_YCBCR422, 10, 1):
+        avctx->pix_fmt = AV_PIX_FMT_YUV422P10BE;
+        break;
     case XEVD_CS_YCBCR444_10LE:
         avctx->pix_fmt = AV_PIX_FMT_YUV444P10LE;
         break;
+    case XEVD_CS_SET(XEVD_CF_YCBCR444, 10, 1):
+        avctx->pix_fmt = AV_PIX_FMT_YUV444P10BE;
+        break;
     default:
         av_log(avctx, AV_LOG_ERROR, "Unknown color space\n");
         avctx->pix_fmt = AV_PIX_FMT_NONE;
-- 
2.34.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-25  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20250325085040eucas1p2ba990d5e61d9d9d317a161b6da180653@eucas1p2.samsung.com>
2025-03-25  8:50 ` [FFmpeg-devel] [PATCH v2] avcodec/evc_decoder: Fix pixel format handling in export_stream_params function Dawid Kozinski

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git