From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 439674BB25 for ; Wed, 23 Jul 2025 11:14:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id EAD3D68D6E5; Wed, 23 Jul 2025 14:14:53 +0300 (EEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 2DAB468CFBF for ; Wed, 23 Jul 2025 14:14:46 +0300 (EEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20250723111444euoutp02813f732541d932b061ca4a48ba660ac7~U3SAWNUwn0498504985euoutp02H for ; Wed, 23 Jul 2025 11:14:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20250723111444euoutp02813f732541d932b061ca4a48ba660ac7~U3SAWNUwn0498504985euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1753269284; bh=ZDrf75kXHpD6hmgIoeOD53KqGIcJSpbqWjMf4Lsspi0=; h=From:To:Cc:Subject:Date:References:From; b=ns6x1b7SyrYYKIRuJXW7g7TmXMeOmWsog6kKEKXFo5nssGNH0QxYy2h3Ev5cpcZcr r05B8jX7Curui4YY+959DP0Pha3IvfHGEQ3I0CD1slRkxqBc8kg+kFNoL/zWjFJCgP snbRym7cuxC1YPjajURCYF33Bgzpn2cEZYuk4HVY= Received: from eusmtip2.samsung.com (unknown [203.254.199.222]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20250723111444eucas1p269c4d196163d9a6009467ae2727041fd~U3SAAj9b_1387313873eucas1p2B; Wed, 23 Jul 2025 11:14:44 +0000 (GMT) Received: from AMDC5235.local (unknown [106.120.41.39]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250723111444eusmtip27ea11beadcdd3f5a8322b8562cd58593~U3R-3r6-Z1503015030eusmtip2F; Wed, 23 Jul 2025 11:14:44 +0000 (GMT) From: Dariusz Frankiewicz To: ffmpeg-devel@ffmpeg.org Date: Wed, 23 Jul 2025 13:13:49 +0200 Message-Id: <20250723111349.1032083-1-d.frankiewic@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CMS-MailID: 20250723111444eucas1p269c4d196163d9a6009467ae2727041fd X-Msg-Generator: CA X-RootMTR: 20250723111444eucas1p269c4d196163d9a6009467ae2727041fd X-EPHeader: CA X-CMS-RootMailID: 20250723111444eucas1p269c4d196163d9a6009467ae2727041fd References: Subject: [FFmpeg-devel] [PATCH] avcodec/apv: align APV color format support with latest liboapv version X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Dariusz Frankiewicz Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: Dariusz Frankiewicz --- configure | 2 +- libavcodec/liboapvenc.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/configure b/configure index ac143f2fea..5527c20578 100755 --- a/configure +++ b/configure @@ -6983,7 +6983,7 @@ enabled jni && { [ $target_os = "android" ] && check_headers jni.h enabled ladspa && require_headers "ladspa.h dlfcn.h" enabled lcms2 && require_pkg_config lcms2 "lcms2 >= 2.13" lcms2.h cmsCreateContext enabled libaom && require_pkg_config libaom "aom >= 2.0.0" aom/aom_codec.h aom_codec_version -enabled liboapv && require_pkg_config liboapv "oapv >= 0.1.13.1" "oapv/oapv.h" oapve_encode +enabled liboapv && require_pkg_config liboapv "oapv >= 0.2.0.0" "oapv/oapv.h" oapve_encode enabled libaribb24 && { check_pkg_config libaribb24 "aribb24 > 1.0.3" "aribb24/aribb24.h" arib_instance_new || { enabled gpl && require_pkg_config libaribb24 aribb24 "aribb24/aribb24.h" arib_instance_new; } || die "ERROR: libaribb24 requires version higher than 1.0.3 or --enable-gpl."; } diff --git a/libavcodec/liboapvenc.c b/libavcodec/liboapvenc.c index e62ef57d21..7f9fbf6929 100644 --- a/libavcodec/liboapvenc.c +++ b/libavcodec/liboapvenc.c @@ -102,9 +102,27 @@ static inline int get_color_format(enum AVPixelFormat pix_fmt) int cf = OAPV_CF_UNKNOWN; switch (pix_fmt) { + case AV_PIX_FMT_GRAY10: + cf = OAPV_CF_YCBCR400; + break; case AV_PIX_FMT_YUV422P10: cf = OAPV_CF_YCBCR422; break; + case AV_PIX_FMT_YUV422P12: + cf = OAPV_CF_YCBCR422; + break; + case AV_PIX_FMT_YUV444P10: + cf = OAPV_CF_YCBCR444; + break; + case AV_PIX_FMT_YUV444P12: + cf = OAPV_CF_YCBCR444; + break; + case AV_PIX_FMT_YUVA444P10: + cf = OAPV_CF_YCBCR4444; + break; + case AV_PIX_FMT_YUVA444P12: + cf = OAPV_CF_YCBCR4444; + break; default: av_assert0(cf != OAPV_CF_UNKNOWN); } @@ -438,7 +456,13 @@ static av_cold int liboapve_close(AVCodecContext *avctx) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM static const enum AVPixelFormat supported_pixel_formats[] = { + AV_PIX_FMT_GRAY10, AV_PIX_FMT_YUV422P10, + AV_PIX_FMT_YUV422P12, + AV_PIX_FMT_YUV444P10, + AV_PIX_FMT_YUV444P12, + AV_PIX_FMT_YUVA444P10, + AV_PIX_FMT_YUVA444P12, 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".