FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cbs_h2645.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "bytestream.h"
#include "cbs.h"
#include "cbs_internal.h"
#include "cbs_h264.h"
#include "cbs_h265.h"
#include "golomb.h"
#include "h264.h"
#include "h264_sei.h"
#include "h2645_parse.h"
#include "hevc.h"
#include "cbs_h264_syntax_template.c"
#include "cbs_h265_syntax_template.c"

Go to the source code of this file.

Macros

#define HEADER(name)
 
#define CHECK(call)
 
#define FUNC_NAME(rw, codec, name)   cbs_ ## codec ## _ ## rw ## _ ## name
 
#define FUNC_H264(rw, name)   FUNC_NAME(rw, h264, name)
 
#define FUNC_H265(rw, name)   FUNC_NAME(rw, h265, name)
 
#define READ
 
#define READWRITE   read
 
#define RWContext   GetBitContext
 
#define xu(width, name, var, range_min, range_max)
 
#define xue(name, var, range_min, range_max)
 
#define xse(name, var, range_min, range_max)
 
#define u(width, name, range_min, range_max)   xu(width, name, current->name, range_min, range_max)
 
#define flag(name)   u(1, name, 0, 1)
 
#define ue(name, range_min, range_max)   xue(name, current->name, range_min, range_max)
 
#define se(name, range_min, range_max)   xse(name, current->name, range_min, range_max)
 
#define infer(name, value)
 
#define more_rbsp_data(var)   ((var) = cbs_h2645_read_more_rbsp_data(rw))
 
#define byte_alignment(rw)   (get_bits_count(rw) % 8)
 
#define allocate(name, size)
 
#define FUNC(name)   FUNC_H264(READWRITE, name)
 
#define FUNC(name)   FUNC_H265(READWRITE, name)
 
#define WRITE
 
#define READWRITE   write
 
#define RWContext   PutBitContext
 
#define xu(width, name, var, range_min, range_max)
 
#define xue(name, var, range_min, range_max)
 
#define xse(name, var, range_min, range_max)
 
#define u(width, name, range_min, range_max)   xu(width, name, current->name, range_min, range_max)
 
#define flag(name)   u(1, name, 0, 1)
 
#define ue(name, range_min, range_max)   xue(name, current->name, range_min, range_max)
 
#define se(name, range_min, range_max)   xse(name, current->name, range_min, range_max)
 
#define infer(name, value)
 
#define more_rbsp_data(var)   (var)
 
#define byte_alignment(rw)   (put_bits_count(rw) % 8)
 
#define allocate(name, size)
 
#define FUNC(name)   FUNC_H264(READWRITE, name)
 
#define FUNC(name)   FUNC_H265(READWRITE, name)
 
#define cbs_h2645_replace_ps(h26n, ps_name, ps_var, id_element)
 

Functions

static int cbs_read_ue_golomb (CodedBitstreamContext *ctx, GetBitContext *gbc, const char *name, uint32_t *write_to, uint32_t range_min, uint32_t range_max)
 
static int cbs_read_se_golomb (CodedBitstreamContext *ctx, GetBitContext *gbc, const char *name, int32_t *write_to, int32_t range_min, int32_t range_max)
 
static int cbs_write_ue_golomb (CodedBitstreamContext *ctx, PutBitContext *pbc, const char *name, uint32_t value, uint32_t range_min, uint32_t range_max)
 
static int cbs_write_se_golomb (CodedBitstreamContext *ctx, PutBitContext *pbc, const char *name, int32_t value, int32_t range_min, int32_t range_max)
 
static int cbs_h2645_read_more_rbsp_data (GetBitContext *gbc)
 
static void cbs_h264_free_sei (H264RawSEI *sei)
 
static void cbs_h264_free_slice (H264RawSlice *slice)
 
static void cbs_h264_free_nal_unit (CodedBitstreamUnit *unit)
 
static void cbs_h265_free_nal_unit (CodedBitstreamUnit *unit)
 
static int cbs_h2645_fragment_add_nals (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, const H2645Packet *packet)
 
