FFmpeg
4.0
|
#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 | READ |
#define | READWRITE read |
#define | RWContext GetBitContext |
#define | xui(width, name, var) |
#define | ui(width, name) xui(width, name, current->name) |
#define | marker_bit() |
#define | nextbits(width, compare, var) |
#define | WRITE |
#define | READWRITE write |
#define | RWContext PutBitContext |
#define | xui(width, name, var) |
#define | ui(width, name) xui(width, name, current->name) |
#define | marker_bit() |
#define | nextbits(width, compare, var) (var) |
#define | START(start_code, type, read_func, free_func) |
#define | START(start_code, type, func) |
Functions | |
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) |
static int | cbs_mpeg2_assemble_fragment (CodedBitstreamContext *ctx, CodedBitstreamFragment *frag) |
static void | cbs_mpeg2_close (CodedBitstreamContext *ctx) |
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.
#define READ |
Definition at line 42 of file cbs_mpeg2.c.
#define READWRITE read |
Definition at line 77 of file cbs_mpeg2.c.
#define RWContext GetBitContext |
Definition at line 78 of file cbs_mpeg2.c.
Definition at line 80 of file cbs_mpeg2.c.
Referenced by slice_header(), and user_data().
Definition at line 85 of file cbs_mpeg2.c.
Referenced by butterworth_bp_filter(), chebyshev1_bp_filter(), chebyshev2_bp_filter(), extension_data(), group_of_pictures_header(), picture_coding_extension(), picture_display_extension(), picture_header(), quant_matrix_extension(), sequence_display_extension(), sequence_extension(), sequence_header(), slice_header(), and user_data().
#define marker_bit | ( | ) |
Definition at line 88 of file cbs_mpeg2.c.
Referenced by picture_display_extension(), sequence_display_extension(), sequence_extension(), and sequence_header().
Definition at line 92 of file cbs_mpeg2.c.
Referenced by slice_header().
#define WRITE |
Definition at line 76 of file cbs_mpeg2.c.
#define READWRITE write |
Definition at line 77 of file cbs_mpeg2.c.
#define RWContext PutBitContext |
Definition at line 78 of file cbs_mpeg2.c.
Definition at line 80 of file cbs_mpeg2.c.
Definition at line 85 of file cbs_mpeg2.c.
#define marker_bit | ( | ) |
Definition at line 88 of file cbs_mpeg2.c.
Definition at line 92 of file cbs_mpeg2.c.
#define START | ( | start_code, | |
type, | |||
read_func, | |||
free_func | |||
) |
Referenced by cbs_mpeg2_read_unit(), and cbs_mpeg2_write_header().
#define START | ( | start_code, | |
type, | |||
func | |||
) |
Definition at line 105 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_read_unit().
Definition at line 112 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_read_unit().
|
static |
Definition at line 120 of file cbs_mpeg2.c.
|
static |
Definition at line 172 of file cbs_mpeg2.c.
|
static |
Definition at line 246 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_write_unit().
|
static |
Definition at line 272 of file cbs_mpeg2.c.
Referenced by cbs_mpeg2_write_unit().
|
static |
Definition at line 306 of file cbs_mpeg2.c.
|
static |
Definition at line 361 of file cbs_mpeg2.c.
|
static |
Definition at line 398 of file cbs_mpeg2.c.
const CodedBitstreamType ff_cbs_type_mpeg2 |
Definition at line 405 of file cbs_mpeg2.c.