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 22C6B4C420 for ; Sat, 12 Jul 2025 18:53:22 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 9C25868F224; Sat, 12 Jul 2025 21:52:03 +0300 (EEST) Received: from vidala.pars.ee (vidala.pars.ee [116.203.72.101]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 6974568F1E6 for ; Sat, 12 Jul 2025 21:51:49 +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=1752346309; bh=43a3UtL0/x0O7J5klmTp9oC EObHL2GcD6iYl/SVZibc=; b=TKbGk8qXddGiMY73hyc1HPsVB9zLQYBAb2uKVihz0FqZCT+IbQ 00fk4A5QBxd0UnBKEfJJ+L+uBmPwsgBVTMpCXFqNWYtiFfJQ/vEMetnaiBEkPX+4ddM+aFFPYHr qEZOCJsU3Z9YhEuKPrO5qWYcBjeCla9yPoV5bG5qS92ScAhYpGS8iE79rYoQ1zh+m8W/YtGgVsZ i6cDSa/l1Ei3YJprp2QWK/CdvUWTX0ikuflm2sbkp+O5xTDOPZUlOWr/fE+26Yb8dPeaDE+f3MN hWCxdIbgVdLQvuwcQl1YSuRQkSnZqEN6kqQXNMzgBKvi8Vcs2xBjsxs4S7vOsaGekxQ==; DKIM-Signature: v=1; a=ed25519-sha256; s=202405e; d=lynne.ee; c=relaxed/relaxed; h=Message-ID:Date:Subject:To:From; t=1752346309; bh=43a3UtL0/x0O7J5klmTp9oC EObHL2GcD6iYl/SVZibc=; b=mt0w4pr7H2AkKTdLsfZDv1Glpf5SRzAnmnaaDEYND53JKFP2QM rvRqf5xTjL89JmbfVlkZI1w5ujx0clnRpOAw==; From: Lynne To: ffmpeg-devel@ffmpeg.org Date: Sun, 13 Jul 2025 03:51:15 +0900 Message-ID: <20250712185128.862167-6-dev@lynne.ee> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250712185128.862167-1-dev@lynne.ee> References: <20250712185128.862167-1-dev@lynne.ee> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 06/13] 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.50.0 _______________________________________________ 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".