FFmpeg
|
#include "libavutil/avassert.h"
#include "cbs.h"
#include "cbs_internal.h"
#include "cbs_mpeg2.h"
#include "internal.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 | ui(width, name) xui(width, name, current->name, 0, MAX_UINT_BITS(width), 0) |
#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 | 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 | 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 void | cbs_mpeg2_free_picture_header (void *unit, uint8_t *content) |
static void | cbs_mpeg2_free_user_data (void *unit, uint8_t *content) |
static void | cbs_mpeg2_free_slice (void *unit, uint8_t *content) |
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 | |
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.
Definition at line 41 of file cbs_mpeg2.c.
Definition at line 43 of file cbs_mpeg2.c.
Definition at line 45 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 47 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 49 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 51 of file cbs_mpeg2.c.
Definition at line 53 of file cbs_mpeg2.c.
#define marker_bit | ( | ) | bit("marker_bit", 1) |
Definition at line 56 of file cbs_mpeg2.c.
#define bit | ( | string, | |
value | |||
) |
#define READ |
Definition at line 64 of file cbs_mpeg2.c.
#define READWRITE read |
Definition at line 105 of file cbs_mpeg2.c.
#define RWContext GetBitContext |
Definition at line 106 of file cbs_mpeg2.c.
#define xuia | ( | width, | |
string, | |||
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 108 of file cbs_mpeg2.c.
Definition at line 114 of file cbs_mpeg2.c.
Definition at line 121 of file cbs_mpeg2.c.
Definition at line 123 of file cbs_mpeg2.c.
#define WRITE |
Definition at line 104 of file cbs_mpeg2.c.
#define READWRITE write |
Definition at line 105 of file cbs_mpeg2.c.
#define RWContext PutBitContext |
Definition at line 106 of file cbs_mpeg2.c.
#define xuia | ( | width, | |
string, | |||
var, | |||
range_min, | |||
range_max, | |||
subs, | |||
... | |||
) |
Definition at line 108 of file cbs_mpeg2.c.
Definition at line 114 of file cbs_mpeg2.c.
Definition at line 121 of file cbs_mpeg2.c.
Definition at line 123 of file cbs_mpeg2.c.
#define START | ( | start_code, | |
type, | |||
read_func, | |||
free_func | |||
) |
#define START | ( | start_code, | |
type, | |||
func | |||
) |
|
static |
Definition at line 143 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_read_unit().
|
static |
Definition at line 150 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_read_unit().
|
static |
Definition at line 157 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_read_unit().
|
static |
Definition at line 165 of file cbs_mpeg2.c.
|
static |
Definition at line 224 of file cbs_mpeg2.c.
|
static |
Definition at line 296 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_write_unit().
|
static |
Definition at line 324 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_write_unit().
|
static |
Definition at line 373 of file cbs_mpeg2.c.
|
static |
Definition at line 383 of file cbs_mpeg2.c.
const CodedBitstreamType ff_cbs_type_mpeg2 |
Definition at line 420 of file cbs_mpeg2.c.