Go to the documentation of this file.
19 #ifndef AVCODEC_CBS_SEI_H
20 #define AVCODEC_CBS_SEI_H
131 #define SEI_MESSAGE_RW(codec, name) \
132 .read = (SEIMessageReadFunction) cbs_ ## codec ## _read_ ## name, \
133 .write = (SEIMessageWriteFunction)cbs_ ## codec ## _write_ ## name
136 #define SEI_MESSAGE_TYPE_END { .type = -1 }
177 uint32_t payload_type,
189 uint32_t payload_type,
197 uint32_t payload_type);
uint16_t display_primaries_x[3]
int ff_cbs_sei_find_message(CodedBitstreamContext *ctx, CodedBitstreamFragment *au, uint32_t payload_type, SEIRawMessage **message)
Iterate over messages with the given payload type in an access unit.
size_t extension_bit_length
Context structure for coded bitstream operations.
AVBufferRef * extension_data_ref
int(* SEIMessageReadFunction)(CodedBitstreamContext *ctx, struct GetBitContext *rw, void *current, SEIMessageState *sei)
uint32_t max_display_mastering_luminance
int ff_cbs_sei_list_add(SEIRawMessageList *list)
Allocate a new empty SEI message in a message list.
uint8_t itu_t_t35_country_code
int(* SEIMessageWriteFunction)(CodedBitstreamContext *ctx, struct PutBitContext *rw, void *current, SEIMessageState *sei)
Coded bitstream fragment structure, combining one or more units.
int nb_messages_allocated
uint32_t min_display_mastering_luminance
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining list
static int FUNC() sei(CodedBitstreamContext *ctx, RWContext *rw, H264RawSEI *current)
int ff_cbs_sei_alloc_message_payload(SEIRawMessage *message, const SEIMessageTypeDescriptor *desc)
Allocate a new payload for the given SEI message.
AVBufferRef * payload_ref
SEIMessageWriteFunction write
uint8_t itu_t_t35_country_code_extension_byte
SEIMessageReadFunction read
uint16_t display_primaries_y[3]
uint16_t max_content_light_level
uint8_t preferred_transfer_characteristics
int ff_cbs_sei_add_message(CodedBitstreamContext *ctx, CodedBitstreamFragment *au, int prefix, uint32_t payload_type, void *payload_data, AVBufferRef *payload_buf)
Add an SEI message to an access unit.
const SEIMessageTypeDescriptor * ff_cbs_sei_find_type(CodedBitstreamContext *ctx, int payload_type)
Find the type descriptor for the given payload type.
A reference to a data buffer.
void ff_cbs_sei_delete_message_type(CodedBitstreamContext *ctx, CodedBitstreamFragment *au, uint32_t payload_type)
Delete all messages with the given payload type from an access unit.
uint16_t max_pic_average_light_level
void ff_cbs_sei_free_message_list(SEIRawMessageList *list)
Free all SEI messages in a message list.
uint8_t uuid_iso_iec_11578[16]
uint8_t extension_present