static int cbs_h2645_split_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header)
 
 cbs_h2645_replace_ps (cbs_h2645_replace_ps(4, cbs_h2645_replace_ps(SPS, cbs_h2645_replace_ps(sps, seq_parameter_set_id)
 
static int cbs_h265_read_nal_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
 
static int cbs_h264_write_nal_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc)
 
static int cbs_h265_write_nal_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc)
 
static int cbs_h2645_write_nal_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
 
static int cbs_h2645_assemble_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
 
static void cbs_h264_close (CodedBitstreamContext *ctx)
 
static void cbs_h265_close (CodedBitstreamContext *ctx)
 

Variables

const CodedBitstreamType ff_cbs_type_h264
 
const CodedBitstreamType ff_cbs_type_h265
 

Macro Definition Documentation

#define HEADER (   name)
Value:
do { \
} while (0)
void ff_cbs_trace_header(CodedBitstreamContext *ctx, const char *name)
Definition: cbs.c:288
AVFormatContext * ctx
Definition: movenc.c:48
const char * name
Definition: opengl_enc.c:103

Definition at line 228 of file cbs_h2645.c.

Referenced by aud(), extension_data(), group_of_pictures_header(), picture_coding_extension(), picture_display_extension(), picture_header(), pps(), quant_matrix_extension(), sei(), sequence_display_extension(), sequence_extension(), sequence_header(), slice_header(), slice_segment_header(), sps(), sps_extension(), user_data(), and vps().

#define CHECK (   call)
Value:
do { \
err = (call); \
if (err < 0) \
return err; \
} while (0)
return
if(ret< 0)
Definition: vf_mcdeint.c:279

Definition at line 232 of file cbs_h2645.c.

#define FUNC_NAME (   rw,
  codec,
  name 
)    cbs_ ## codec ## _ ## rw ## _ ## name

Definition at line 238 of file cbs_h2645.c.

#define FUNC_H264 (   rw,
  name 
)    FUNC_NAME(rw, h264, name)

Definition at line 239 of file cbs_h2645.c.

#define FUNC_H265 (   rw,
  name 
)    FUNC_NAME(rw, h265, name)

Definition at line 240 of file cbs_h2645.c.

#define READ

Definition at line 243 of file cbs_h2645.c.

#define READWRITE   read

Definition at line 324 of file cbs_h2645.c.

#define RWContext   GetBitContext

Definition at line 325 of file cbs_h2645.c.

#define xu (   width,
  name,
  var,
  range_min,
  range_max 
)
Value:
do { \
uint32_t value = range_min; \
&value, range_min, range_max)); \
var = value; \
} while (0)
uint16_t width
Definition: gdv.c:47
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109
AVFormatContext * ctx
Definition: movenc.c:48
#define CHECK(call)
Definition: cbs_h2645.c:232
const char * name
Definition: opengl_enc.c:103
int ff_cbs_read_unsigned(CodedBitstreamContext *ctx, GetBitContext *gbc, int width, const char *name, uint32_t *write_to, uint32_t range_min, uint32_t range_max)
Definition: cbs.c:321

Definition at line 327 of file cbs_h2645.c.

Referenced by byte_alignment(), extension_data(), profile_tier_level(), rbsp_trailing_bits(), sei(), sei_buffering_period(), sei_payload(), sei_user_data_registered(), sei_user_data_unregistered(), slice_header(), and vps().

#define xue (   name,
  var,
  range_min,
  range_max 
)
Value:
do { \
uint32_t value = range_min; \
&value, range_min, range_max)); \
var = value; \
} while (0)
static int cbs_read_ue_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc, const char *name, uint32_t *write_to, uint32_t range_min, uint32_t range_max)
Definition: cbs_h2645.c:34
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109
AVFormatContext * ctx
Definition: movenc.c:48
#define CHECK(call)
Definition: cbs_h2645.c:232
const char * name
Definition: opengl_enc.c:103

Definition at line 332 of file cbs_h2645.c.

Referenced by dec_ref_pic_marking(), and ref_pic_list_modification().

#define xse (   name,
  var,
  range_min,
  range_max 
)
Value:
do { \
int32_t value = range_min; \
&value, range_min, range_max)); \
var = value; \
} while (0)
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109
int32_t
AVFormatContext * ctx
Definition: movenc.c:48
#define CHECK(call)
Definition: cbs_h2645.c:232
static int cbs_read_se_golomb(CodedBitstreamContext *ctx, GetBitContext *gbc, const char *name, int32_t *write_to, int32_t range_min, int32_t range_max)
Definition: cbs_h2645.c:84
const char * name
Definition: opengl_enc.c:103

Definition at line 337 of file cbs_h2645.c.

