FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
h264_sei.c File Reference

H.264 / AVC / MPEG-4 part10 SEI decoding. More...

#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "h264_ps.h"
#include "h264_sei.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define AVERROR_PS_NOT_FOUND   FFERRTAG(0xF8,'?','P','S')
 

Functions

void ff_h264_sei_uninit (H264SEIContext *h)
 Reset SEI values at the beginning of the frame. More...
 
static int decode_picture_timing (H264SEIPictureTiming *h, GetBitContext *gb, const H264ParamSets *ps, void *logctx)
 
static int decode_registered_user_data_afd (H264SEIAFD *h, GetBitContext *gb, int size)
 
static int decode_registered_user_data_closed_caption (H264SEIA53Caption *h, GetBitContext *gb, void *logctx, int size)
 
static int decode_registered_user_data (H264SEIContext *h, GetBitContext *gb, void *logctx, int size)
 
static int decode_unregistered_user_data (H264SEIUnregistered *h, GetBitContext *gb, void *logctx, int size)
 
static int decode_recovery_point (H264SEIRecoveryPoint *h, GetBitContext *gb)
 
static int decode_buffering_period (H264SEIBufferingPeriod *h, GetBitContext *gb, const H264ParamSets *ps, void *logctx)
 
static int decode_frame_packing_arrangement (H264SEIFramePacking *h, GetBitContext *gb)
 
static int decode_display_orientation (H264SEIDisplayOrientation *h, GetBitContext *gb)
 
static int decode_green_metadata (H264SEIGreenMetaData *h, GetBitContext *gb)
 
static int decode_alternative_transfer (H264SEIAlternativeTransfer *h, GetBitContext *gb)
 
int ff_h264_sei_decode (H264SEIContext *h, GetBitContext *gb, const H264ParamSets *ps, void *logctx)
 
const char * ff_h264_sei_stereo_mode (const H264SEIFramePacking *h)
 Get stereo_mode string from the h264 frame_packing_arrangement. More...
 

Variables

static const uint8_t sei_num_clock_ts_table [9]
 

Detailed Description

H.264 / AVC / MPEG-4 part10 SEI decoding.

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at

Definition in file h264_sei.c.

Macro Definition Documentation

#define AVERROR_PS_NOT_FOUND   FFERRTAG(0xF8,'?','P','S')

Definition at line 35 of file h264_sei.c.

Referenced by decode_buffering_period(), decode_picture_timing(), and ff_h264_sei_decode().

Function Documentation

void ff_h264_sei_uninit ( H264SEIContext h)

Reset SEI values at the beginning of the frame.

Definition at line 41 of file h264_sei.c.

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

static int decode_picture_timing ( H264SEIPictureTiming h,
GetBitContext gb,
const H264ParamSets ps,
void logctx 
)
static

Definition at line 58 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_registered_user_data_afd ( H264SEIAFD h,
GetBitContext gb,
int  size 
)
static

Definition at line 128 of file h264_sei.c.

Referenced by decode_registered_user_data().

static int decode_registered_user_data_closed_caption ( H264SEIA53Caption h,
GetBitContext gb,
void logctx,
int  size 
)
static

Definition at line 149 of file h264_sei.c.

Referenced by decode_registered_user_data().

static int decode_registered_user_data ( H264SEIContext h,
GetBitContext gb,
void logctx,
int  size 
)
static

Definition at line 202 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_unregistered_user_data ( H264SEIUnregistered h,
GetBitContext gb,
void logctx,
int  size 
)
static

Definition at line 237 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_recovery_point ( H264SEIRecoveryPoint h,
GetBitContext gb 
)
static

Definition at line 267 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_buffering_period ( H264SEIBufferingPeriod h,
GetBitContext gb,
const H264ParamSets ps,
void logctx 
)
static

Definition at line 279 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_frame_packing_arrangement ( H264SEIFramePacking h,
GetBitContext gb 
)
static

Definition at line 316 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_display_orientation ( H264SEIDisplayOrientation h,
GetBitContext gb 
)
static

Definition at line 343 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_green_metadata ( H264SEIGreenMetaData h,
GetBitContext gb 
)
static

Definition at line 360 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

static int decode_alternative_transfer ( H264SEIAlternativeTransfer h,
GetBitContext gb 
)
static

Definition at line 385 of file h264_sei.c.

Referenced by ff_h264_sei_decode().

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

Definition at line 393 of file h264_sei.c.

Referenced by decode_nal_units(), and parse_nal_units().

const char* ff_h264_sei_stereo_mode ( const H264SEIFramePacking h)

Get stereo_mode string from the h264 frame_packing_arrangement.

Definition at line 468 of file h264_sei.c.

Referenced by output_frame().

Variable Documentation

const uint8_t sei_num_clock_ts_table[9]
static
Initial value:
= {
1, 1, 1, 2, 2, 3, 3, 2, 3
}

Definition at line 37 of file h264_sei.c.

Referenced by decode_picture_timing().