From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTPS id C996B4DD63
	for <ffmpegdev@gitmailbox.com>; Thu, 24 Apr 2025 19:23:11 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 840A7687D8F;
	Thu, 24 Apr 2025 22:23:07 +0300 (EEST)
Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com
 [209.85.128.46])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CC6A0687D46
 for <ffmpeg-devel@ffmpeg.org>; Thu, 24 Apr 2025 22:23:01 +0300 (EEST)
Received: by mail-wm1-f46.google.com with SMTP id
 5b1f17b1804b1-43edecbfb94so13278215e9.1
 for <ffmpeg-devel@ffmpeg.org>; Thu, 24 Apr 2025 12:23:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=jkqxz-net.20230601.gappssmtp.com; s=20230601; t=1745522581; x=1746127381;
 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=DxkkrEMvBXLI93p10ZSfblA6TxFF4yj5SJjmwm43qmA=;
 b=2GLf48IxBwcvw1/jIuJ+8PjVy2lzitscAacQ/shnDrcU2yOhc+6tpkPIqCjSVyGWcF
 4d8+0VNcnLhCXTLeCs8xUJDLU2UVt5yc6JwshK5h4rksZacpCZzTMr5b5CJKM1gBKcHS
 5vA1Tgef9La7ErqPWy79o39VsZSjXdhnpycSTellW7m8rClPwBSi+Vsg/jTCFC1W6o1i
 LutoRB970fNS5K40Hn5n82BBCTqp07ldgm4yJ4Wn93rzE3V63vKawNtnc+MkOfVMs/84
 0OZ/oCen6bb0DkPNciUL8VVhVZWEk62fuJOcN1ykwDea8vZRX/o9aruxza7fjZgkFf8F
 9oaA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745522581; x=1746127381;
 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=DxkkrEMvBXLI93p10ZSfblA6TxFF4yj5SJjmwm43qmA=;
 b=fh2s0aXPjFo7STi9W6uvu5RQbTmIDiffPNa904T5l05c/jK5BLyUqU701dYJiUi6H4
 jsPjwyVKZggoTKbJZGS4ihwTlCIK161fGAJnHOH6evi+yOeAt6tOaRyDLbkE6AvRwSbU
 oICL8VikIksNLH85ztip/P0Qglxrd5GOEUUSHjs/KY5yxv8hcNriHkHgDdiq7lRCn6ci
 4XkXazsbyXNuHeHUI5gRLFBpam4dQOMarquykWBALuWV60aNFgwgJegXuwl3XYCAcai3
 GjpgUzjvLCS8XZrnNzgsgAfMAbdZQg2lBFqRjluOQ0EoODOBgQGa+6VB45RWS4pi5y0j
 F2rA==
X-Gm-Message-State: AOJu0YzXerfUeRqzW0pPVE/XMq2C9LSrbfk2I4sJ6SfEXZc2MldwDTut
 LCscNMrZTN8Py55kS8s9h2tDmo8JWjat+GW9ijhThxLUTZ+jPxQo0ZxYeLOF7fTtg6EyYotnYds
 N
X-Gm-Gg: ASbGnct/AGDiUvC3GLumYu2yb+cKahSK6kuyYe9sl1TAjs9DTuAncnm3lnbQY6bBbjd
 zJTwDeIPTs9AXNrpIsJzE8u3tSsX5Go05Ca/MuHXQjnm27kpgymc/zvH3bJenIja0IJKAFkSJWQ
 Hgjkn3rmrPw4IeB9r+NATL7tguFBxqEzlU2+Lf/JOni/vBn9W8KOSvd5XVd7AKLurcIsA/ocD5D
 j0T/c/Xre4ulj2G5UtHgeEZlt1HMHE/L7leP+bH47w8CoQxzNsFgdP4O4OXbEex2lY2c71xDSfZ
 Aypz1nHty+VAqieddRYuNhre3Vc4ZxNeRY9NpwkrxyjpnKXuNddWi6CrzC69bkppnHPghCbEsZK
 xNrgB6UgRqzwfbQ==
X-Google-Smtp-Source: AGHT+IExvxw4hbIeHtA+8P95PsRkoFTqpeXenFUAyRSx1I/MNMygvYj0D+qOOvFdr/hQFDl+ubNb1A==
X-Received: by 2002:a05:600c:cc7:b0:43d:b51:46fb with SMTP id
 5b1f17b1804b1-440a30ec48bmr7141265e9.2.1745522580152; 
 Thu, 24 Apr 2025 12:23:00 -0700 (PDT)
Received: from [192.168.0.15]
 (cpc92320-cmbg19-2-0-cust719.5-4.cable.virginm.net. [82.13.66.208])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-3a073e5e351sm116624f8f.100.2025.04.24.12.22.59
 for <ffmpeg-devel@ffmpeg.org>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 24 Apr 2025 12:22:59 -0700 (PDT)
Message-ID: <c864bdc9-6615-43e1-b14e-ef53dfb342dc@jkqxz.net>
Date: Thu, 24 Apr 2025 20:23:04 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: ffmpeg-devel@ffmpeg.org
References: <CGME20250423141345eucas1p1784ac4af60429d8d8dbc0c7018fd9fc0@eucas1p1.samsung.com>
 <20250423141341.1858303-1-d.kozinski@samsung.com>
From: Mark Thompson <sw@jkqxz.net>
In-Reply-To: <20250423141341.1858303-1-d.kozinski@samsung.com>
Subject: Re: [FFmpeg-devel] [PATCH v1 8/8] avcodec/apv_decoder: Provided
 support for APV decoder
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/c864bdc9-6615-43e1-b14e-ef53dfb342dc@jkqxz.net/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>

On 23/04/2025 15:13, Dawid Kozinski wrote:
> - Added APV decoder wrapper
> - Changes in project configuration file and libavcodec Makefile
> - Added documentation for APV decoder wrapper
> 
> Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com>
> ---
>  configure              |   1 +
>  doc/decoders.texi      |  27 ++
>  libavcodec/Makefile    |   1 +
>  libavcodec/libapvdec.c | 560 +++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 589 insertions(+)
>  create mode 100644 libavcodec/libapvdec.c
> 
> ...

This is asking the decoder library to decode all of the frames (primary/non-primary/preview/depth/alpha) found in the access unit, putting the resulting frames in a fifo, and then outputting them one at a time to receive_frame.

What is the aim there and what does the user need to do to achieve it?  For typical existing lavc users (such as the ffmpeg utility) this seems likely to be very confusing, as all of the frames will be bunched together in the same stream even though they don't have the same meaning or (likely) the same properties.


For my decoder implementation I am currently outputting only the primary frame, and would appreciate if you have any thoughts on what the right thing to do if there are multiple frames in the access unit is.

I considered decoding an alpha frame and merging it with the primary frame to form a YUVA422P10 frame, but this seemed fragile as the specification places no constraints on the alpha frame (e.g. no requirement that it is 4:0:0 and has the same dimensions as the primary frame) so I decided against including it.

For the other types I have no thoughts on what might be useful and therefore currently ignore them.


Thanks,

- Mark


PS:  Are there any official samples with multiple frames?  Examples which I didn't make myself would be appreciated for test purposes.

_______________________________________________
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".