#include "parser.h"
#include "dca.h"
#include "dcadata.h"
#include "dca_parser.h"
#include "get_bits.h"
#include "put_bits.h"
Go to the source code of this file.
Data Structures | |
struct | DCAParseContext |
Defines | |
#define | IS_MARKER(state, i, buf, buf_size) |
Functions | |
static int | dca_find_frame_end (DCAParseContext *pc1, const uint8_t *buf, int buf_size) |
Find the end of the current frame in the bitstream. | |
static av_cold int | dca_parse_init (AVCodecParserContext *s) |
int | ff_dca_convert_bitstream (const uint8_t *src, int src_size, uint8_t *dst, int max_size) |
Convert bitstream to one representation based on sync marker. | |
static int | dca_parse_params (const uint8_t *buf, int buf_size, int *duration, int *sample_rate) |
static int | dca_parse (AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) |
Variables | |
AVCodecParser | ff_dca_parser |
#define IS_MARKER | ( | state, | |||
i, | |||||
buf, | |||||
buf_size | ) |
Value:
((state == DCA_MARKER_14B_LE && (i < buf_size-2) && (buf[i+1] & 0xF0) == 0xF0 && buf[i+2] == 0x07) \ || (state == DCA_MARKER_14B_BE && (i < buf_size-2) && buf[i+1] == 0x07 && (buf[i+2] & 0xF0) == 0xF0) \ || state == DCA_MARKER_RAW_LE || state == DCA_MARKER_RAW_BE || state == DCA_HD_MARKER)
Definition at line 40 of file dca_parser.c.
Referenced by dca_find_frame_end(), decode_slice(), find_next_marker(), vaapi_vc1_decode_slice(), vc1_decode_frame(), vc1_find_frame_end(), and vc1_split().
static int dca_find_frame_end | ( | DCAParseContext * | pc1, | |
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Find the end of the current frame in the bitstream.
Definition at line 49 of file dca_parser.c.
Referenced by dca_parse().
static int dca_parse | ( | AVCodecParserContext * | s, | |
AVCodecContext * | avctx, | |||
const uint8_t ** | poutbuf, | |||
int * | poutbuf_size, | |||
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 170 of file dca_parser.c.
static av_cold int dca_parse_init | ( | AVCodecParserContext * | s | ) | [static] |
Definition at line 97 of file dca_parser.c.
static int dca_parse_params | ( | const uint8_t * | buf, | |
int | buf_size, | |||
int * | duration, | |||
int * | sample_rate | |||
) | [static] |
Convert bitstream to one representation based on sync marker.
Definition at line 105 of file dca_parser.c.
Referenced by dca_decode_frame(), and dca_parse_params().
Initial value:
{ .codec_ids = { CODEC_ID_DTS }, .priv_data_size = sizeof(DCAParseContext), .parser_init = dca_parse_init, .parser_parse = dca_parse, .parser_close = ff_parse_close, }
Definition at line 204 of file dca_parser.c.