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 265 of file pespacket.cpp.

Referenced by pes_alloc().

◆ is_188_block()

static bool is_188_block ( unsigned char *  ptr)
static

Definition at line 282 of file pespacket.cpp.

Referenced by pes_free().

◆ return_188_block()

static void return_188_block ( unsigned char *  ptr)
static

Definition at line 287 of file pespacket.cpp.

Referenced by pes_free().

◆ get_4096_block()

static unsigned char* get_4096_block ( )
static

Definition at line 306 of file pespacket.cpp.

Referenced by pes_alloc().

◆ is_4096_block()

static bool is_4096_block ( unsigned char *  ptr)
static

Definition at line 323 of file pespacket.cpp.

Referenced by pes_free().

◆ return_4096_block()

static void return_4096_block ( unsigned char *  ptr)
static

Definition at line 328 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 256 of file pespacket.cpp.

Referenced by get_188_block(), and return_188_block().

◆ free188

std::vector<unsigned char*> free188
static

Definition at line 257 of file pespacket.cpp.

Referenced by get_188_block(), and return_188_block().

◆ alloc188

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

Definition at line 258 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 260 of file pespacket.cpp.

Referenced by get_4096_block(), and return_4096_block().

◆ free4096

std::vector<unsigned char*> free4096
static

Definition at line 261 of file pespacket.cpp.

Referenced by get_4096_block(), and return_4096_block().

◆ alloc4096

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

Definition at line 262 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 264 of file pespacket.cpp.

Referenced by get_188_block().

◆ BLOCKS4096

constexpr size_t BLOCKS4096 { 128 }
staticconstexpr

Definition at line 305 of file pespacket.cpp.

Referenced by get_4096_block().

◆ pes_alloc_mutex

QMutex pes_alloc_mutex
static

Definition at line 366 of file pespacket.cpp.

Referenced by pes_alloc(), and pes_free().