From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id C06C0475E6 for ; Sat, 14 Oct 2023 13:31:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7FFC868BB4C; Sat, 14 Oct 2023 16:31:41 +0300 (EEST) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0A7DB6806B0 for ; Sat, 14 Oct 2023 16:31:35 +0300 (EEST) Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-7757be87071so7823085a.0 for ; Sat, 14 Oct 2023 06:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697290293; x=1697895093; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5cYqwiSaO0bac2Yl7H8yrBBcGEUU4Qcs1wYvCPzPi9k=; b=JhcTswQpG9A6vy6eGY69uVI0UQXn7/3M7uiSqHJr59Db6+jgFr3rKD9fqaLrTQ6/CK /HNidWxAZ4Fn9RZkqzbEgPGqAGp1mzdnI7Lps1SI05UzlQ0zo46StyAEHBBuTbEBTlXq 3Ih8Kn0m2aNqJX5RyEcSjiNXVppQhmIJYZQcFC724zjIqdwgjHtzvyL+Sm89YjQ8Vdff S8kU+1bielw/Eptyn/wByvENN0GdFL4BAg24s2dMan5+IysLEHrSNtQi1pd06xWcaJtB borJg4DKdcLapp3XDZCVm808FpPdqRo1liDu4dimAaYbHYPRPeczTA4nTzAj3CB+O2y2 e9+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697290293; x=1697895093; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5cYqwiSaO0bac2Yl7H8yrBBcGEUU4Qcs1wYvCPzPi9k=; b=j6B+OT0tTgxxhHFwPb3J0MTz4hiugSHirWqONLcvdKpFoAkyQOMfi8GHewCnANOGZe Nwflv1zUkSh2ohe4Cc6axUcZ/m7auAu3QPkh137LvgqwCUmm+dTTSYQbp21hWc4n8cTk nzDQv3EM8iJRVQoLgCBSr6GMOHkVAaX9XE/DRLacymxFzTSTxtdDyviYyI510/lDJZfM bSzNXNzFMSlTXYVovRs0Ri/4WgegUY18/zht/9MRxWiygo3Lic0XvWXUirGeD+3sx9Ln p5GeigBCvvXFakvElsfhZrpq/m8Jtw0eV5zjJl3IMBCbVo5d2T+raTomyDfTA2uvgmW2 gWaQ== X-Gm-Message-State: AOJu0Ywjse9e2eQOUkBph3FkI8Ozy2iM4cj4StOQeVtMZIzcC8jVH4H3 631G5rQBFptRIfVf2bqhXN//IQ6hyuSdBw== X-Google-Smtp-Source: AGHT+IG8ZPohqyM1K40nv7lRQxNOUT1IQ122sbyghZWChKTZTXoaVym8O66EwKZhquQSPSWllOQohA== X-Received: by 2002:a05:620a:3949:b0:775:8fab:8c6d with SMTP id qs9-20020a05620a394900b007758fab8c6dmr30757430qkn.1.1697290293304; Sat, 14 Oct 2023 06:31:33 -0700 (PDT) Received: from [192.168.1.35] (c-68-56-149-176.hsd1.mi.comcast.net. [68.56.149.176]) by smtp.gmail.com with ESMTPSA id g15-20020a05620a108f00b0077413b342e9sm1471495qkk.128.2023.10.14.06.31.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Oct 2023 06:31:32 -0700 (PDT) Message-ID: Date: Sat, 14 Oct 2023 09:31:32 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US-large To: ffmpeg-devel@ffmpeg.org References: <20231013142706.23971-1-ffmpeg@haasn.xyz> <20231013142706.23971-3-ffmpeg@haasn.xyz> From: Leo Izen In-Reply-To: <20231013142706.23971-3-ffmpeg@haasn.xyz> Subject: Re: [FFmpeg-devel] [PATCH v2 02/13] avcodec: add extended AVCodec color metadata 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 10/13/23 10:24, Niklas Haas wrote: > From: Niklas Haas > > This is motivated primarily by a desire for YUVJ removal, which will > require signalling the supported color ranges as part of the codec > capabilities. But since we're here anyway, we might as well add all of > the metadata, which I foresee seeing more use in the future (e.g. > automatic conversion from HDR to SDR when encoding to formats that don't > support AVCOL_TRC_SMPTE2084, ...) > --- > + > + /* Extended colorspace support metadata */ > + const enum AVColorSpace *csps; ///< array of supported color spaces, or NULL if unknown, array is terminated by AVCOL_SPC_UNSPECIFIED > + const enum AVColorRange *color_ranges; ///< array of supported color ranges, or NULL if unknown, array is terminated by 0 > + const enum AVChromaLocation *chroma_locs; ///< array of supported chroma locations, or NULL if unknown, array is terminated by 0 > + const enum AVColorPrimaries *primaries; ///< array of supported color primaries, or NULL if unknown, array is terminated by 0 > + const enum AVColorTransferCharacteristic *trcs; ///< array of supported transfer characteristics, or NULL if known, array is terminated by 0 > } AVCodec; Any particular reason we're using AVCOL_SPC_UNSPECIFIED to terminate csps, but not using AVCOL_PRI_UNSPECIFIED for the primaries and the equivalent for the TRC? It seems a bit more consistent than using RESERVED0 - Leo Izen (Traneptora) _______________________________________________ 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".