MythTV  master
Macros | Functions | Variables
videobuffers.cpp File Reference
#include <chrono>
#include <thread>
#include "mythconfig.h"
#include "mythcontext.h"
#include "videobuffers.h"
#include "libavcodec/avcodec.h"
#include "fourcc.h"
#include "compat.h"
#include "mythlogging.h"
Include dependency graph for videobuffers.cpp:

Go to the source code of this file.

Macros

#define TRY_LOCK_SPINS   2000
 
#define TRY_LOCK_SPINS_BEFORE_WARNING   9999
 
#define TRY_LOCK_SPIN_WAIT   1000 /* usec */
 
#define DBG_STR_ARR_SIZE   40
 

Functions

static unsigned long long to_bitmap (const frame_queue_t &list, int)
 
static int DebugNum (const VideoFrame *frame)
 
const QString & DebugString (const VideoFrame *frame, bool short_str)
 
const QString & DebugString (uint str_num, bool short_str)
 
static QString bitmap_to_string (unsigned long long bitmap)
 
QString DebugString (const frame_queue_t &list)
 
QString DebugString (const vector< const VideoFrame * > &list)
 

Variables

int next_dbg_str = 0
 
static unsigned char * ffmpeg_hack
 
QString dbg_str_arr [DBG_STR_ARR_SIZE]
 
QString dbg_str_arr_short [DBG_STR_ARR_SIZE]
 
map< const VideoFrame *, int > dbg_str
 

Macro Definition Documentation

◆ TRY_LOCK_SPINS

#define TRY_LOCK_SPINS   2000

Definition at line 18 of file videobuffers.cpp.

◆ TRY_LOCK_SPINS_BEFORE_WARNING

#define TRY_LOCK_SPINS_BEFORE_WARNING   9999

Definition at line 19 of file videobuffers.cpp.

◆ TRY_LOCK_SPIN_WAIT

#define TRY_LOCK_SPIN_WAIT   1000 /* usec */

Definition at line 20 of file videobuffers.cpp.

◆ DBG_STR_ARR_SIZE

#define DBG_STR_ARR_SIZE   40

Definition at line 883 of file videobuffers.cpp.

Function Documentation

◆ to_bitmap()

static unsigned long long to_bitmap ( const frame_queue_t list,
int  n 
)
static

Definition at line 929 of file videobuffers.cpp.

Referenced by DebugString(), and VideoBuffers::GetStatus().

◆ DebugNum()

static int DebugNum ( const VideoFrame frame)
static

Definition at line 908 of file videobuffers.cpp.

Referenced by DebugString(), and to_bitmap().

◆ DebugString() [1/4]

const QString& DebugString ( const VideoFrame frame,
bool  short_str 
)

◆ DebugString() [2/4]

const QString& DebugString ( uint  str_num,
bool  short_str 
)

Definition at line 924 of file videobuffers.cpp.

◆ bitmap_to_string()

static QString bitmap_to_string ( unsigned long long  bitmap)
static

Definition at line 941 of file videobuffers.cpp.

Referenced by DebugString().

◆ DebugString() [3/4]

QString DebugString ( const frame_queue_t list)

Definition at line 949 of file videobuffers.cpp.

◆ DebugString() [4/4]

QString DebugString ( const vector< const VideoFrame * > &  list)

Definition at line 954 of file videobuffers.cpp.

Variable Documentation

◆ next_dbg_str

int next_dbg_str = 0

Definition at line 22 of file videobuffers.cpp.

Referenced by DebugNum(), and VideoBuffers::DeleteBuffers().

◆ ffmpeg_hack

unsigned char* ffmpeg_hack
static
Initial value:
= (unsigned char*)
"avlib should not use this private data"

Definition at line 762 of file videobuffers.cpp.

Referenced by VideoBuffers::AddBuffer(), and VideoBuffers::CreateBuffer().

◆ dbg_str_arr

QString dbg_str_arr[DBG_STR_ARR_SIZE]
Initial value:
=
{
"A ", " B ", " C ", " D ",
" E ", " F ", " G ", " H",
"a ", " b ", " c ", " d ",
" e ", " f ", " g ", " h",
"0 ", " 1 ", " 2 ", " 3 ",
" 4 ", " 5 ", " 6 ", " 7",
"I ", " J ", " K ", " L ",
" M ", " N ", " O ", " P",
"i ", " j ", " k ", " l ",
" m ", " n ", " o ", " p",
}

Definition at line 884 of file videobuffers.cpp.

Referenced by DebugString().

◆ dbg_str_arr_short

QString dbg_str_arr_short[DBG_STR_ARR_SIZE]
Initial value:
=
{
"A","B","C","D","E","F","G","H",
"a","b","c","d","e","f","g","h",
"0","1","2","3","4","5","6","7",
"I","J","K","L","M","N","O","P",
"i","j","k","l","m","n","o","p",
}

Definition at line 897 of file videobuffers.cpp.

Referenced by DebugString().

◆ dbg_str

map<const VideoFrame *, int> dbg_str

Definition at line 906 of file videobuffers.cpp.

Referenced by DebugNum().