MythTV  master
Classes | Macros | Functions
mpg_common.h File Reference
#include <cstdint>
#include "ringbuffer.h"
Include dependency graph for mpg_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  index_unit
 
struct  extdata_t
 

Macros

#define NO_ERR   0
 
#define FRAME_ERR   1
 

Functions

void show_buf (uint8_t *buf, int length)
 
int find_mpg_header (uint8_t head, const uint8_t *buf, int length)
 
int find_any_header (uint8_t *head, const uint8_t *buf, int length)
 
uint64_t trans_pts_dts (const uint8_t *pts)
 
int mring_peek (ringbuffer *rbuf, uint8_t *buf, unsigned int l, uint32_t off)
 
int mring_peek (ringbuffer *rbuf, peek_poke_vec &buf, unsigned int l, uint32_t off)
 
int ring_find_mpg_header (ringbuffer *rbuf, uint8_t head, int off, int le)
 
int ring_find_any_header (ringbuffer *rbuf, uint8_t *head, int off, int le)
 

Macro Definition Documentation

◆ NO_ERR

#define NO_ERR   0

Definition at line 66 of file mpg_common.h.

◆ FRAME_ERR

#define FRAME_ERR   1

Definition at line 67 of file mpg_common.h.

Function Documentation

◆ show_buf()

void show_buf ( uint8_t *  buf,
int  length 
)

Definition at line 37 of file mpg_common.cpp.

Referenced by get_avi_from_index(), and pes_id_out().

◆ find_mpg_header()

int find_mpg_header ( uint8_t  head,
const uint8_t *  buf,
int  length 
)

Definition at line 71 of file mpg_common.cpp.

◆ find_any_header()

int find_any_header ( uint8_t *  head,
const uint8_t *  buf,
int  length 
)

Definition at line 107 of file mpg_common.cpp.

Referenced by check_stream_type().

◆ trans_pts_dts()

uint64_t trans_pts_dts ( const uint8_t *  pts)

Definition at line 143 of file mpg_common.cpp.

Referenced by analyze_audio(), and analyze_video().

◆ mring_peek() [1/2]

int mring_peek ( ringbuffer rbuf,
uint8_t *  buf,
unsigned int  l,
uint32_t  off 
)

◆ mring_peek() [2/2]

int mring_peek ( ringbuffer rbuf,
peek_poke_vec buf,
unsigned int  l,
uint32_t  off 
)

Definition at line 171 of file mpg_common.cpp.

◆ ring_find_mpg_header()

int ring_find_mpg_header ( ringbuffer rbuf,
uint8_t  head,
int  off,
int  le 
)

Definition at line 177 of file mpg_common.cpp.

Referenced by get_video_ext_info(), and get_video_info().

◆ ring_find_any_header()

int ring_find_any_header ( ringbuffer rbuf,
uint8_t *  head,
int  off,
int  le 
)

Definition at line 216 of file mpg_common.cpp.

Referenced by analyze_video().