FFmpeg
|
#include "libavutil/avassert.h"
#include "cbs.h"
#include "cbs_internal.h"
#include "cbs_mpeg2.h"
#include "startcode.h"
#include "cbs_mpeg2_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_MPEG2(rw, name) FUNC_NAME(rw, mpeg2, name) |
#define | FUNC(name) FUNC_MPEG2(READWRITE, name) |
#define | SUBSCRIPTS(subs, ...) (subs > 0 ? ((int[subs + 1]){ subs, __VA_ARGS__ }) : NULL) |
#define | uir(width, name) xui(width, name, current->name, 1, MAX_UINT_BITS(width), 0, ) |
#define | uis(width, name, subs, ...) xui(width, name, current->name, 0, MAX_UINT_BITS(width), subs, __VA_ARGS__) |
#define | uirs(width, name, subs, ...) xui(width, name, current->name, 1, MAX_UINT_BITS(width), subs, __VA_ARGS__) |
#define | xui(width, name, var, range_min, range_max, subs, ...) xuia(width, #name, var, range_min, range_max, subs, __VA_ARGS__) |
#define | sis(width, name, subs, ...) xsi(width, name, current->name, subs, __VA_ARGS__) |
#define | marker_bit() bit("marker_bit", 1) |
#define | bit(string, value) |
#define | READ |
#define | READWRITE read |
#define | RWContext GetBitContext |
#define | ui(width, name) |
#define | xuia(width, string, var, range_min, range_max, subs, ...) |
#define | xsi(width, name, var, subs, ...) |
#define | nextbits(width, compare, var) |
#define | infer(name, value) |
#define | WRITE |
#define | READWRITE write |
#define | RWContext PutBitContext |
#define | ui(width, name) |
#define | xuia(width, string, var, range_min, range_max, subs, ...) |
#define | xsi(width, name, var, subs, ...) |
#define | nextbits(width, compare, var) (var) |
#define | infer(name, value) |
#define | START(start_code, type, read_func, free_func) |
#define | START(start_code, type, func) |
Functions | |
static int | cbs_mpeg2_split_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag, int header) |
static int | cbs_mpeg2_read_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit) |
static int | cbs_mpeg2_write_header (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc) |
static int | cbs_mpeg2_write_slice (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc) |
static int | cbs_mpeg2_write_unit (CodedBitstreamContext *ctx, CodedBitstreamUnit *unit, PutBitContext *pbc) |
static int | cbs_mpeg2_assemble_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag) |
Variables | |
static const CodedBitstreamUnitTypeDescriptor | cbs_mpeg2_unit_types [] |
const CodedBitstreamType | ff_cbs_type_mpeg2 |
#define HEADER | ( | name | ) |
Definition at line 27 of file cbs_mpeg2.c.
#define CHECK | ( | call | ) |
Definition at line 31 of file cbs_mpeg2.c.
Definition at line 37 of file cbs_mpeg2.c.
Definition at line 38 of file cbs_mpeg2.c.
#define FUNC | ( | name | ) | FUNC_MPEG2(READWRITE, name) |
Definition at line 39 of file cbs_mpeg2.c.
#define SUBSCRIPTS | ( | subs, | |
... | |||
) | (subs > 0 ? ((int[subs + 1]){ subs, __VA_ARGS__ }) : NULL) |
Definition at line 41 of file cbs_mpeg2.c.
Definition at line 43 of file cbs_mpeg2.c.
#define uis | ( | width, | |
name, | |||
subs, | |||
... | |||
) | xui(width, name, current->name, 0, MAX_UINT_BITS(width), subs, __VA_ARGS__) |
Definition at line 45 of file cbs_mpeg2.c.
#define uirs | ( | width, | |
name, | |||
subs, | |||
... | |||
) | xui(width, name, current->name, 1, MAX_UINT_BITS(width), subs, __VA_ARGS__) |
Definition at line 47 of file cbs_mpeg2.c.
#define xui | ( | width, | |
name, | |||
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) | xuia(width, #name, var, range_min, range_max, subs, __VA_ARGS__) |
Definition at line 49 of file cbs_mpeg2.c.
Definition at line 51 of file cbs_mpeg2.c.
#define marker_bit | ( | ) | bit("marker_bit", 1) |
Definition at line 54 of file cbs_mpeg2.c.
#define bit | ( | string, | |
value | |||
) |
#define READ |
Definition at line 62 of file cbs_mpeg2.c.
#define READWRITE read |
Definition at line 110 of file cbs_mpeg2.c.
#define RWContext GetBitContext |
Definition at line 111 of file cbs_mpeg2.c.
Definition at line 113 of file cbs_mpeg2.c.
#define xuia | ( | width, | |
string, | |||
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 118 of file cbs_mpeg2.c.
Definition at line 124 of file cbs_mpeg2.c.
Definition at line 131 of file cbs_mpeg2.c.
Definition at line 133 of file cbs_mpeg2.c.
#define WRITE |
Definition at line 109 of file cbs_mpeg2.c.
#define READWRITE write |
Definition at line 110 of file cbs_mpeg2.c.
#define RWContext PutBitContext |
Definition at line 111 of file cbs_mpeg2.c.
Definition at line 113 of file cbs_mpeg2.c.
#define xuia | ( | width, | |
string, | |||
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 118 of file cbs_mpeg2.c.
Definition at line 124 of file cbs_mpeg2.c.
Definition at line 131 of file cbs_mpeg2.c.
Definition at line 133 of file cbs_mpeg2.c.
#define START | ( | start_code, | |
type, | |||
read_func, | |||
free_func | |||
) |
#define START | ( | start_code, | |
type, | |||
func | |||
) |
|
static |
Definition at line 154 of file cbs_mpeg2.c.
|
static |
Definition at line 208 of file cbs_mpeg2.c.
|
static |
Definition at line 276 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_write_unit().
|
static |
Definition at line 304 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_write_unit().
|
static |
Definition at line 353 of file cbs_mpeg2.c.
|
static |
Definition at line 363 of file cbs_mpeg2.c.
|
static |
Definition at line 400 of file cbs_mpeg2.c.
const CodedBitstreamType ff_cbs_type_mpeg2 |
Definition at line 427 of file cbs_mpeg2.c.