Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v1 14/19] avcodec/cbs_sei_syntax_template: add sei message frame_field_information
Date: Fri, 25 Apr 2025 19:12:30 -0300
Message-ID: <c7cb1ddc-7871-44f7-a02a-9689ba33ccfb@gmail.com> (raw)
In-Reply-To: <GV1P250MB0737FCBBD059045CDA0D4F2D8F842@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM>


[-- Attachment #1.1.1: Type: text/plain, Size: 3700 bytes --]

On 4/25/2025 7:08 PM, Andreas Rheinhardt wrote:
> toqsxw@gmail.com:
>> From: Wu Jianhua <toqsxw@outlook.com>
>>
>> Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
>> ---
>>   libavcodec/cbs_h2645.c               |  6 ++++++
>>   libavcodec/cbs_sei.h                 | 12 ++++++++++++
>>   libavcodec/cbs_sei_syntax_template.c | 26 ++++++++++++++++++++++++++
>>   3 files changed, 44 insertions(+)
>>
>> diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c
>> index c868770209..6677134d77 100644
>> --- a/libavcodec/cbs_h2645.c
>> +++ b/libavcodec/cbs_h2645.c
>> @@ -2199,6 +2199,12 @@ static const SEIMessageTypeDescriptor cbs_sei_common_types[] = {
>>           sizeof(SEIRawDisplayOrientation),
>>           SEI_MESSAGE_RW(sei, display_orientation)
>>       },
>> +    {
>> +        SEI_TYPE_FRAME_FIELD_INFO,
>> +        1, 0,
>> +        sizeof(SEIRawFrameFieldInformation),
>> +        SEI_MESSAGE_RW(sei, frame_field_information)
>> +    },
>>       SEI_MESSAGE_TYPE_END,
>>   };
>>   
>> diff --git a/libavcodec/cbs_sei.h b/libavcodec/cbs_sei.h
>> index 7be12e33e0..81867b79a7 100644
>> --- a/libavcodec/cbs_sei.h
>> +++ b/libavcodec/cbs_sei.h
>> @@ -125,6 +125,18 @@ typedef struct SEIRawDisplayOrientation {
>>       uint8_t      display_orientation_reserved_zero_3bits;
>>   } SEIRawDisplayOrientation;
>>   
>> +typedef struct SEIRawFrameFieldInformation {
>> +    uint8_t      ffi_field_pic_flag;
>> +    uint8_t      ffi_bottom_field_flag;
>> +    uint8_t      ffi_pairing_indicated_flag;
>> +    uint8_t      ffi_paired_with_next_field_flag;
>> +    uint8_t      ffi_display_fields_from_frame_flag;
>> +    uint8_t      ffi_top_field_first_flag;
>> +    uint8_t      ffi_display_elemental_periods_minus1;
>> +    uint8_t      ffi_source_scan_type;
>> +    uint8_t      ffi_duplicate_flag;
>> +} SEIRawFrameFieldInformation;
>> +
>>   typedef struct SEIRawMessage {
>>       uint32_t     payload_type;
>>       uint32_t     payload_size;
>> diff --git a/libavcodec/cbs_sei_syntax_template.c b/libavcodec/cbs_sei_syntax_template.c
>> index fb19f6ee42..e6863a0fd7 100644
>> --- a/libavcodec/cbs_sei_syntax_template.c
>> +++ b/libavcodec/cbs_sei_syntax_template.c
>> @@ -295,6 +295,32 @@ SEI_FUNC(display_orientation, (CodedBitstreamContext *ctx, RWContext *rw,
>>       return 0;
>>   }
>>   
>> +SEI_FUNC(frame_field_information, (CodedBitstreamContext *ctx, RWContext *rw,
>> +                                       SEIRawFrameFieldInformation *current,
>> +                                       SEIMessageState *state))
>> +{
>> +    int err;
>> +
>> +    HEADER("Frame-field information");
>> +
>> +    flag(ffi_field_pic_flag);
>> +    if (current->ffi_field_pic_flag) {
>> +        flag(ffi_bottom_field_flag);
>> +        flag(ffi_pairing_indicated_flag);
>> +        if (current->ffi_pairing_indicated_flag)
>> +            flag(ffi_paired_with_next_field_flag);
>> +    } else {
>> +        flag(ffi_display_fields_from_frame_flag);
>> +        if (current->ffi_display_fields_from_frame_flag)
>> +            flag(ffi_top_field_first_flag);
>> +        u(8, ffi_display_elemental_periods_minus1, 0, 0xff);
>> +    }
>> +    u(2, ffi_source_scan_type, 0, 3);
>> +    flag(ffi_duplicate_flag);
>> +
>> +    return 0;
>> +}
>> +
>>   static int FUNC(message)(CodedBitstreamContext *ctx, RWContext *rw,
>>                            SEIRawMessage *current)
>>   {
> 
> This does really not seem like a common SEI, yet you add it to the
> common ones.

It's in ITU-T H.274, which is what the common list contains. It's used 
as fallback if a SEI type is not a H.26x specific one.


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

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

  reply	other threads:[~2025-04-25 22:12 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-01 17:15 [FFmpeg-devel] [PATCH v1 01/19] avcodec/cbs_sei_syntax_template: add sei message film_grain_characteristics toqsxw
2025-04-01 17:15 ` [FFmpeg-devel] [PATCH v1 02/19] avcodec/vvc: support decoding prefix and suffix nal units toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 03/19] avcodec/vvc/sei: add decode_film_grain_characteristics toqsxw
2025-04-25 22:11   ` Andreas Rheinhardt
2025-04-26 10:56     ` [FFmpeg-devel] 回复: " Wu Jianhua
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 04/19] avcodec/vvc/dec: export sei to the frame when the frame starts toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 05/19] avcodec/vvc/dec: support applying film grain by the decoder toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 06/19] avcodec/vvc/dec: support removing film grain params from side data toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 07/19] avcodec/h274: add H274SEIPictureHash struct toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 08/19] avcodec/vvc/sei: add decode_decoded_picture_hash toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 09/19] avcodec/h274: add ff_h274_hash functions toqsxw
2025-04-25 22:01   ` Andreas Rheinhardt
2025-05-08 18:36     ` [FFmpeg-devel] 回复: " Wu Jianhua
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 10/19] avcodec/vvcdec: verify picture hash toqsxw
2025-04-25 22:02   ` Andreas Rheinhardt
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 11/19] avcodec/cbs_sei_syntax_template: add sei message sei_display_orientation toqsxw
2025-04-25 22:05   ` Andreas Rheinhardt
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 12/19] avcodec/vvc/sei: add decode_display_orientation toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 13/19] avcodec/vvc/sei: add decode_content_light_level_info toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 14/19] avcodec/cbs_sei_syntax_template: add sei message frame_field_information toqsxw
2025-04-25 22:08   ` Andreas Rheinhardt
2025-04-25 22:12     ` James Almer [this message]
2025-04-25 22:55       ` Andreas Rheinhardt
2025-04-25 22:58         ` James Almer
2025-04-25 23:02           ` Andreas Rheinhardt
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 15/19] avcodec/h274: add H274SEIFrameFieldInfo struct toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 16/19] avcodec/vvc/sei: add decode_frame_field_info toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 17/19] avcodec/vvc: support fields toqsxw
2025-04-01 17:35   ` Andreas Rheinhardt
2025-04-01 18:11     ` [FFmpeg-devel] 回复: " Wu Jianhua
2025-04-23 13:54       ` Nuo Mi
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 18/19] avcodec/vvc/sei: add decode_ambient_viewing_environment toqsxw
2025-04-01 17:16 ` [FFmpeg-devel] [PATCH v1 19/19] avcodec/vvc/sei: add decode_mastering_display_colour_volume toqsxw
2025-04-25 21:37 ` [FFmpeg-devel] [PATCH v1 01/19] avcodec/cbs_sei_syntax_template: add sei message film_grain_characteristics Andreas Rheinhardt
2025-04-26 11:37   ` [FFmpeg-devel] 回复: " Wu Jianhua

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=c7cb1ddc-7871-44f7-a02a-9689ba33ccfb@gmail.com \
    --to=jamrial@gmail.com \
    --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