Go to the source code of this file.
|
#define | HEADER(name) |
|
#define | CHECK(call) |
|
#define | SUBSCRIPTS(subs, ...) (subs > 0 ? ((int[subs + 1]){ subs, __VA_ARGS__ }) : NULL) |
|
#define | u(width, name, range_min, range_max) xu(width, name, range_min, range_max, 0, ) |
|
#define | us(width, name, sub, range_min, range_max) xu(width, name, range_min, range_max, 1, sub) |
|
#define | READ |
|
#define | READWRITE read |
|
#define | RWContext GetBitContext |
|
#define | FUNC(name) cbs_jpeg_read_ ## name |
|
#define | xu(width, name, range_min, range_max, subs, ...) |
|
#define | WRITE |
|
#define | READWRITE write |
|
#define | RWContext PutBitContext |
|
#define | FUNC(name) cbs_jpeg_write_ ## name |
|
#define | xu(width, name, range_min, range_max, subs, ...) |
|
#define | SEGMENT(marker, func) |
|
#define | SEGMENT(marker, func) |
|
|
static int | cbs_jpeg_split_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header) |
|
static int | cbs_jpeg_read_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit) |
|
static int | cbs_jpeg_write_scan (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc) |
|
static int | cbs_jpeg_write_segment (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc) |
|
static int | cbs_jpeg_write_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc) |
|
static int | cbs_jpeg_assemble_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag) |
|
◆ HEADER
◆ CHECK
Value: do { \
err = (call); \
if (err < 0) \
return err; \
} while (0)
Definition at line 29 of file cbs_jpeg.c.
◆ SUBSCRIPTS
#define SUBSCRIPTS |
( |
|
subs, |
|
|
|
... |
|
) |
| (subs > 0 ? ((int[subs + 1]){ subs, __VA_ARGS__ }) : NULL) |
◆ us
◆ READ
◆ READWRITE [1/2]
◆ RWContext [1/2]
◆ FUNC [1/2]
#define FUNC |
( |
|
name | ) |
cbs_jpeg_read_ ## name |
◆ xu [1/2]
#define xu |
( |
|
width, |
|
|
|
name, |
|
|
|
range_min, |
|
|
|
range_max, |
|
|
|
subs, |
|
|
|
... |
|
) |
| |
Value: do { \
&
value, range_min, range_max)); \
} while (0)
Definition at line 69 of file cbs_jpeg.c.
◆ WRITE
◆ READWRITE [2/2]
◆ RWContext [2/2]
◆ FUNC [2/2]
#define FUNC |
( |
|
name | ) |
cbs_jpeg_write_ ## name |
◆ xu [2/2]
#define xu |
( |
|
width, |
|
|
|
name, |
|
|
|
range_min, |
|
|
|
range_max, |
|
|
|
subs, |
|
|
|
... |
|
) |
| |
Value: do { \
uint32_t
value = current->name; \
value, range_min, range_max)); \
} while (0)
Definition at line 69 of file cbs_jpeg.c.
◆ SEGMENT [1/2]
#define SEGMENT |
( |
|
marker, |
|
|
|
func |
|
) |
| |
Value: case JPEG_MARKER_ ## marker: \
{ \
err = cbs_jpeg_read_ ##
func(
ctx, &gbc, unit->content); \
if (err < 0) \
return err; \
} \
break
◆ SEGMENT [2/2]
#define SEGMENT |
( |
|
marker, |
|
|
|
func |
|
) |
| |
Value: case JPEG_MARKER_ ## marker: \
err = cbs_jpeg_write_ ##
func(
ctx, pbc, unit->content); \
break;
◆ cbs_jpeg_split_fragment()
◆ cbs_jpeg_read_unit()
◆ cbs_jpeg_write_scan()
◆ cbs_jpeg_write_segment()
◆ cbs_jpeg_write_unit()
◆ cbs_jpeg_assemble_fragment()
◆ cbs_jpeg_unit_types
◆ ff_cbs_type_jpeg
int(* func)(AVBPrint *dst, const char *in, const char *arg)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
#define CBS_UNIT_RANGE_POD(range_start, range_end, structure)
int ff_cbs_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)
#define CBS_UNIT_TYPE_INTERNAL_REF(type, structure, ref_field)
static const CodedBitstreamUnitTypeDescriptor cbs_jpeg_unit_types[]
static int cbs_jpeg_assemble_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag)
#define CBS_UNIT_RANGE_INTERNAL_REF(range_start, range_end, structure, ref_field)
static int cbs_jpeg_read_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit)
#define SUBSCRIPTS(subs,...)
#define CBS_UNIT_TYPE_POD(type_, structure)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default value
int ff_cbs_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)
static int cbs_jpeg_split_fragment(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header)
#define CBS_UNIT_TYPE_END_OF_LIST
static int cbs_jpeg_write_unit(CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc)