MythTV  master
Functions
mpg_common.cpp File Reference
#include <cstdio>
#include <cstring>
#include "element.h"
#include "pes.h"
#include "ts.h"
#include "libmythbase/mythlogging.h"
Include dependency graph for mpg_common.cpp:

Go to the source code of this file.

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)
 

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