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

Go to the source code of this file.


struct  avi_index_s
struct  avi_audio_s
struct  avi_video_s
struct  avi_context


#define TAG_IT(a, b, c, d)   ((d<<24) | (c<<16) | (b<<8)|a)
#define ALIGN(a)   (((4-a)%3)%3)
#define AVI_HASINDEX   0x00000010
#define AVI_USEINDEX   0x00000020
#define AVI_INTERLEAVED   0x00000100
#define MAX_TRACK   10


typedef struct avi_index_s avi_index
typedef struct avi_audio_s avi_audio_info
typedef struct avi_video_s avi_video_info


int check_riff (avi_context *ac, uint8_t *buf, int len)
int read_avi_header (avi_context *ac, int fd)
void get_avi (pes_in_t *p, uint8_t *buf, int count, void(*func)(pes_in_t *p))
int avi_read_index (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), uint32_t insize)

Macro Definition Documentation


#define TAG_IT (   a,
)    ((d<<24) | (c<<16) | (b<<8)|a)

Definition at line 34 of file avi.h.


#define ALIGN (   a)    (((4-a)%3)%3)

Definition at line 35 of file avi.h.


#define AVI_HASINDEX   0x00000010

Definition at line 37 of file avi.h.


#define AVI_USEINDEX   0x00000020

Definition at line 38 of file avi.h.


#define AVI_INTERLEAVED   0x00000100

Definition at line 39 of file avi.h.


#define MAX_TRACK   10

Definition at line 69 of file avi.h.

Typedef Documentation

◆ avi_index

typedef struct avi_index_s avi_index

◆ avi_audio_info

typedef struct avi_audio_s avi_audio_info

◆ avi_video_info

typedef struct avi_video_s avi_video_info

Function Documentation

◆ check_riff()

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

Definition at line 79 of file avi.cpp.

Referenced by check_stream_type(), and init_replex().

◆ read_avi_header()

int read_avi_header ( avi_context ac,
int  fd 

Definition at line 215 of file avi.cpp.

Referenced by init_replex().

◆ get_avi()

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

Definition at line 525 of file avi.cpp.

Referenced by get_avi(), and replex_fill_buffers().

◆ avi_read_index()

int avi_read_index ( avi_context ac,
int  fd 

Definition at line 142 of file avi.cpp.

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,
uint32_t  insize 

Definition at line 426 of file avi.cpp.

Referenced by replex_fill_buffers().