FFmpeg
Data Structures | Enumerations | Functions
h2645_sei.h File Reference
#include <stdint.h>
#include "libavutil/buffer.h"
#include "libavutil/frame.h"
#include "libavutil/film_grain_params.h"
#include "aom_film_grain.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  HEVCSEILCEVC
 
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)
 
int ff_h2645_sei_to_context (AVCodecContext *avctx, H2645SEI *sei)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FF_H2645_SEI_MESSAGE_HANDLED 
FF_H2645_SEI_MESSAGE_UNHANDLED 

Definition at line 147 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 490 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 525 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 913 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 708 of file h2645_sei.c.

Referenced by h264_export_frame_props(), and set_side_data().

◆ ff_h2645_sei_to_context()

int ff_h2645_sei_to_context ( AVCodecContext avctx,
H2645SEI sei 
)

Definition at line 907 of file h2645_sei.c.

Referenced by hevc_decode_init().