Referenced by scaling_list(), and scaling_list_data().

#define u (   width,
  name,
  range_min,
  range_max 
)    xu(width, name, current->name, range_min, range_max)

Definition at line 343 of file cbs_h2645.c.

Referenced by adpcm_compress_trellis(), adpcm_decode_frame(), apply_lut(), aud(), av_gcd(), avui_decode_frame(), aw_pulse_set2(), bitpacked_decode_yuv422p10(), build_diff_map(), build_huff(), build_huff10(), calc_combed_score(), calc_persp_luts(), calculate_codes(), cinepak_decode_codebook(), convert_input(), cpia_decode_frame(), cqt_calc(), create_chrominance_lut(), dash_read_header(), decode_aybr(), decode_aybri(), decode_byry(), decode_byryi(), decode_c82i(), decode_c82p(), decode_ca2i(), decode_ca2p(), decode_ca4i(), decode_ca4p(), decode_frame(), decode_subband_slice_buffered(), decode_ybr(), decode_ybr10(), decode_ybr10i(), decode_ybri(), decode_ybyr(), decode_yry10(), decode_yry10i(), do_chromakey_slice(), dv_decode_ac(), encode_422_bitstream(), encode_frame(), ff_print_debug_info2(), ff_rtjpeg_decode_frame_yuv420(), ff_sws_alphablendaway(), ff_vorbis_len2vlc(), ff_yuv2rgb_c_init_tables(), fill_in_tongue(), filter_frame(), frame_block_to_cell(), generate_joint_tables(), generate_kernel(), get_bits(), get_s16l(), getutime(), hl_decode_mb_predict_luma(), hls_read_header(), hrd_parameters(), huff_build(), huff_build10(), huff_build12(), init(), intra_predict(), inv_cdf(), jp2_find_codestream(), lcg_random(), main(), mode17(), mode23(), mode24(), model256_update(), model2_update(), model_update(), monochrome_color_location(), motionpixels_tableinit(), mp_build_rgb_yuv_table(), mp_set_zero_yuv(), mp_yuv_to_rgb(), mss2_blit_wmv9_template(), nal_unit_header(), pick_color(), pow_m1_4(), pps(), pps_scc_extension(), print_option(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), profile_tier_level(), read_high_coeffs(), ref_pic_lists_modification(), render_default_font(), resample_cubic(), resample_linear(), reverse_dc_prediction(), rgb16_32ToUV_c_template(), rgb2yuv_fsb(), rso_write_header(), rv34_pred_4x4_block(), rv40_weak_loop_filter(), sbr_sum_square_c(), scan_float(), scan_int32(), sei_display_orientation(), sei_pic_timestamp(), sei_pic_timing(), sei_recovery_point(), sei_user_data_registered(), sign_extend(), slice_header(), slice_segment_header(), sps(), sps_extension(), sps_scc_extension(), svq3_add_idct_c(), svq3_decode_mb(), sws_scale(), tm2_decode_blocks(), uninit_options(), v308_decode_frame(), v308_encode_frame(), v408_decode_frame(), v408_encode_frame(), v410_decode_frame(), v410_encode_frame(), vp9_handle_packet(), vps(), vui_parameters(), wavpack_encode_block(), wv_get_value_float(), y216_decode_frame(), y41p_decode_frame(), y41p_encode_frame(), yuv2nv12cX_c(), yuv2p010cX_c(), yuv2rgb(), yuv2yuv(), yuv4_decode_frame(), yuv4_encode_frame(), and zero12v_decode_frame().

#define flag (   name)    u(1, name, 0, 1)
#define ue (   name,
  range_min,
  range_max 
)    xue(name, current->name, range_min, range_max)
#define se (   name,
  range_min,
  range_max 
)    xse(name, current->name, range_min, range_max)
#define infer (   name,
  value 
)
Value:
do { \
current->name = value; \
} while (0)
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109

Definition at line 351 of file cbs_h2645.c.

Referenced by hrd_parameters(), pps(), pps_scc_extension(), pred_weight_table(), sei_pic_timestamp(), slice_header(), slice_segment_header(), sps(), st_ref_pic_set(), vps(), and vui_parameters().

#define more_rbsp_data (   var)    ((var) = cbs_h2645_read_more_rbsp_data(rw))

Definition at line 360 of file cbs_h2645.c.

Referenced by pps().

#define byte_alignment (   rw)    (get_bits_count(rw) % 8)

