#include <stddef.h>
#include <stdint.h>
#include "config.h"
#include "libavutil/log.h"
#include "cbs.h"
#include "codec_id.h"
#include "get_bits.h"
#include "put_bits.h"
#include "libavutil/refstruct.h"
Go to the source code of this file.
|
| #define | CBS_READ 1 |
| |
| #define | CBS_WRITE 1 |
| |
| #define | CBS_TRACE 1 |
| |
| #define | CBS_APV CONFIG_CBS_APV |
| |
| #define | CBS_AV1 CONFIG_CBS_AV1 |
| |
| #define | CBS_H264 CONFIG_CBS_H264 |
| |
| #define | CBS_H265 CONFIG_CBS_H265 |
| |
| #define | CBS_H266 CONFIG_CBS_H266 |
| |
| #define | CBS_LCEVC CONFIG_CBS_LCEVC |
| |
| #define | CBS_JPEG CONFIG_CBS_JPEG |
| |
| #define | CBS_MPEG2 CONFIG_CBS_MPEG2 |
| |
| #define | CBS_VP8 CONFIG_CBS_VP8 |
| |
| #define | CBS_VP9 CONFIG_CBS_VP9 |
| |
| #define | MAX_UINT_BITS(length) |
| |
| #define | MAX_INT_BITS(length) |
| |
| #define | MIN_INT_BITS(length) |
| |
| #define | CBS_TRACE_READ_START() |
| |
| #define | CBS_TRACE_READ_END() |
| |
| #define | CBS_TRACE_READ_END_NO_SUBSCRIPTS() |
| |
| #define | CBS_TRACE_READ_END_VALUE_ONLY() |
| |
| #define | CBS_TRACE_WRITE_START() |
| |
| #define | CBS_TRACE_WRITE_END() |
| |
| #define | CBS_TRACE_WRITE_END_NO_SUBSCRIPTS() |
| |
| #define | CBS_TRACE_WRITE_END_VALUE_ONLY() |
| |
| #define | TYPE_LIST(...) |
| |
| #define | CBS_UNIT_TYPE_POD(type_, structure) |
| |
| #define | CBS_UNIT_RANGE_POD(range_start, range_end, structure) |
| |
| #define | CBS_UNIT_TYPES_INTERNAL_REF(types, structure, ref_field) |
| |
| #define | CBS_UNIT_TYPE_INTERNAL_REF(type, structure, ref_field) |
| |
| #define | CBS_UNIT_RANGE_INTERNAL_REF(range_start, range_end, structure, ref_field) |
| |
| #define | CBS_UNIT_TYPES_COMPLEX(types, structure, free_func) |
| |
| #define | CBS_UNIT_TYPE_COMPLEX(type, structure, free_func) |
| |
| #define | CBS_UNIT_TYPE_END_OF_LIST { .nb_unit_types = 0 } |
| |
|
| void CBS_FUNC | trace_header (CodedBitstreamContext *ctx, const char *name) |
| |
| int CBS_FUNC | read_unsigned (CodedBitstreamContext *ctx, GetBitContext *gbc, int width, const char *name, const int *subscripts, uint32_t *write_to, uint32_t range_min, uint32_t range_max) |
| |
| int CBS_FUNC | read_simple_unsigned (CodedBitstreamContext *ctx, GetBitContext *gbc, int width, const char *name, uint32_t *write_to) |
| |
| int CBS_FUNC | write_unsigned (CodedBitstreamContext *ctx, PutBitContext *pbc, int width, const char *name, const int *subscripts, uint32_t value, uint32_t range_min, uint32_t range_max) |
| |
| int CBS_FUNC | write_simple_unsigned (CodedBitstreamContext *ctx, PutBitContext *pbc, int width, const char *name, uint32_t value) |
| |
| int CBS_FUNC | read_signed (CodedBitstreamContext *ctx, GetBitContext *gbc, int width, const char *name, const int *subscripts, int32_t *write_to, int32_t range_min, int32_t range_max) |
| |
| int CBS_FUNC | write_signed (CodedBitstreamContext *ctx, PutBitContext *pbc, int width, const char *name, const int *subscripts, int32_t value, int32_t range_min, int32_t range_max) |
| |
| const CodedBitstreamType | CBS_FUNC (type_apv) |
| |
| const CodedBitstreamType | CBS_FUNC (type_av1) |
| |
| const CodedBitstreamType | CBS_FUNC (type_h264) |
| |
| const CodedBitstreamType | CBS_FUNC (type_h265) |
| |
| const CodedBitstreamType | CBS_FUNC (type_h266) |
| |
| const CodedBitstreamType | CBS_FUNC (type_lcevc) |
| |
| const CodedBitstreamType | CBS_FUNC (type_jpeg) |
| |
| const CodedBitstreamType | CBS_FUNC (type_mpeg2) |
| |
| const CodedBitstreamType | CBS_FUNC (type_vp8) |
| |
| const CodedBitstreamType | CBS_FUNC (type_vp9) |
| |
◆ CBS_READ
◆ CBS_WRITE
◆ CBS_TRACE
◆ CBS_APV
| #define CBS_APV CONFIG_CBS_APV |
◆ CBS_AV1
| #define CBS_AV1 CONFIG_CBS_AV1 |
◆ CBS_H264
| #define CBS_H264 CONFIG_CBS_H264 |
◆ CBS_H265
| #define CBS_H265 CONFIG_CBS_H265 |
◆ CBS_H266
| #define CBS_H266 CONFIG_CBS_H266 |
◆ CBS_LCEVC
| #define CBS_LCEVC CONFIG_CBS_LCEVC |
◆ CBS_JPEG
| #define CBS_JPEG CONFIG_CBS_JPEG |
◆ CBS_MPEG2
| #define CBS_MPEG2 CONFIG_CBS_MPEG2 |
◆ CBS_VP8
| #define CBS_VP8 CONFIG_CBS_VP8 |
◆ CBS_VP9
| #define CBS_VP9 CONFIG_CBS_VP9 |
◆ MAX_UINT_BITS
| #define MAX_UINT_BITS |
( |
| length | ) |
|
Value:((UINT64_C(1) << (length)) - 1)
Definition at line 238 of file cbs_internal.h.
Referenced by aps(), cbs_mpeg2_write_slice(), decoder_model_info(), ff_cbs_h2645_payload_extension_present(), ff_cbs_h2645_read_more_rbsp_data(), ff_cbs_h2645_write_slice_data(), film_grain_params(), general_timing_hrd_parameters(), message(), payload_extension(), process_block(), process_block_list(), ref_pic_list_struct(), SEI_FUNC(), SEI_FUNC(), SEI_FUNC(), SEI_FUNC(), SEI_FUNC(), sps(), tile_info(), and timing_info().
◆ MAX_INT_BITS
| #define MAX_INT_BITS |
( |
| length | ) |
|
◆ MIN_INT_BITS
| #define MIN_INT_BITS |
( |
| length | ) |
|
Value:(-(INT64_C(1) << ((length) - 1)))
Definition at line 246 of file cbs_internal.h.
◆ CBS_TRACE_READ_START
| #define CBS_TRACE_READ_START |
( |
| ) |
|
◆ CBS_TRACE_READ_END
| #define CBS_TRACE_READ_END |
( |
| ) |
|
◆ CBS_TRACE_READ_END_NO_SUBSCRIPTS
| #define CBS_TRACE_READ_END_NO_SUBSCRIPTS |
( |
| ) |
|
◆ CBS_TRACE_READ_END_VALUE_ONLY
| #define CBS_TRACE_READ_END_VALUE_ONLY |
( |
| ) |
|
◆ CBS_TRACE_WRITE_START
| #define CBS_TRACE_WRITE_START |
( |
| ) |
|
◆ CBS_TRACE_WRITE_END
| #define CBS_TRACE_WRITE_END |
( |
| ) |
|
◆ CBS_TRACE_WRITE_END_NO_SUBSCRIPTS
| #define CBS_TRACE_WRITE_END_NO_SUBSCRIPTS |
( |
| ) |
|
◆ CBS_TRACE_WRITE_END_VALUE_ONLY
| #define CBS_TRACE_WRITE_END_VALUE_ONLY |
( |
| ) |
|
◆ TYPE_LIST
◆ CBS_UNIT_TYPE_POD
| #define CBS_UNIT_TYPE_POD |
( |
| type_, |
|
|
| structure ) |
Value: { \
.nb_unit_types = 1, \
.unit_type.list = { type_ }, \
.content_size = sizeof(structure), \
.
type.ref = { .nb_offsets = 0 }, \
}
@ CBS_CONTENT_TYPE_INTERNAL_REFS
Definition at line 342 of file cbs_internal.h.
◆ CBS_UNIT_RANGE_POD
| #define CBS_UNIT_RANGE_POD |
( |
| range_start, |
|
|
| range_end, |
|
|
| structure ) |
Value: { \
.unit_type.range.start = range_start, \
.unit_type.range.end = range_end, \
.content_size = sizeof(structure), \
.
type.ref = { .nb_offsets = 0 }, \
}
Definition at line 349 of file cbs_internal.h.
◆ CBS_UNIT_TYPES_INTERNAL_REF
| #define CBS_UNIT_TYPES_INTERNAL_REF |
( |
| types, |
|
|
| structure, |
|
|
| ref_field ) |
Value: { \
.content_size = sizeof(structure), \
.
type.ref = { .nb_offsets = 1, \
.offsets = { offsetof(structure, ref_field) } }, \
}
uint32_t CodedBitstreamUnitType
The codec-specific type of a bitstream unit.
#define FF_ARRAY_ELEMS(a)
Definition at line 358 of file cbs_internal.h.
◆ CBS_UNIT_TYPE_INTERNAL_REF
| #define CBS_UNIT_TYPE_INTERNAL_REF |
( |
| type, |
|
|
| structure, |
|
|
| ref_field ) |
Value:
#define CBS_UNIT_TYPES_INTERNAL_REF(types, structure, ref_field)
Definition at line 366 of file cbs_internal.h.
◆ CBS_UNIT_RANGE_INTERNAL_REF
| #define CBS_UNIT_RANGE_INTERNAL_REF |
( |
| range_start, |
|
|
| range_end, |
|
|
| structure, |
|
|
| ref_field ) |
Value: { \
.unit_type.range.start = range_start, \
.unit_type.range.end = range_end, \
.content_size = sizeof(structure), \
.
type.ref = { .nb_offsets = 1, \
.offsets = { offsetof(structure, ref_field) } }, \
}
Definition at line 369 of file cbs_internal.h.
◆ CBS_UNIT_TYPES_COMPLEX
| #define CBS_UNIT_TYPES_COMPLEX |
( |
| types, |
|
|
| structure, |
|
|
| free_func ) |
Value: { \
.content_size = sizeof(structure), \
.
type.complex = { .content_free = free_func }, \
}
@ CBS_CONTENT_TYPE_COMPLEX
Definition at line 379 of file cbs_internal.h.
◆ CBS_UNIT_TYPE_COMPLEX
| #define CBS_UNIT_TYPE_COMPLEX |
( |
| type, |
|
|
| structure, |
|
|
| free_func ) |
Value:
#define CBS_UNIT_TYPES_COMPLEX(types, structure, free_func)
Definition at line 386 of file cbs_internal.h.
◆ CBS_UNIT_TYPE_END_OF_LIST
| #define CBS_UNIT_TYPE_END_OF_LIST { .nb_unit_types = 0 } |
◆ CBSContentType
| Enumerator |
|---|
| CBS_CONTENT_TYPE_INTERNAL_REFS | |
| CBS_CONTENT_TYPE_COMPLEX | |
Definition at line 76 of file cbs_internal.h.
◆ anonymous enum
| Enumerator |
|---|
| CBS_MAX_LIST_UNIT_TYPES | |
| CBS_MAX_REF_OFFSETS | |
| CBS_UNIT_TYPE_RANGE | |
Definition at line 86 of file cbs_internal.h.
◆ trace_header()
◆ read_unsigned()
◆ read_simple_unsigned()
◆ write_unsigned()
◆ write_simple_unsigned()
◆ read_signed()
◆ write_signed()
◆ CBS_FUNC() [1/10]
◆ CBS_FUNC() [2/10]
◆ CBS_FUNC() [3/10]
◆ CBS_FUNC() [4/10]
◆ CBS_FUNC() [5/10]
◆ CBS_FUNC() [6/10]
◆ CBS_FUNC() [7/10]
◆ CBS_FUNC() [8/10]
◆ CBS_FUNC() [9/10]
◆ CBS_FUNC() [10/10]