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 1F21A46B83 for ; Mon, 4 Sep 2023 11:21:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3617368C79E; Mon, 4 Sep 2023 14:21:55 +0300 (EEST) Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B049968C628 for ; Mon, 4 Sep 2023 14:21:48 +0300 (EEST) Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3a9d3be3228so74867b6e.0 for ; Mon, 04 Sep 2023 04:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693826507; x=1694431307; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=0AurJT7PJhq83CvZAOxSmUAvqWsP2ir8NeP8QKFpuxM=; b=DcpDsZFSDW5PEH5MD/WsB27kvDMfmedgzA7yQX1aRlvT0OO/txqWoeDbQJceZ2HJis +wEN2aXlYsB7Ki/mybpvYkE+a8OTXPPBwaPPKidC+xyaMHGQuCpNriodGFUxcBCxjbb7 ctcEPivzdsVlwGD8XN4uSjWst0QTMXbzdmKXNupoPCPWphmtFPaU/GLaGKjnI79MxWnt tLN9z6htctdnBZwyRJYIhgMTBsiSBJkc4paX3Qx4jEkjEXjKDc3F/5yDPv9OfB8l68/1 v/t8uo3h6lU0xwmOqegEe/RqxQU06jJMIMDegpNXH5+14u3X23zbqcdI6LBpXc9nfWi1 W5lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693826507; x=1694431307; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0AurJT7PJhq83CvZAOxSmUAvqWsP2ir8NeP8QKFpuxM=; b=XsvqeleK/2WNMKpwGPMFSjSPWNFW0qVshABmv5vfwByc5/jgzjbOeeRHHiBD+zJd+4 Q0PDwlf+TEl5wI7O1q1jEY7s/iodkHlFlChfKnlJ9QhUg6rDmU/5izgcyGrfelj38dQT 5gsEC2Ms+RpgMyRYB1AYULoFXWRI3Baq8fKUe21CwFBpi1g6aDZRc5MiamnuMK1vI5XX I8L1Kq4eDdpv7NkbcfZRMkQCKjHOox/nwBU/wemUxw4VXYWy2dd5iMYXcdxI58ZRGR9L 2h6fv4teP3+O2M48ShUJyRKEACPnESxfFchhVh6uLVw0jtVSDHrV/ZJRFFPEv/Hh8x+Y pjZQ== X-Gm-Message-State: AOJu0Yx5esSSRobG2q7QJBJHJfxGBrCbkjxtLX3jFlB94tB0iC0S4nLN GogajjL4ipyrdVitQUvh35Q5DUkZ7ro= X-Google-Smtp-Source: AGHT+IFXsQW/X943zpwJqev0To8pcJ+XLe7T08Uk2oxefIVLRyYgtnTYrLlKdsA0Z0HiTjBVi1FTCg== X-Received: by 2002:a05:6358:45e:b0:13c:d11b:38cf with SMTP id 30-20020a056358045e00b0013cd11b38cfmr7445207rwe.0.1693826506633; Mon, 04 Sep 2023 04:21:46 -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 i198-20020a816dcf000000b00583f8f41cb8sm2541878ywc.63.2023.09.04.04.21.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Sep 2023 04:21:46 -0700 (PDT) Message-ID: <202395a7-8372-4ff6-9488-d7579c2c060e@gmail.com> Date: Mon, 4 Sep 2023 07:21:45 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: FFmpeg Development References: <20230827195115.105591-1-leo.izen@gmail.com> Content-Language: en-US-large From: Leo Izen In-Reply-To: <20230827195115.105591-1-leo.izen@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH] avfilter/vf_pad: respect frame colorspace tag in RGB to YUV conversion 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 8/27/23 15:51, Leo Izen wrote: > vf_pad calls ff_draw_init, which assumes BT.709 and TV range for its > YUV matricies. Since the filter only accepts RGB inputs for the color > argument, it needs to convert them to YUV for YUV input video, and it > should respect the tagged colormatrix when doing such a conversion, but > it does not. It can do this by calling ff_draw_init2, and this patch > causes the filter to re-init when the first frame is received, as that > is when that colormatrix tag becomes available. > > If the filter is not initialized before the first frame, then an > assertion will fail in avfilter.c when it does sanity checks on > input/output dimensions, so the original initialization cannot be > skipped. > > Signed-off-by: Leo Izen > --- > libavfilter/vf_pad.c | 21 ++++++++++++++++----- > 1 file changed, 16 insertions(+), 5 deletions(-) > Bumping, thanks. - 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".