FFmpeg
Data Structures | Enumerations | Functions
h2645_sei.h File Reference
#include <stdint.h>
#include "libavutil/buffer.h"
#include "libavutil/frame.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_id.h"
#include "get_bits.h"
#include "h2645_vui.h"
#include "sei.h"

Go to the source code of this file.

Data Structures

struct  H2645SEIA53Caption
 
struct  H2645SEIAFD
 
struct  HEVCSEIDynamicHDRPlus
 
struct  HEVCSEIDynamicHDRVivid
 
struct  H2645SEIUnregistered
 
struct  H2645SEIFramePacking
 
struct  H2645SEIDisplayOrientation
 
struct  H2645SEIAlternativeTransfer
 
struct  H2645SEIAmbientViewingEnvironment
 
struct  H2645SEIFilmGrainCharacteristics
 
struct  H2645SEIMasteringDisplay
 
struct  H2645SEIContentLight
 
struct  H2645SEI
 

Enumerations

enum  { FF_H2645_SEI_MESSAGE_HANDLED = 0, FF_H2645_SEI_MESSAGE_UNHANDLED }
 

Functions

int ff_h2645_sei_message_decode (H2645SEI *h, enum SEIType type, enum AVCodecID codec_id, GetBitContext *gb, GetByteContext *gbyte, void *logctx)
 Decode a single SEI message. More...
 
int ff_h2645_sei_ctx_replace (H2645SEI *dst, const H2645SEI *src)
 
void ff_h2645_sei_reset (H2645SEI *s)
 
int ff_h2645_sei_to_frame (AVFrame *frame, H2645SEI *sei, enum AVCodecID codec_id, AVCodecContext *avctx, const H2645VUI *vui, unsigned bit_depth_luma, unsigned bit_depth_chroma, int seed)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FF_H2645_SEI_MESSAGE_HANDLED 
FF_H2645_SEI_MESSAGE_UNHANDLED 

Definition at line 137 of file h2645_sei.h.

Function Documentation

◆ ff_h2645_sei_message_decode()

int ff_h2645_sei_message_decode ( H2645SEI h,
enum SEIType  type,
enum AVCodecID  codec_id,
GetBitContext gb,
GetByteContext gbyte,
void *  logctx 
)

Decode a single SEI message.

This function may either use gb or gbyte to decode the SEI message.

Parameters
[in,out]gbGetBitContext that needs to be at the start of the payload (i.e. after the payload_size bytes); it needs to be initially byte-aligned
[in,out]gbytea GetByteContext for the same data as gb
Returns
< 0 on error, FF_H2645_SEI_MESSAGE_HANDLED if the SEI message has been handled or FF_H2645_SEI_MESSAGE_UNHANDLED if not.

Definition at line 442 of file h2645_sei.c.

Referenced by decode_nal_sei_prefix(), and ff_h264_sei_decode().

◆ ff_h2645_sei_ctx_replace()

int ff_h2645_sei_ctx_replace ( H2645SEI dst,
const H2645SEI src 
)

Definition at line 472 of file h2645_sei.c.

Referenced by ff_h264_sei_ctx_replace(), and ff_hevc_sei_ctx_replace().

◆ ff_h2645_sei_reset()

void ff_h2645_sei_reset ( H2645SEI s)

Definition at line 768 of file h2645_sei.c.

Referenced by ff_h264_sei_uninit(), and ff_hevc_reset_sei().

◆ ff_h2645_sei_to_frame()

int ff_h2645_sei_to_frame ( AVFrame frame,
H2645SEI sei,
enum AVCodecID  codec_id,
AVCodecContext avctx,
const H2645VUI vui,
unsigned  bit_depth_luma,
unsigned  bit_depth_chroma,
int  seed 
)

Definition at line 511 of file h2645_sei.c.

Referenced by h264_export_frame_props(), and set_side_data().