Definition at line 362 of file cbs_h2645.c.

Referenced by rbsp_trailing_bits(), sei_payload(), and slice_header().

#define allocate (   name,
  size 
)
Value:
do { \
return AVERROR(ENOMEM); \
} while (0)
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
Definition: mem.c:236
ptrdiff_t size
Definition: opengl_enc.c:101
#define AVERROR(e)
Definition: error.h:43
return
if(ret< 0)
Definition: vf_mcdeint.c:279
const char * name
Definition: opengl_enc.c:103

Definition at line 364 of file cbs_h2645.c.

Referenced by extension_data(), sei_payload(), sei_user_data_registered(), and sei_user_data_unregistered().

#define FUNC (   name)    FUNC_H264(READWRITE, name)

Definition at line 376 of file cbs_h2645.c.

#define FUNC (   name)    FUNC_H265(READWRITE, name)

Definition at line 376 of file cbs_h2645.c.

#define WRITE

Definition at line 323 of file cbs_h2645.c.

#define READWRITE   write

Definition at line 324 of file cbs_h2645.c.

#define RWContext   PutBitContext

Definition at line 325 of file cbs_h2645.c.

#define xu (   width,
  name,
  var,
  range_min,
  range_max 
)
Value:
do { \
uint32_t value = var; \
value, range_min, range_max)); \
} while (0)
int ff_cbs_write_unsigned(CodedBitstreamContext *ctx, PutBitContext *pbc, int width, const char *name, uint32_t value, uint32_t range_min, uint32_t range_max)
Definition: cbs.c:362
uint16_t width
Definition: gdv.c:47
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109
AVFormatContext * ctx
Definition: movenc.c:48
#define CHECK(call)
Definition: cbs_h2645.c:232
const char * name
Definition: opengl_enc.c:103

Definition at line 327 of file cbs_h2645.c.

#define xue (   name,
  var,
  range_min,
  range_max 
)
Value:
do { \
uint32_t value = var; \
value, range_min, range_max)); \
} while (0)
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109
AVFormatContext * ctx
Definition: movenc.c:48
static int cbs_write_ue_golomb(CodedBitstreamContext *ctx, PutBitContext *pbc, const char *name, uint32_t value, uint32_t range_min, uint32_t range_max)
Definition: cbs_h2645.c:138
#define CHECK(call)
Definition: cbs_h2645.c:232
const char * name
Definition: opengl_enc.c:103

Definition at line 332 of file cbs_h2645.c.

#define xse (   name,
  var,
  range_min,
  range_max 
)
Value:
do { \
value, range_min, range_max)); \
} while (0)
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109
int32_t
AVFormatContext * ctx
Definition: movenc.c:48
static int cbs_write_se_golomb(CodedBitstreamContext *ctx, PutBitContext *pbc, const char *name, int32_t value, int32_t range_min, int32_t range_max)
Definition: cbs_h2645.c:179
#define CHECK(call)
Definition: cbs_h2645.c:232
const char * name
Definition: opengl_enc.c:103

Definition at line 337 of file cbs_h2645.c.

#define u (   width,
  name,
  range_min,
  range_max 
)    xu(width, name, current->name, range_min, range_max)

Definition at line 343 of file cbs_h2645.c.

#define flag (   name)    u(1, name, 0, 1)

Definition at line 345 of file cbs_h2645.c.

#define ue (   name,
  range_min,
  range_max 
)    xue(name, current->name, range_min, range_max)

Definition at line 346 of file cbs_h2645.c.

#define se (   name,
  range_min,
  range_max 
)    xse(name, current->name, range_min, range_max)

Definition at line 348 of file cbs_h2645.c.

