Go to the source code of this file.
Classes | |
| class | AvFormatDecoderPrivate |
| Management of libmpeg2 decoding. More... | |
Typedefs | |
| typedef MythDeque< AVFrame * > | avframe_q |
Functions | |
| const uint8_t * | ff_find_start_code (const uint8_t *restrict p, const uint8_t *end, uint32_t *restrict state) |
| static int | cc608_parity (uint8_t byte) |
| static int | cc608_good_parity (const int *parity_table, uint16_t data) |
| static void | cc608_build_parity_table (int *parity_table) |
| static int | dts_syncinfo (uint8_t *indata_ptr, int *flags, int *sample_rate, int *bit_rate) |
| static int | dts_decode_header (uint8_t *indata_ptr, int *rate, int *nblks, int *sfreq) |
| static int | encode_frame (bool dts, unsigned char *data, int len, short *samples, int &samples_size) |
| int | get_avf_buffer_xvmc (struct AVCodecContext *c, AVFrame *pic) |
| int | get_avf_buffer (struct AVCodecContext *c, AVFrame *pic) |
| void | release_avf_buffer (struct AVCodecContext *c, AVFrame *pic) |
| void | release_avf_buffer_xvmc (struct AVCodecContext *c, AVFrame *pic) |
| void | render_slice_xvmc (struct AVCodecContext *s, const AVFrame *src, int offset[4], int y, int type, int height) |
| void | decode_cc_dvd (struct AVCodecContext *c, const uint8_t *buf, int buf_size) |
| static void | myth_av_log (void *ptr, int level, const char *fmt, va_list vl) |
| static int | get_canonical_lang (const char *lang_cstr) |
| static int64_t | lsb3full (int64_t lsb, int64_t base_ts, int lsb_bits) |
| void | HandleStreamChange (void *data) |
| static float | normalized_fps (AVStream *stream, AVCodecContext *enc) |
| static int | mpeg_version (int codec_id) |
| static int | xvmc_pixel_format (enum PixelFormat pix_fmt) |
| void | default_captions (sinfo_vec_t *tracks, int av_index) |
| static vector< int > | filter_lang (const sinfo_vec_t &tracks, int lang_key) |
| static int | filter_max_ch (const AVFormatContext *ic, const sinfo_vec_t &tracks, const vector< int > &fs, enum CodecID codecId=CODEC_ID_NONE) |
| static void | extract_mono_channel (uint channel, AudioInfo *audioInfo, char *buffer, int bufsize) |
Variables | |
| static const float | eps = 1E-5 |
| static int | DTS_SAMPLEFREQS [16] |
| static int | DTS_BITRATES [30] |
Definition at line 134 of file avformatdecoder.cpp.
| const uint8_t* ff_find_start_code | ( | const uint8_t *restrict | p, | |
| const uint8_t * | end, | |||
| uint32_t *restrict | state | |||
| ) |
Definition at line 102 of file mpegvideo.c.
| static int cc608_parity | ( | uint8_t | byte | ) | [static] |
| static int cc608_good_parity | ( | const int * | parity_table, | |
| uint16_t | data | |||
| ) | [static] |
Definition at line 1236 of file avformatdecoder.cpp.
Referenced by decode_cc_dvd(), AvFormatDecoder::DecodeDTVCC(), AvFormatDecoder::GetFrame(), and AvFormatDecoder::ProcessVBIDataPacket().
| static void cc608_build_parity_table | ( | int * | parity_table | ) | [static] |
Definition at line 1220 of file avformatdecoder.cpp.
Referenced by AvFormatDecoder::AvFormatDecoder().
| static int dts_syncinfo | ( | uint8_t * | indata_ptr, | |
| int * | flags, | |||
| int * | sample_rate, | |||
| int * | bit_rate | |||
| ) | [static] |
Definition at line 4181 of file avformatdecoder.cpp.
| static int dts_decode_header | ( | uint8_t * | indata_ptr, | |
| int * | rate, | |||
| int * | nblks, | |||
| int * | sfreq | |||
| ) | [static] |
Definition at line 4203 of file avformatdecoder.cpp.
| static int encode_frame | ( | bool | dts, | |
| unsigned char * | data, | |||
| int | len, | |||
| short * | samples, | |||
| int & | samples_size | |||
| ) | [static] |
Definition at line 4077 of file avformatdecoder.cpp.
| int get_avf_buffer_xvmc | ( | struct AVCodecContext * | c, | |
| AVFrame * | pic | |||
| ) |
Definition at line 2040 of file avformatdecoder.cpp.
| int get_avf_buffer | ( | struct AVCodecContext * | c, | |
| AVFrame * | pic | |||
| ) |
Definition at line 1976 of file avformatdecoder.cpp.
| void release_avf_buffer | ( | struct AVCodecContext * | c, | |
| AVFrame * | pic | |||
| ) |
Definition at line 2020 of file avformatdecoder.cpp.
| void release_avf_buffer_xvmc | ( | struct AVCodecContext * | c, | |
| AVFrame * | pic | |||
| ) |
Definition at line 2072 of file avformatdecoder.cpp.
| void render_slice_xvmc | ( | struct AVCodecContext * | s, | |
| const AVFrame * | src, | |||
| int | offset[4], | |||
| int | y, | |||
| int | type, | |||
| int | height | |||
| ) |
Definition at line 2090 of file avformatdecoder.cpp.
| void decode_cc_dvd | ( | struct AVCodecContext * | c, | |
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) |
Definition at line 2115 of file avformatdecoder.cpp.
| static void myth_av_log | ( | void * | ptr, | |
| int | level, | |||
| const char * | fmt, | |||
| va_list | vl | |||
| ) | [static] |
Definition at line 76 of file avformatdecoder.cpp.
Referenced by AvFormatDecoder::AvFormatDecoder().
| static int get_canonical_lang | ( | const char * | lang_cstr | ) | [static] |
| void HandleStreamChange | ( | void * | data | ) |
Definition at line 827 of file avformatdecoder.cpp.
| static float normalized_fps | ( | AVStream * | stream, | |
| AVCodecContext * | enc | |||
| ) | [static] |
Definition at line 1017 of file avformatdecoder.cpp.
Referenced by AvFormatDecoder::H264PreProcessPkt(), AvFormatDecoder::InitVideoCodec(), and AvFormatDecoder::MpegPreProcessPkt().
| static int mpeg_version | ( | int | codec_id | ) | [static] |
| static int xvmc_pixel_format | ( | enum PixelFormat | pix_fmt | ) | [static] |
| void default_captions | ( | sinfo_vec_t * | tracks, | |
| int | av_index | |||
| ) |
Definition at line 1192 of file avformatdecoder.cpp.
Referenced by AvFormatDecoder::ScanATSCCaptionStreams().
| static vector<int> filter_lang | ( | const sinfo_vec_t & | tracks, | |
| int | lang_key | |||
| ) | [static] |
Definition at line 2745 of file avformatdecoder.cpp.
Referenced by AvFormatDecoder::AutoSelectAudioTrack().
| static int filter_max_ch | ( | const AVFormatContext * | ic, | |
| const sinfo_vec_t & | tracks, | |||
| const vector< int > & | fs, | |||
| enum CodecID | codecId = CODEC_ID_NONE | |||
| ) | [static] |
Definition at line 2756 of file avformatdecoder.cpp.
Referenced by AvFormatDecoder::AutoSelectAudioTrack().
const float eps = 1E-5 [static] |
Definition at line 55 of file avformatdecoder.cpp.
Referenced by AvFormatDecoder::H264PreProcessPkt(), and AvFormatDecoder::MpegPreProcessPkt().
int DTS_SAMPLEFREQS[16] [static] |
Initial value:
{
0, 8000, 16000, 32000, 64000, 128000, 11025, 22050,
44100, 88200, 176400, 12000, 24000, 48000, 96000, 192000
}
Definition at line 4166 of file avformatdecoder.cpp.
int DTS_BITRATES[30] [static] |
Initial value:
{
32000, 56000, 64000, 96000, 112000, 128000,
192000, 224000, 256000, 320000, 384000, 448000,
512000, 576000, 640000, 768000, 896000, 1024000,
1152000, 1280000, 1344000, 1408000, 1411200, 1472000,
1536000, 1920000, 2048000, 3072000, 3840000, 4096000
}
Definition at line 4172 of file avformatdecoder.cpp.
1.5.5