MythTV  master
Classes | Macros | Typedefs | Functions
mpg_common.h File Reference
#include <stdint.h>
#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_s
 
struct  extdata_s
 

Macros

#define NO_ERR   0
 
#define FRAME_ERR   1
 

Typedefs

typedef struct index_unit_s index_unit
 
typedef struct extdata_s extdata_t
 

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 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.

Typedef Documentation

◆ index_unit

typedef struct index_unit_s index_unit

◆ extdata_t

typedef struct extdata_s extdata_t

Function Documentation

◆ show_buf()

void show_buf ( uint8_t *  buf,
int  length 
)

Definition at line 37 of file mpg_common.c.

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 80 of file mpg_common.c.

◆ find_any_header()

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

Definition at line 116 of file mpg_common.c.

Referenced by check_stream_type().

◆ trans_pts_dts()

uint64_t trans_pts_dts ( const uint8_t *  pts)

Definition at line 152 of file mpg_common.c.

Referenced by analyze_audio(), and analyze_video().

◆ mring_peek()

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

Definition at line 168 of file mpg_common.c.

Referenced by find_audio_sync(), ring_find_any_header(), and ring_find_mpg_header().

◆ ring_find_mpg_header()

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

Definition at line 181 of file mpg_common.c.

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 220 of file mpg_common.c.

Referenced by analyze_video().