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

Go to the source code of this file.

Macros

#define O_LARGEFILE   0
 
#define MATCH_HEADER(ptr)   (((ptr)[0] == 0x00) && ((ptr)[1] == 0x00) && ((ptr)[2] == 0x01))
 
#define INDEX_BUF   (sizeof(index_unit) * 200)
 
#define MAX_FRAMES   20000
 

Functions

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

Macro Definition Documentation

◆ O_LARGEFILE

#define O_LARGEFILE   0

Definition at line 42 of file mpeg2fix.cpp.

◆ MATCH_HEADER

#define MATCH_HEADER (   ptr)    (((ptr)[0] == 0x00) && ((ptr)[1] == 0x00) && ((ptr)[2] == 0x01))

Definition at line 350 of file mpeg2fix.cpp.

◆ INDEX_BUF

#define INDEX_BUF   (sizeof(index_unit) * 200)

Definition at line 599 of file mpeg2fix.cpp.

◆ MAX_FRAMES

#define MAX_FRAMES   20000

Definition at line 1327 of file mpeg2fix.cpp.

Function Documentation

◆ my_malloc()

static void* my_malloc ( unsigned  size,
mpeg2_alloc_t  reason 
)
static

Definition at line 45 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::MPEG2fixup().

◆ my_av_print()

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

Definition at line 67 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::MPEG2fixup().

◆ PtsTime()

static QString PtsTime ( int64_t  pts)
static

◆ SETBITS()

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

Definition at line 352 of file mpeg2fix.cpp.

Referenced by MPEG2fixup::SetFrameNum().

◆ fill_buffers()

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

Definition at line 471 of file mpeg2fix.cpp.

Referenced by MPEG2replex::Start().