#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <unistd.h>
#include <QTextCodec>
#include <QFileInfo>
#include "libavutil/avutil.h"
#include "libavutil/error.h"
#include "libavutil/log.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavformat/avio.h"
#include "libavformat/internal.h"
#include "libswscale/swscale.h"
#include "libavformat/isom.h"
#include "ivtv_myth.h"
#include "libavutil/imgutils.h"
#include "libavutil/display.h"
#include "mythtvexp.h"
#include "mythconfig.h"
#include "avformatdecoder.h"
#include "audiooutput.h"
#include "audiooutpututil.h"
#include "io/mythmediabuffer.h"
#include "mythplayer.h"
#include "remoteencoder.h"
#include "programinfo.h"
#include "mythcorecontext.h"
#include "mythdbcon.h"
#include "iso639.h"
#include "mpegtables.h"
#include "atscdescriptors.h"
#include "dvbdescriptors.h"
#include "captions/cc608decoder.h"
#include "captions/cc708decoder.h"
#include "captions/teletextdecoder.h"
#include "captions/subtitlereader.h"
#include "interactivetv.h"
#include "mythvideoprofile.h"
#include "mythuihelper.h"
#include "DVD/mythdvdbuffer.h"
#include "Bluray/mythbdbuffer.h"
#include "mythavutil.h"
#include "mythhdrvideometadata.h"
#include "lcddevice.h"
Go to the source code of this file.
|
static int | cc608_parity (uint8_t byte) |
|
static int | cc608_good_parity (const CC608Parity &parity_table, uint16_t data) |
|
static void | cc608_build_parity_table (CC608Parity &parity_table) |
|
static QSize | get_video_dim (const AVCodecContext &ctx) |
|
static float | get_aspect (const AVCodecContext &ctx) |
|
static float | get_aspect (AVCParser &p) |
|
int | get_avf_buffer (struct AVCodecContext *c, AVFrame *pic, int flags) |
|
int | get_avf_buffer_dxva2 (struct AVCodecContext *c, AVFrame *pic, int flags) |
|
static bool | StreamHasRequiredParameters (AVCodecContext *Context, AVStream *Stream) |
|
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 enum AVPixelFormat | get_format_dxva2 (struct AVCodecContext *, const enum AVPixelFormat *) |
|
static vector< int > | filter_lang (const sinfo_vec_t &tracks, int lang_key, const vector< int > &ftype) |
|
static vector< int > | filter_type (const sinfo_vec_t &tracks, AudioTrackType type) |
|
static void | extract_mono_channel (uint channel, AudioInfo *audioInfo, char *buffer, int bufsize) |
|
◆ LOC
#define LOC QString("AFD: ") |
◆ SEQ_PKT_ERR_MAX
#define SEQ_PKT_ERR_MAX 50 |
◆ FAIL
Value: do { \
LOG(VB_PLAYBACK, LOG_INFO,
LOC + (errmsg)); \
return false; \
} while (false)
Definition at line 170 of file avformatdecoder.cpp.
◆ SEQ_START
#define SEQ_START 0x000001b3 |
◆ GOP_START
#define GOP_START 0x000001b8 |
◆ PICTURE_START
#define PICTURE_START 0x00000100 |
◆ SLICE_MIN
#define SLICE_MIN 0x00000101 |
◆ SLICE_MAX
#define SLICE_MAX 0x000001af |
◆ SEQ_END_CODE
#define SEQ_END_CODE 0x000001b7 |
◆ cc608_parity()
static int cc608_parity |
( |
uint8_t |
byte | ) |
|
|
static |
◆ cc608_good_parity()
◆ cc608_build_parity_table()
static void cc608_build_parity_table |
( |
CC608Parity & |
parity_table | ) |
|
|
static |
◆ get_video_dim()
static QSize get_video_dim |
( |
const AVCodecContext & |
ctx | ) |
|
|
static |
◆ get_aspect() [1/2]
static float get_aspect |
( |
const AVCodecContext & |
ctx | ) |
|
|
static |
◆ get_aspect() [2/2]
◆ get_avf_buffer()
int get_avf_buffer |
( |
struct AVCodecContext * |
c, |
|
|
AVFrame * |
pic, |
|
|
int |
flags |
|
) |
| |
◆ get_avf_buffer_dxva2()
int get_avf_buffer_dxva2 |
( |
struct AVCodecContext * |
c, |
|
|
AVFrame * |
pic, |
|
|
int |
flags |
|
) |
| |
◆ StreamHasRequiredParameters()
static bool StreamHasRequiredParameters |
( |
AVCodecContext * |
Context, |
|
|
AVStream * |
Stream |
|
) |
| |
|
static |
◆ myth_av_log()
static void myth_av_log |
( |
void * |
ptr, |
|
|
int |
level, |
|
|
const char * |
fmt, |
|
|
va_list |
vl |
|
) |
| |
|
static |
◆ get_canonical_lang()
static int get_canonical_lang |
( |
const char * |
lang_cstr | ) |
|
|
static |
◆ lsb3full()
static int64_t lsb3full |
( |
int64_t |
lsb, |
|
|
int64_t |
base_ts, |
|
|
int |
lsb_bits |
|
) |
| |
|
static |
◆ HandleStreamChange()
void HandleStreamChange |
( |
void * |
data | ) |
|
◆ get_format_dxva2()
enum AVPixelFormat get_format_dxva2 |
( |
struct AVCodecContext * |
avctx, |
|
|
const enum AVPixelFormat * |
valid_fmts |
|
) |
| |
|
static |
◆ filter_lang()
static vector<int> filter_lang |
( |
const sinfo_vec_t & |
tracks, |
|
|
int |
lang_key, |
|
|
const vector< int > & |
ftype |
|
) |
| |
|
static |
◆ filter_type()
◆ extract_mono_channel()
static void extract_mono_channel |
( |
uint |
channel, |
|
|
AudioInfo * |
audioInfo, |
|
|
char * |
buffer, |
|
|
int |
bufsize |
|
) |
| |
|
static |
◆ max_video_queue_size
const int max_video_queue_size = 220 |
|
static |
◆ silence_ffmpeg_logging