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 B69E04E53C for ; Thu, 10 Jul 2025 15:14:57 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id BCC5C68DC8C; Thu, 10 Jul 2025 18:14:08 +0300 (EEST) Received: from vidala.pars.ee (vidala.pars.ee [116.203.72.101]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 5032868D580 for ; Thu, 10 Jul 2025 18:14:00 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; s=202405r; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1752160439; bh=45arzBPvTeniQrSNoiHs3hf GZ+/avd8qPybbeDehKfY=; b=EDYC5Ti3ljiq1uPMVf34aWPBxYBdRPvWdphZ9iQVGsAubo38tW oVscWMjAiMproGgzDshQFHABQRTxYhm7JU3SoNNSW+2u85fTATr1JoM0/ytD86b0A8wHBMLQmpx Mdo2uVgjZKEMzDtIR8L9DyjVyji+pOU2dxVgvEZ12nZp48I6XoeGDJITIE/NNHSvinspw8A0PRW fqiewymNPmG3mnxJ5XN/lU2qSvONd25JTOu+toE5fs4PMh2QNM2CAIOUlsPRynximGIpKKbBfj4 MGgBrZz65ZUg2oEk1ik3/dF0Kc/y1oT1MhhQIH8Pzwit+3JcIQA1flHTmr4vUuqGA0g==; DKIM-Signature: v=1; a=ed25519-sha256; s=202405e; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1752160439; bh=45arzBPvTeniQrSNoiHs3hf GZ+/avd8qPybbeDehKfY=; b=kQgPOMYGL2D1k3vDdA130h5bTNnqAABfXbVyDBMU+mHazO6U6f 0iaD9PTdHX9TiDNWfuL9qORWVW/yM4S6DQCQ==; From: Lynne To: ffmpeg-devel@ffmpeg.org Date: Fri, 11 Jul 2025 00:13:33 +0900 Message-ID: <20250710151349.1157547-5-dev@lynne.ee> X-Mailer: git-send-email 2.49.0.395.g12beb8f557c In-Reply-To: <20250710151349.1157547-1-dev@lynne.ee> References: <20250710151349.1157547-1-dev@lynne.ee> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 5/7] lavc: add codec ID and profiles for ProRes RAW 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: Lynne 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: --- libavcodec/codec_desc.c | 8 ++++++++ libavcodec/codec_id.h | 1 + libavcodec/defs.h | 3 +++ libavcodec/profiles.c | 6 ++++++ libavcodec/profiles.h | 1 + libavformat/isom_tags.c | 4 ++++ 6 files changed, 23 insertions(+) diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index dae2296689..36cbaf288e 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -1992,6 +1992,14 @@ static const AVCodecDescriptor codec_descriptors[] = { .long_name = NULL_IF_CONFIG_SMALL("Advanced Professional Video"), .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY, }, + { + .id = AV_CODEC_ID_PRORES_RAW, + .type = AVMEDIA_TYPE_VIDEO, + .name = "prores_raw", + .long_name = NULL_IF_CONFIG_SMALL("Apple ProRes RAW"), + .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS, + .profiles = NULL_IF_CONFIG_SMALL(ff_prores_raw_profiles), + }, /* various PCM "codecs" */ { diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h index d00d3fe121..adf263f6b0 100644 --- a/libavcodec/codec_id.h +++ b/libavcodec/codec_id.h @@ -330,6 +330,7 @@ enum AVCodecID { AV_CODEC_ID_RV60, AV_CODEC_ID_JPEGXL_ANIM, AV_CODEC_ID_APV, + AV_CODEC_ID_PRORES_RAW, /* various PCM "codecs" */ AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs diff --git a/libavcodec/defs.h b/libavcodec/defs.h index 8ce5d424c9..b13e983b13 100644 --- a/libavcodec/defs.h +++ b/libavcodec/defs.h @@ -185,6 +185,9 @@ #define AV_PROFILE_PRORES_4444 4 #define AV_PROFILE_PRORES_XQ 5 +#define AV_PROFILE_PRORES_RAW 0 +#define AV_PROFILE_PRORES_RAW_HQ 1 + #define AV_PROFILE_ARIB_PROFILE_A 0 #define AV_PROFILE_ARIB_PROFILE_C 1 diff --git a/libavcodec/profiles.c b/libavcodec/profiles.c index 991f24135d..2cf733b0a2 100644 --- a/libavcodec/profiles.c +++ b/libavcodec/profiles.c @@ -182,6 +182,12 @@ const AVProfile ff_prores_profiles[] = { { AV_PROFILE_UNKNOWN } }; +const AVProfile ff_prores_raw_profiles[] = { + { AV_PROFILE_PRORES_RAW, "RAW" }, + { AV_PROFILE_PRORES_RAW_HQ, "HQ" }, + { AV_PROFILE_UNKNOWN } +}; + const AVProfile ff_mjpeg_profiles[] = { { AV_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT, "Baseline" }, { AV_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT, "Sequential" }, diff --git a/libavcodec/profiles.h b/libavcodec/profiles.h index 4892388149..6f4011ff0c 100644 --- a/libavcodec/profiles.h +++ b/libavcodec/profiles.h @@ -74,6 +74,7 @@ extern const AVProfile ff_vp9_profiles[]; extern const AVProfile ff_av1_profiles[]; extern const AVProfile ff_sbc_profiles[]; extern const AVProfile ff_prores_profiles[]; +extern const AVProfile ff_prores_raw_profiles[]; extern const AVProfile ff_mjpeg_profiles[]; extern const AVProfile ff_arib_caption_profiles[]; extern const AVProfile ff_evc_profiles[]; diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c index 69174b4a3f..151c42e9e6 100644 --- a/libavformat/isom_tags.c +++ b/libavformat/isom_tags.c @@ -240,6 +240,10 @@ const AVCodecTag ff_codec_movvideo_tags[] = { { AV_CODEC_ID_PRORES, MKTAG('a', 'p', 'c', 'o') }, /* Apple ProRes 422 Proxy */ { AV_CODEC_ID_PRORES, MKTAG('a', 'p', '4', 'h') }, /* Apple ProRes 4444 */ { AV_CODEC_ID_PRORES, MKTAG('a', 'p', '4', 'x') }, /* Apple ProRes 4444 XQ */ + + { AV_CODEC_ID_PRORES_RAW, MKTAG('a', 'p', 'r', 'n') }, /* Apple ProRes RAW */ + { AV_CODEC_ID_PRORES_RAW, MKTAG('a', 'p', 'r', 'h') }, /* Apple ProRes RAW HQ */ + { AV_CODEC_ID_FLIC, MKTAG('f', 'l', 'i', 'c') }, { AV_CODEC_ID_AIC, MKTAG('i', 'c', 'o', 'd') }, -- 2.49.0.395.g12beb8f557c _______________________________________________ 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".