FFmpeg
Data Structures | Enumerations | Functions
h264_sei.h File Reference
#include "get_bits.h"
#include "h2645_sei.h"
#include "h264_ps.h"
#include "sei.h"

Go to the source code of this file.

Data Structures

struct  H264SEITimeCode
 
struct  H264SEIPictureTiming
 
struct  H264SEIRecoveryPoint
 
struct  H264SEIBufferingPeriod
 
struct  H264SEIGreenMetaData
 
struct  H264SEIContext
 

Enumerations

enum  H264_SEI_PicStructType {
  H264_SEI_PIC_STRUCT_FRAME = 0, H264_SEI_PIC_STRUCT_TOP_FIELD = 1, H264_SEI_PIC_STRUCT_BOTTOM_FIELD = 2, H264_SEI_PIC_STRUCT_TOP_BOTTOM = 3,
  H264_SEI_PIC_STRUCT_BOTTOM_TOP = 4, H264_SEI_PIC_STRUCT_TOP_BOTTOM_TOP = 5, H264_SEI_PIC_STRUCT_BOTTOM_TOP_BOTTOM = 6, H264_SEI_PIC_STRUCT_FRAME_DOUBLING = 7,
  H264_SEI_PIC_STRUCT_FRAME_TRIPLING = 8
}
 pic_struct in picture timing SEI message More...
 

Functions

int ff_h264_sei_decode (H264SEIContext *h, GetBitContext *gb, const struct H264ParamSets *ps, void *logctx)
 
static int ff_h264_sei_ctx_replace (H264SEIContext *dst, const H264SEIContext *src)
 
void ff_h264_sei_uninit (H264SEIContext *h)
 Reset SEI values at the beginning of the frame. More...
 
const char * ff_h264_sei_stereo_mode (const H2645SEIFramePacking *h)
 Get stereo_mode string from the h264 frame_packing_arrangement. More...
 
int ff_h264_sei_process_picture_timing (H264SEIPictureTiming *h, const SPS *sps, void *logctx)
 Parse the contents of a picture timing message given an active SPS. More...
 

Enumeration Type Documentation

◆ H264_SEI_PicStructType

pic_struct in picture timing SEI message

Enumerator
H264_SEI_PIC_STRUCT_FRAME 

0: frame

H264_SEI_PIC_STRUCT_TOP_FIELD 

1: top field

H264_SEI_PIC_STRUCT_BOTTOM_FIELD 

2: bottom field

H264_SEI_PIC_STRUCT_TOP_BOTTOM 

3: top field, bottom field, in that order

H264_SEI_PIC_STRUCT_BOTTOM_TOP 

4: bottom field, top field, in that order

H264_SEI_PIC_STRUCT_TOP_BOTTOM_TOP 

5: top field, bottom field, top field repeated, in that order

H264_SEI_PIC_STRUCT_BOTTOM_TOP_BOTTOM 

6: bottom field, top field, bottom field repeated, in that order

H264_SEI_PIC_STRUCT_FRAME_DOUBLING 

7: frame doubling

H264_SEI_PIC_STRUCT_FRAME_TRIPLING 

8: frame tripling

Definition at line 31 of file h264_sei.h.

Function Documentation

◆ ff_h264_sei_decode()

int ff_h264_sei_decode ( H264SEIContext h,
GetBitContext gb,
const struct H264ParamSets ps,
void *  logctx 
)

◆ ff_h264_sei_ctx_replace()

static int ff_h264_sei_ctx_replace ( H264SEIContext dst,
const H264SEIContext src 
)
inlinestatic

Definition at line 132 of file h264_sei.h.

Referenced by ff_h264_update_thread_context().

◆ ff_h264_sei_uninit()

void ff_h264_sei_uninit ( H264SEIContext h)

Reset SEI values at the beginning of the frame.

Definition at line 48 of file h264_sei.c.

Referenced by decode_nal_units(), h264_close(), h264_decode_end(), h264_decode_flush(), h264_init_context(), and parse_nal_units().

◆ ff_h264_sei_stereo_mode()

const char* ff_h264_sei_stereo_mode ( const H2645SEIFramePacking h)

Get stereo_mode string from the h264 frame_packing_arrangement.

Definition at line 306 of file h264_sei.c.

Referenced by output_frame().

◆ ff_h264_sei_process_picture_timing()

int ff_h264_sei_process_picture_timing ( H264SEIPictureTiming h,
const SPS sps,
void *  logctx 
)

Parse the contents of a picture timing message given an active SPS.

Definition at line 65 of file h264_sei.c.

Referenced by h264_export_frame_props(), and parse_nal_units().