MythTV  master
Macros | Functions | Variables
mpeg2fix.cpp File Reference
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <fcntl.h>
#include <getopt.h>
#include <sys/stat.h>
#include <unistd.h>
#include <utility>
#include <QFileInfo>
#include <QList>
#include <QMap>
#include <QQueue>
#include "libmythbase/mythconfig.h"
#include "libmythbase/mthread.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythlogging.h"
#include "libavutil/cpu.h"
#include "libmythmpeg2/attributes.h"
#include "libmythmpeg2/mpeg2.h"
#include "libmythmpeg2/mpeg2_internal.h"
#include "mpeg2fix.h"
#include <winsock2.h>
Include dependency graph for mpeg2fix.cpp:

Go to the source code of this file.

Macros

#define O_LARGEFILE   0
 
#define INDEX_BUF   (sizeof(index_unit) * 200)
 

Functions

static void * my_malloc (unsigned size, [[maybe_unused]] mpeg2_alloc_t reason)
 
static void my_av_print ([[maybe_unused]] void *ptr, int level, const char *fmt, va_list vl)
 
static QString PtsTime (int64_t pts)
 
static constexpr bool MATCH_HEADER (const uint8_t *ptr)
 
static void SETBITS (unsigned char *ptr, long value, int num)
 
static int fill_buffers (void *r, int finish)
 

Variables

static constexpr int MAX_FRAMES { 20000 }
 

Macro Definition Documentation

◆ O_LARGEFILE

#define O_LARGEFILE   0

Definition at line 45 of file mpeg2fix.cpp.

◆ INDEX_BUF

#define INDEX_BUF   (sizeof(index_unit) * 200)

Definition at line 589 of file mpeg2fix.cpp.

Function Documentation

◆ my_malloc()

static void* my_malloc ( unsigned  size,
[[maybe_unused] ] mpeg2_alloc_t  reason 
)
static

Definition at line 48 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::MPEG2fixup().

◆ my_av_print()

static void my_av_print ( [[maybe_unused] ] void *  ptr,
int  level,
const char *  fmt,
va_list  vl 
)
static

Definition at line 66 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::MPEG2fixup().

◆ PtsTime()

static QString PtsTime ( int64_t  pts)
static

◆ MATCH_HEADER()

static constexpr bool MATCH_HEADER ( const uint8_t *  ptr)
staticconstexpr

Definition at line 344 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::FindMPEG2Header(), and MPEG2fixup::SetRepeat().

◆ SETBITS()

static void SETBITS ( unsigned char *  ptr,
long  value,
int  num 
)
static

Definition at line 347 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::SetFrameNum().

◆ fill_buffers()

static int fill_buffers ( void *  r,
int  finish 
)
static

Definition at line 463 of file mpeg2fix.cpp.

Referenced by MPEG2replex::Start().

Variable Documentation

◆ MAX_FRAMES

constexpr int MAX_FRAMES { 20000 }
staticconstexpr

Definition at line 1350 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::GetPoolFrame().