#define infer (   name,
  value 
)
Value:
do { \
if (current->name != (value)) { \
av_log(ctx->log_ctx, AV_LOG_WARNING, "Warning: " \
"%s does not match inferred value: " \
"%"PRId64", but should be %"PRId64".\n", \
#name, (int64_t)current->name, (int64_t)(value)); \
} \
} while (0)
#define AV_LOG_WARNING
Something somehow does not look correct.
Definition: log.h:182
#define av_log(a,...)
GLsizei GLboolean const GLfloat * value
Definition: opengl_enc.c:109
AVFormatContext * ctx
Definition: movenc.c:48
if(ret< 0)
Definition: vf_mcdeint.c:279
const char * name
Definition: opengl_enc.c:103

Definition at line 351 of file cbs_h2645.c.

#define more_rbsp_data (   var)    (var)

Definition at line 360 of file cbs_h2645.c.

#define byte_alignment (   rw)    (put_bits_count(rw) % 8)

Definition at line 362 of file cbs_h2645.c.

#define allocate (   name,
  size 
)
Value:
do { \
if (!name) { \
av_log(ctx->log_ctx, AV_LOG_ERROR, "%s must be set " \
"for writing.\n", #name); \
} \
} while (0)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition: error.h:59
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
return
AVFormatContext * ctx
Definition: movenc.c:48
if(ret< 0)
Definition: vf_mcdeint.c:279
const char * name
Definition: opengl_enc.c:103

Definition at line 364 of file cbs_h2645.c.

#define FUNC (   name)    FUNC_H264(READWRITE, name)

Definition at line 376 of file cbs_h2645.c.

#define FUNC (   name)    FUNC_H265(READWRITE, name)

Definition at line 376 of file cbs_h2645.c.

#define cbs_h2645_replace_ps (   h26n,
  ps_name,
  ps_var,
  id_element 
)
Value:
static int cbs_h26 ## h26n ## _replace_ ## ps_var(CodedBitstreamContext *ctx, \
const H26 ## h26n ## Raw ## ps_name *ps_var) \
{ \
CodedBitstreamH26 ## h26n ## Context *priv = ctx->priv_data; \
unsigned int id = ps_var->id_element; \
if (id > FF_ARRAY_ELEMS(priv->ps_var)) { \
av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid " #ps_name \
" id : %d.\n", id); \
} \
av_freep(&priv->ps_var[id]); \
priv->ps_var[id] = av_malloc(sizeof(*ps_var)); \
if (!priv->ps_var[id]) \
return AVERROR(ENOMEM); \
memcpy(priv->ps_var[id], ps_var, sizeof(*ps_var)); \
return 0; \
}
Definition: async.c:56
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition: error.h:59
#define av_malloc(s)
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
#define AVERROR(e)
Definition: error.h:43
return
AVFormatContext * ctx
Definition: movenc.c:48
#define FF_ARRAY_ELEMS(a)
Context structure for coded bitstream operations.
Definition: cbs.h:145
if(ret< 0)
Definition: vf_mcdeint.c:279
void * priv_data
Format private data.
Definition: avformat.h:1353
#define av_freep(p)
enum AVCodecID id

Definition at line 666 of file cbs_h2645.c.

Function Documentation

static int cbs_read_ue_golomb ( CodedBitstreamContext ctx,
GetBitContext gbc,
const char *  name,
uint32_t *  write_to,
uint32_t  range_min,
uint32_t  range_max 
)
static

Definition at line 34 of file cbs_h2645.c.

static int cbs_read_se_golomb ( CodedBitstreamContext ctx,
GetBitContext gbc,
const char *  name,
int32_t write_to,
int32_t  range_min,
int32_t  range_max 
)
static

Definition at line 84 of file cbs_h2645.c.

static int cbs_write_ue_golomb ( CodedBitstreamContext ctx,
PutBitContext pbc,
const char *  name,
uint32_t  value,
uint32_t  range_min,
uint32_t  range_max 
)
static

Definition at line 138 of file cbs_h2645.c.

static int cbs_write_se_golomb ( CodedBitstreamContext ctx,
PutBitContext pbc,
const char *  name,
int32_t  value,
int32_t  range_min,
int32_t  range_max 
)
static

Definition at line 179 of file cbs_h2645.c.

static int cbs_h2645_read_more_rbsp_data ( GetBitContext gbc)
static

Definition at line 279 of file cbs_h2645.c.

Referenced by extension_data(), and sei().

static void cbs_h264_free_sei ( H264RawSEI sei)
static

Definition at line 396 of file cbs_h2645.c.

Referenced by cbs_h2645_replace_ps(), and cbs_h264_free_nal_unit().

static void cbs_h264_free_slice ( H264RawSlice slice)
static

Definition at line 421 of file cbs_h2645.c.

Referenced by cbs_h264_free_nal_unit().

static void cbs_h264_free_nal_unit ( CodedBitstreamUnit unit)
static

Definition at line 426 of file cbs_h2645.c.

static void cbs_h265_free_nal_unit ( CodedBitstreamUnit unit)
static

Definition at line 440 of file cbs_h2645.c.

static int cbs_h2645_fragment_add_nals ( CodedBitstreamContext ctx,
CodedBitstreamFragment frag,
const H2645Packet packet 
)
static

Definition at line 474 of file cbs_h2645.c.

Referenced by cbs_h2645_split_fragment().

static int cbs_h2645_split_fragment ( CodedBitstreamContext ctx,
CodedBitstreamFragment frag,
int  header 
)
static

Definition at line 507 of file cbs_h2645.c.

cbs_h2645_replace_ps ( cbs_h2645_replace_ps(  4,
cbs_h2645_replace_ps(  SPS,
cbs_h2645_replace_ps(  sps,
seq_parameter_set_id   
)

Definition at line 685 of file cbs_h2645.c.

static int cbs_h265_read_nal_unit ( CodedBitstreamContext ctx,
CodedBitstreamUnit unit 
)
static

Definition at line 842 of file cbs_h2645.c.

static int cbs_h264_write_nal_unit ( CodedBitstreamContext ctx,
CodedBitstreamUnit unit,
PutBitContext pbc 
)
static

Definition at line 989 of file cbs_h2645.c.

Referenced by cbs_h2645_write_nal_unit().

static int cbs_h265_write_nal_unit ( CodedBitstreamContext ctx,
CodedBitstreamUnit unit,
PutBitContext pbc 
)
static

Definition at line 1102 of file cbs_h2645.c.

Referenced by cbs_h2645_write_nal_unit().

static int cbs_h2645_write_nal_unit ( CodedBitstreamContext ctx,
CodedBitstreamUnit unit 
)
static

Definition at line 1223 of file cbs_h2645.c.

static int cbs_h2645_assemble_fragment ( CodedBitstreamContext ctx,
CodedBitstreamFragment frag 
)
static

Definition at line 1282 of file cbs_h2645.c.

static void cbs_h264_close ( CodedBitstreamContext ctx)
static

Definition at line 1361 of file cbs_h2645.c.

static void cbs_h265_close ( CodedBitstreamContext ctx)
static

Definition at line 1376 of file cbs_h2645.c.

Variable Documentation

const CodedBitstreamType ff_cbs_type_h264
Initial value:
= {
.codec_id = AV_CODEC_ID_H264,
.priv_data_size = sizeof(CodedBitstreamH264Context),
.split_fragment = &cbs_h2645_split_fragment,
.read_unit = &cbs_h264_read_nal_unit,
.write_unit = &cbs_h2645_write_nal_unit,
.assemble_fragment = &cbs_h2645_assemble_fragment,
.free_unit = &cbs_h264_free_nal_unit,
.close = &cbs_h264_close,
}
static int cbs_h2645_write_nal_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
Definition: cbs_h2645.c:1223
static int cbs_h2645_assemble_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
Definition: cbs_h2645.c:1282
static void cbs_h264_close(CodedBitstreamContext *ctx)
Definition: cbs_h2645.c:1361
static void cbs_h264_free_nal_unit(CodedBitstreamUnit *unit)
Definition: cbs_h2645.c:426
static int cbs_h2645_split_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header)
Definition: cbs_h2645.c:507

Definition at line 1393 of file cbs_h2645.c.

const CodedBitstreamType ff_cbs_type_h265
Initial value:
= {
.codec_id = AV_CODEC_ID_HEVC,
.priv_data_size = sizeof(CodedBitstreamH265Context),
.split_fragment = &cbs_h2645_split_fragment,
.read_unit = &cbs_h265_read_nal_unit,
.write_unit = &cbs_h2645_write_nal_unit,
.assemble_fragment = &cbs_h2645_assemble_fragment,
.free_unit = &cbs_h265_free_nal_unit,
.close = &cbs_h265_close,
}
static int cbs_h2645_write_nal_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
Definition: cbs_h2645.c:1223
static int cbs_h265_read_nal_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
Definition: cbs_h2645.c:842
static int cbs_h2645_assemble_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
Definition: cbs_h2645.c:1282
static void cbs_h265_close(CodedBitstreamContext *ctx)
Definition: cbs_h2645.c:1376
static void cbs_h265_free_nal_unit(CodedBitstreamUnit *unit)
Definition: cbs_h2645.c:440
static int cbs_h2645_split_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header)
Definition: cbs_h2645.c:507

Definition at line 1407 of file cbs_h2645.c.