From patchwork Fri Sep 20 02:59:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: martin schitter X-Patchwork-Id: 51667 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:d154:0:b0:48e:c0f8:d0de with SMTP id bt20csp706150vqb; Thu, 19 Sep 2024 20:09:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUIOWFOMRTsOvP4xDPlEnlfruz6XfnLVApOFUjtQSNw510x/6Upy/bPFGvn3J2eWnC0Xp6LgDRPuyQw6veOYhqx@gmail.com X-Google-Smtp-Source: AGHT+IH0HWdftorIM0cZURcS8gGKFNC4euNb28bq2CD/ICdUNOROsDhwjIsFkFZyj/IHf1GSS3Cq X-Received: by 2002:a17:907:7e8b:b0:a90:3499:fc40 with SMTP id a640c23a62f3a-a90d50d7ee7mr48788666b.10.1726801769865; Thu, 19 Sep 2024 20:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726801769; cv=none; d=google.com; s=arc-20240605; b=SyRaHlrdxKtZdWZ//GzyNQBsOhXLg27XQq78oCuTDmcBbnog4CpP8rElbLxQxnwkCn Y9a/nbrfhbRlvtDkqHsULZlGEFOLXX3il6q86D3TjTHTCW78UjCbHdI5HbT5+3ANGy/A oPdjbiEYlZJultlkgaHcj4lA0dOvIpn9CSmRuDchdnaQkiKf0EXFnT4R/hE1yQRLnMpm Gr4Bld4S3zy1kQwPsDjQ3hw1vL35tmHJiLknsPcLgmI1k/Q1guDU513NnZBFOaCiM+M2 UI5XsoX/WJ3fAmQGkYCJjMFCYVvb9d6j/jBd8R3ZgQsUguXJtlhvOvLHOIruAXyG6Qa/ knXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=/ew0HJoLZ++6HSScurlWFfdtXx1gTq9RB+eNYWCLe24=; fh=igg3JDwkSkAbPTwY6V0OsEq0RUkG4DKWC8fVJg4GhMY=; b=Ivz/nWvUOhgzTglDInyoYa/s5Cygz1IAf6KgIhfh82tFrljCg9psxJvzJ/1UKe8YsQ 9OuzHgRv1wamyinACYnDBKrC2JJUAq4A+yvxAIuTIvcbPe3k9wZHBFriYNWGGbjwhdxP Zc6+cVfj/7rv6XcYeTbJW7KbaQLKiBajOoZw+wfkcVf0HteVUZo4ikgcvm5g4TAevE00 05LRUS5PIsDDHR/9sJMLnx444u6wwaFbZ+hslIUZQZK2QUiJjKskKboKMXiTzkGe9CoC OuE6dgbRnDoWO2xSl9kynf13VNJsGpX6b02yuekD6cmDNJNVSXHwdXh6yfJHcW9/fOjR G9Bw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@mur.at header.s=dkim2 header.b=GYRnEjBE; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mur.at Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a906109a3edsi913715966b.65.2024.09.19.20.09.29; Thu, 19 Sep 2024 20:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@mur.at header.s=dkim2 header.b=GYRnEjBE; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mur.at Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A4FD668DA01; Fri, 20 Sep 2024 06:09:25 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from efeu.mur.at (efeu.mur.at [89.106.208.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A851568D8FB for ; Fri, 20 Sep 2024 06:09:18 +0300 (EEST) Received: from localhost.localdomain (lan1.raspi.ma39.ffgraz.net [10.12.1.243]) by efeu.mur.at (Postfix) with ESMTPSA id 1599A46194; Fri, 20 Sep 2024 05:09:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mur.at; s=dkim2; t=1726801758; bh=GrqwtMUOpHRZNChUU1PuMRpsRepb8ZvqIyIvZ6Wc9kc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GYRnEjBEn/wBVTjXkTANXbIDG2hZdXj0y8dDQjFj2Nfs5VsE5Z2rrQPr4CvKSqKDP k6kO8XIKV/n8YoqRpp1VdMAPvSD9/M0jyfkxqb3fciPp1UNaq1BmekZ9nWfRZmNFp5 eQ+eiRPZrCLuv+hlvdnFRXdtuoUpw5WRdkXVDMvVFIuF/ZS9j08C4/2rF50AGSAhrU 6RqExTA4jMic3uXMn6LzSlBdOT4BY+gzWCaPcipyrDLJzDuJhg0tbVoHVpQvtONXDi UwgllAWh/N8RB/gJMapgTsvx0pDNahKMPoaNMx5YQhLfLTCzaNtoPHudOylADYE+Aj 3j/FkCVp7ErJTksPnOq274lNkVFBwmZDUQm5nnFoH42tsdJayxBxi2hzjIsnZg8KBh 26X08d5Gg8Ole8wKMpxV/SVibvlNYoTz7LXUKH5Gnu44Kr8BB4mHnuVT1nAuDMoBCK 79wreA2wbVWUxibnE2jBhQbQydD229ZW64YXJTMaGp2q4vhBEa7 From: Martin Schitter To: ffmpeg-devel@ffmpeg.org Date: Fri, 20 Sep 2024 04:59:47 +0200 Message-ID: <20240920030849.1976240-2-ms+git@mur.at> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240920030849.1976240-1-ms+git@mur.at> References: <20240920030849.1976240-1-ms+git@mur.at> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v8 1/6] libavcodec/: Add ID and desc for DNxUncompressed 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: Martin Schitter Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 4D0vGY6vsyH1 --- libavcodec/codec_desc.c | 7 +++++++ libavcodec/codec_id.h | 1 + libavcodec/version.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index 03dea57..2452a7b 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -1959,6 +1959,13 @@ static const AVCodecDescriptor codec_descriptors[] = { .long_name = NULL_IF_CONFIG_SMALL("LEAD MCMP"), .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY, }, + { + .id = AV_CODEC_ID_DNXUC, + .type = AVMEDIA_TYPE_VIDEO, + .name = "dnxuc", + .long_name = NULL_IF_CONFIG_SMALL("DNxUncompressed / SMPTE RDD 50"), + .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, + }, /* various PCM "codecs" */ { diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h index 0a8d3be..0abd036 100644 --- a/libavcodec/codec_id.h +++ b/libavcodec/codec_id.h @@ -322,6 +322,7 @@ enum AVCodecID { AV_CODEC_ID_RTV1, AV_CODEC_ID_VMIX, AV_CODEC_ID_LEAD, + AV_CODEC_ID_DNXUC, /* various PCM "codecs" */ AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs diff --git a/libavcodec/version.c b/libavcodec/version.c index 27f9432..03dd95e 100644 --- a/libavcodec/version.c +++ b/libavcodec/version.c @@ -31,7 +31,7 @@ const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION; unsigned avcodec_version(void) { - static_assert(AV_CODEC_ID_LEAD == 269 && + static_assert(AV_CODEC_ID_DNXUC == 270 && AV_CODEC_ID_PCM_SGA == 65572 && AV_CODEC_ID_ADPCM_XMD == 69683 && AV_CODEC_ID_CBD2_DPCM == 81928 &&