MythTV  master
Functions
mpg_common.c File Reference
#include <stdio.h>
#include <string.h>
#include "element.h"
#include "pes.h"
#include "ts.h"
#include "mythlogging.h"
Include dependency graph for mpg_common.c:

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 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.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 170 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 183 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 222 of file mpg_common.c.

Referenced by analyze_video().