MythTV  master
Functions | Variables
pespacket.cpp File Reference
#include "libmythbase/mythlogging.h"
#include "libmythbase/sizetliteral.h"
#include "pespacket.h"
#include "mpegtables.h"
#include "libmythbase/mythconfig.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavutil/crc.h"
#include "libavutil/bswap.h"
#include <vector>
#include <map>
Include dependency graph for pespacket.cpp:

Go to the source code of this file.

Functions

static unsigned char * get_188_block ()
 
static bool is_188_block (unsigned char *ptr)
 
static void return_188_block (unsigned char *ptr)
 
static unsigned char * get_4096_block ()
 
static bool is_4096_block (unsigned char *ptr)
 
static void return_4096_block (unsigned char *ptr)
 
unsigned char * pes_alloc (uint size)
 
void pes_free (unsigned char *ptr)
 

Variables

static std::vector< unsigned char * > mem188
 
static std::vector< unsigned char * > free188
 
static std::map< unsigned char *, boolalloc188
 
static std::vector< unsigned char * > mem4096
 
static std::vector< unsigned char * > free4096
 
static std::map< unsigned char *, boolalloc4096
 
static constexpr size_t BLOCKS188 { 512 }
 
static constexpr size_t BLOCKS4096 { 128 }
 
static QMutex pes_alloc_mutex
 

Function Documentation

◆ get_188_block()

static unsigned char* get_188_block ( )
static

Definition at line 254 of file pespacket.cpp.

Referenced by pes_alloc().

◆ is_188_block()

static bool is_188_block ( unsigned char *  ptr)
static

Definition at line 271 of file pespacket.cpp.

Referenced by pes_free().

◆ return_188_block()

static void return_188_block ( unsigned char *  ptr)
static

Definition at line 276 of file pespacket.cpp.

Referenced by pes_free().

◆ get_4096_block()

static unsigned char* get_4096_block ( )
static

Definition at line 295 of file pespacket.cpp.

Referenced by pes_alloc().

◆ is_4096_block()

static bool is_4096_block ( unsigned char *  ptr)
static

Definition at line 312 of file pespacket.cpp.

Referenced by pes_free().

◆ return_4096_block()

static void return_4096_block ( unsigned char *  ptr)
static

Definition at line 317 of file pespacket.cpp.

Referenced by pes_free().

◆ pes_alloc()

unsigned char* pes_alloc ( uint  size)

◆ pes_free()

void pes_free ( unsigned char *  ptr)

Variable Documentation

◆ mem188

std::vector<unsigned char*> mem188
static

Definition at line 245 of file pespacket.cpp.

Referenced by get_188_block(), and return_188_block().

◆ free188

std::vector<unsigned char*> free188
static

Definition at line 246 of file pespacket.cpp.

Referenced by get_188_block(), and return_188_block().

◆ alloc188

std::map<unsigned char*, bool> alloc188
static

Definition at line 247 of file pespacket.cpp.

Referenced by get_188_block(), is_188_block(), and return_188_block().

◆ mem4096

std::vector<unsigned char*> mem4096
static

Definition at line 249 of file pespacket.cpp.

Referenced by get_4096_block(), and return_4096_block().

◆ free4096

std::vector<unsigned char*> free4096
static

Definition at line 250 of file pespacket.cpp.

Referenced by get_4096_block(), and return_4096_block().

◆ alloc4096

std::map<unsigned char*, bool> alloc4096
static

Definition at line 251 of file pespacket.cpp.

Referenced by get_4096_block(), is_4096_block(), and return_4096_block().

◆ BLOCKS188

constexpr size_t BLOCKS188 { 512 }
staticconstexpr

Definition at line 253 of file pespacket.cpp.

Referenced by get_188_block().

◆ BLOCKS4096

constexpr size_t BLOCKS4096 { 128 }
staticconstexpr

Definition at line 294 of file pespacket.cpp.

Referenced by get_4096_block().

◆ pes_alloc_mutex

QMutex pes_alloc_mutex
static

Definition at line 355 of file pespacket.cpp.

Referenced by pes_alloc(), and pes_free().