From: Jerome Martinez <jerome@mediaarea.net>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v3] avcodec/jpeg2000dec: support of 2 fields in 1 AVPacket
Date: Sun, 3 Mar 2024 18:07:10 +0100
Message-ID: <decf53c8-4809-4a0d-9b90-35415b6c78a0@mediaarea.net> (raw)
In-Reply-To: <0424f47070f992f8533abd91285f38a8f73d3946.camel@haerdin.se>
On 01/03/2024 23:29, Tomas Härdin wrote:
> sön 2024-02-25 klockan 05:14 +0100 skrev Jerome Martinez:
> [...]
>> I also needed to add a dedicated AVStream field for saying that the
>> decoder is able to manage this functionality (and is needed there).
>>
>> What is the added value to call the decoder twice from decode.c
>> rather
>> than recursive call (or a master function in the decoder calling the
>> current function twice, if preferred) inside the decoder only?
> We get support for all codecs that can do SEPARATE_FIELDS in MXF,
> rather than a half measure that only supports j2k, that we'd have to
> fix later anyway.
I personally don't understand how, because in both cases we need a
decoder aware about this feature (for the stride during decoding),
anyway if you think that it will be useful in the future for another
codec which would have separate fields, I warned about the issues I see
in practice and it does not matter to me that it is done the way you
want, my goal being that the upstream FFmpeg, rather than only my build,
does not trash half of a frame (current behavior), however it is done.
>> [...]
>> I didn't find specifications for the essence label UL corresponding
> ULs aren't for specifying interlacing type (though I wouldn't be
> surprised if there's a mapping that misuse them for that)
In practice for MXF jp2k the store method is provided by the UL (byte 15
of the essence container label), it is in the specs and all the other
items (frame layout, sample rate, edit rate, aspect ratio) alone don't
provide enough information (and are often buggy), I did not decide about
that.
About other formats and if it should not depend on the UL, I did not
find any information about separate fields, difficult for me to prove
that something does not exist, could you indicate another spec
specifying differently separate fields?
In practice and as far as I know, we currently have only jp2k with 2
completely separate codestreams in MXF, so I implemented in my patch for
all existing specifications (and files) I am aware about, i.e. 1.
> [...]
>
>> but if it appears would be only a matter of mapping the MXF signaling
>> to
>> the new AVStream field and supporting the feature in the decoders
>> (even
>> if we implement the idea of calling the decoder twice, the decoder
>> needs
>> to be expanded for this feature).
> So in other words putting it into every decoder for which there exists
> an MXF mapping for SEPARATE_FIELDS, rather than doing it properly?
As said above, I am not convinced that calling the decoder twice from
decode.c (or similar) is properly doing things, but if you think that
this is properly done if it is done this way, fine for me.
Patch v3 contains all the requested changes (MXF config propagation to
the decoder, calling the decoder twice), is there anything else in this
patch proposal preventing it to be applied?
Jérôme
_______________________________________________
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".
next prev parent reply other threads:[~2024-03-03 17:07 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 15:55 [FFmpeg-devel] [PATCH] " Jerome Martinez
2024-02-03 10:00 ` Tomas Härdin
2024-02-03 10:51 ` Jerome Martinez
2024-02-03 19:58 ` Tomas Härdin
2024-02-03 20:04 ` Tomas Härdin
2024-02-04 0:20 ` Pierre-Anthony Lemieux
2024-02-05 0:19 ` Tomas Härdin
2024-02-15 15:02 ` Jerome Martinez
2024-02-16 0:02 ` Vittorio Giovara
2024-02-16 2:17 ` Kieran Kunhya
2024-02-18 23:14 ` Tomas Härdin
2024-02-19 11:08 ` Tomas Härdin
2024-02-19 11:19 ` Jerome Martinez
2024-02-16 10:32 ` Anton Khirnov
2024-02-18 23:43 ` Marton Balint
2024-02-19 8:22 ` Hendrik Leppkes
2024-02-19 16:14 ` Devin Heitmueller
2024-02-19 11:05 ` Tomas Härdin
2024-02-19 11:07 ` Tomas Härdin
2024-02-05 2:25 ` James Almer
2024-02-05 14:28 ` Tomas Härdin
2024-02-20 15:07 ` [FFmpeg-devel] [PATCH v2] " Jerome Martinez
2024-02-21 13:11 ` Tomas Härdin
2024-02-21 14:27 ` Jerome Martinez
2024-02-24 12:26 ` Tomas Härdin
2024-02-25 4:14 ` [FFmpeg-devel] [PATCH v3] " Jerome Martinez
2024-03-01 22:29 ` Tomas Härdin
2024-03-03 17:07 ` Jerome Martinez [this message]
2024-04-24 11:20 ` [FFmpeg-devel] [PATCH v2] " Jerome Martinez
2024-04-24 22:54 ` Tomas Härdin
2024-04-25 0:59 ` Michael Niedermayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=decf53c8-4809-4a0d-9b90-35415b6c78a0@mediaarea.net \
--to=jerome@mediaarea.net \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git