MythTV  master
Macros | Functions
avi.c File Reference
#include <stdlib.h>
#include <string.h>
#include "mpg_common.h"
#include "avi.h"
#include "replex.h"
#include "pes.h"
#include "mythlogging.h"
Include dependency graph for avi.c:

Go to the source code of this file.

Macros

#define DEBUG   1
 
#define MAX_BUF_SIZE   0xffff
 

Functions

static uint32_t getle32 (uint8_t *buf)
 
static uint32_t getbe32 (uint8_t *buf)
 
static void printhead (uint8_t *buf)
 
static uint32_t getsize (int fd)
 
static uint32_t getsize_buf (uint8_t *buf)
 
int check_riff (avi_context *ac, uint8_t *buf, int len)
 
static int new_idx_frame (avi_context *ac, uint32_t pos, uint32_t len, uint32_t fl, uint32_t id)
 
static void print_index (avi_context *ac, int num)
 
int avi_read_index (avi_context *ac, int fd)
 
int read_avi_header (avi_context *ac, int fd)
 
int get_avi_from_index (pes_in_t *p, int fd, avi_context *ac, void(*func)(pes_in_t *p), int insize)
 
void get_avi (pes_in_t *p, uint8_t *buf, int count, void(*func)(pes_in_t *p))
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG   1

Definition at line 38 of file avi.c.

◆ MAX_BUF_SIZE

#define MAX_BUF_SIZE   0xffff

Definition at line 411 of file avi.c.

Function Documentation

◆ getle32()

static uint32_t getle32 ( uint8_t *  buf)
static

◆ getbe32()

static uint32_t getbe32 ( uint8_t *  buf)
static

Definition at line 51 of file avi.c.

◆ printhead()

static void printhead ( uint8_t *  buf)
static

Definition at line 56 of file avi.c.

◆ getsize()

static uint32_t getsize ( int  fd)
static

Definition at line 61 of file avi.c.

Referenced by avi_read_index(), mythburn.FontDef::drawText(), and read_avi_header().

◆ getsize_buf()

static uint32_t getsize_buf ( uint8_t *  buf)
static

Definition at line 70 of file avi.c.

Referenced by get_avi(), and get_avi_from_index().

◆ check_riff()

int check_riff ( avi_context ac,
uint8_t *  buf,
int  len 
)

Definition at line 76 of file avi.c.

Referenced by check_stream_type(), and init_replex().

◆ new_idx_frame()

static int new_idx_frame ( avi_context ac,
uint32_t  pos,
uint32_t  len,
uint32_t  fl,
uint32_t  id 
)
static

Definition at line 97 of file avi.c.

Referenced by avi_read_index().

◆ print_index()

static void print_index ( avi_context ac,
int  num 
)
static

Definition at line 126 of file avi.c.

Referenced by get_avi_from_index().

◆ avi_read_index()

int avi_read_index ( avi_context ac,
int  fd 
)

Definition at line 135 of file avi.c.

Referenced by init_replex().

◆ read_avi_header()

int read_avi_header ( avi_context ac,
int  fd 
)

Definition at line 208 of file avi.c.

Referenced by init_replex().

◆ get_avi_from_index()

int get_avi_from_index ( pes_in_t p,
int  fd,
avi_context ac,
void(*)(pes_in_t *p)  func,
int  insize 
)

Definition at line 412 of file avi.c.

Referenced by replex_fill_buffers().

◆ get_avi()

void get_avi ( pes_in_t p,
uint8_t *  buf,
int  count,
void(*)(pes_in_t *p)  func 
)

Definition at line 508 of file avi.c.

Referenced by get_avi(), and replex_fill_buffers().