FFmpeg
Data Structures | Enumerations | Functions
cbs_h264.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "cbs.h"
#include "cbs_h2645.h"
#include "h264.h"

Go to the source code of this file.

Data Structures

struct  H264RawNALUnitHeader
 
struct  H264RawScalingList
 
struct  H264RawHRD
 
struct  H264RawVUI
 
struct  H264RawSPS
 
struct  H264RawSPSExtension
 
struct  H264RawPPS
 
struct  H264RawAUD
 
struct  H264RawSEIBufferingPeriod
 
struct  H264RawSEIPicTimestamp
 
struct  H264RawSEIPicTiming
 
struct  H264RawSEIPanScanRect
 
struct  H264RawSEIUserDataRegistered
 
struct  H264RawSEIUserDataUnregistered
 
struct  H264RawSEIRecoveryPoint
 
struct  H264RawSEIDisplayOrientation
 
struct  H264RawSEIMasteringDisplayColourVolume
 
struct  H264RawSEIAlternativeTransferCharacteristics
 
struct  H264RawSEIPayload
 
struct  H264RawSEI
 
struct  H264RawSliceHeader
 
struct  H264RawSlice
 
struct  H264RawFiller
 
struct  CodedBitstreamH264Context
 

Enumerations

enum  { H264_MAX_SEI_PAYLOADS = 64 }
 

Functions

int ff_cbs_h264_add_sei_message (CodedBitstreamContext *ctx, CodedBitstreamFragment *access_unit, const H264RawSEIPayload *payload)
 Add an SEI message to an access unit. More...
 
void ff_cbs_h264_delete_sei_message (CodedBitstreamContext *ctx, CodedBitstreamFragment *access_unit, CodedBitstreamUnit *nal_unit, int position)
 Delete an SEI message from an access unit. More...
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
H264_MAX_SEI_PAYLOADS 

Definition at line 30 of file cbs_h264.h.

Function Documentation

◆ ff_cbs_h264_add_sei_message()

int ff_cbs_h264_add_sei_message ( CodedBitstreamContext ctx,
CodedBitstreamFragment access_unit,
const H264RawSEIPayload payload 
)

Add an SEI message to an access unit.

Definition at line 1519 of file cbs_h2645.c.

Referenced by h264_metadata_filter().

◆ ff_cbs_h264_delete_sei_message()

void ff_cbs_h264_delete_sei_message ( CodedBitstreamContext ctx,
CodedBitstreamFragment access_unit,
CodedBitstreamUnit nal_unit,
int  position 
)

Delete an SEI message from an access unit.

Deletes from nal_unit, which must be an SEI NAL unit. If this is the last message in nal_unit, also deletes it from access_unit.

Requires nal_unit to be a unit in access_unit and position to be >= 0 and < the payload count of the SEI nal_unit.

Definition at line 1581 of file cbs_h2645.c.

Referenced by h264_metadata_filter().