avilib.h File Reference

#include "defs.h"
#include <inttypes.h>
#include <sys/types.h>
Include dependency graph for avilib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _audio_index_entry
struct  _video_index_entry
struct  avi_t
struct  track_s

Defines

#define ANTEX_FORMAT_ADPCME   (0x0033)
#define AUDIO_FORMAT_APTX   (0x0025)
#define AUDIOFILE_FORMAT_AF10   (0x0026)
#define AUDIOFILE_FORMAT_AF36   (0x0024)
#define AVI_ERR_CLOSE   6
#define AVI_ERR_NO_AVI   9
#define AVI_ERR_NO_HDRL   10
#define AVI_ERR_NO_IDX   13
#define AVI_ERR_NO_MEM   8
#define AVI_ERR_NO_MOVI   11
#define AVI_ERR_NO_VIDS   12
#define AVI_ERR_NOT_PERM   7
#define AVI_ERR_OPEN   2
#define AVI_ERR_READ   3
#define AVI_ERR_SIZELIM   1
#define AVI_ERR_WRITE   4
#define AVI_ERR_WRITE_INDEX   5
#define AVI_MAX_TRACKS   8
#define AVI_MODE_READ   1
#define AVI_MODE_WRITE   0
#define BROOKTREE_FORMAT_BTVD   (0x0400)
#define CANOPUS_FORMAT_ATRAC   (0x0063)
#define CIRRUS_FORMAT_CIRRUS   (0x0060)
#define CONSISTENT_FORMAT_CS2   (0x0260)
#define CONTROL_FORMAT_CR10   (0x0037)
#define CONTROL_FORMAT_VQLPC   (0x0034)
#define CREATIVE_FORMAT_ADPCM   (0x0200)
#define CREATIVE_FORMAT_FASTSPEECH10   (0x0203)
#define CREATIVE_FORMAT_FASTSPEECH8   (0x0202)
#define DEC_FORMAT_G723   (0x0123)
#define DF_FORMAT_G726   (0x0085)
#define DOLBY_FORMAT_AC2   (0x0030)
#define DOLBY_FORMAT_AC3   (0x2000)
#define DOLBY_FORMAT_AC3_SPDIF   (0x0092)
#define DSP_FORMAT_ADPCM   (0x0036)
#define ESS_FORMAT_ESPCM   (0x0061)
#define FRAME_RATE_SCALE   1000000
#define HP_FORMAT_CU   (0x0019)
#define IBM_FORMAT_ADPCM   (0x0103)
#define IBM_FORMAT_ALAW   (0x0102)
#define IBM_FORMAT_MULAW   (0x0101)
#define IEEE_FORMAT_FLOAT   (0x0003)
#define IMA_FORMAT_ADPCM   (0x0039)
#define ISO_FORMAT_MP3   (0x0055)
#define ISO_FORMAT_MPEG12   (0x0050)
#define MS_FORMAT_MSAUDIO1_DIVX   (0x0160)
#define MS_FORMAT_MSAUDIO2_DIVX   (0x0161)
#define MS_FORMAT_WMA9   (0x0163)
#define MS_FORMAT_WMA9_PRO   (0x0162)
#define OGG_FORMAT_VORBIS1   (0x674f)
#define OGG_FORMAT_VORBIS1P   (0x676f)
#define OGG_FORMAT_VORBIS2   (0x6750)
#define OGG_FORMAT_VORBIS2P   (0x6770)
#define OGG_FORMAT_VORBIS3   (0x6751)
#define OGG_FORMAT_VORBIS3P   (0x6771)
#define WAVE_FORMAT_ADPCM   (0x0002)
#define WAVE_FORMAT_ALAW   (0x0006)
#define WAVE_FORMAT_DIGIFIX   (0x0016)
#define WAVE_FORMAT_DIGISTD   (0x0015)
#define WAVE_FORMAT_DSP_TRUESPEECH   (0x0022)
#define WAVE_FORMAT_DVI_ADPCM   (0x0011)
#define WAVE_FORMAT_GSM610   (0x0031)
#define WAVE_FORMAT_IBM_CVSD   (0x0005)
#define WAVE_FORMAT_MULAW   (0x0007)
#define WAVE_FORMAT_OKI_ADPCM   (0x0010)
#define WAVE_FORMAT_PCM   (0x0001)
#define WAVE_FORMAT_UNKNOWN   (0x0000)
#define WAVE_FORMAT_YAMAHA_ADPCM   (0x0020)

Typedefs

typedef struct _audio_index_entry audio_index_entry
typedef struct track_s track_t
typedef struct _video_index_entry video_index_entry

Functions

int AVI_append_audio (struct avi_t *AVI, BYTE *data, long bytes)
ULONG AVI_bytes_remain (struct avi_t *AVI)
int AVI_close (struct avi_t *AVI)
int AVI_dup_frame (struct avi_t *AVI)
int AVI_getErrno ()
int AVI_open_output_file (struct avi_t *AVI, const char *filename)
void AVI_print_error (char *str)
void AVI_set_audio (struct avi_t *AVI, int channels, long rate, int mpgrate, int bits, int format)
int AVI_set_audio_track (struct avi_t *AVI, int track)
void AVI_set_audio_vbr (struct avi_t *AVI, long is_vbr)
ULONG AVI_set_MAX_LEN (ULONG len)
void AVI_set_video (struct avi_t *AVI, int width, int height, double fps, char *compressor)
char * AVI_strerror ()
char * AVI_syserror ()
int AVI_write_audio (struct avi_t *AVI, BYTE *data, long bytes)
int AVI_write_frame (struct avi_t *AVI, BYTE *data, long bytes, int keyframe)

Variables

struct avi_t packed

Define Documentation

#define ANTEX_FORMAT_ADPCME   (0x0033)

Definition at line 259 of file avilib.h.

#define AUDIO_FORMAT_APTX   (0x0025)

Definition at line 260 of file avilib.h.

#define AUDIOFILE_FORMAT_AF10   (0x0026)

Definition at line 261 of file avilib.h.

#define AUDIOFILE_FORMAT_AF36   (0x0024)

Definition at line 262 of file avilib.h.

#define AVI_ERR_CLOSE   6

Definition at line 215 of file avilib.h.

#define AVI_ERR_NO_AVI   9

Definition at line 225 of file avilib.h.

#define AVI_ERR_NO_HDRL   10

Definition at line 227 of file avilib.h.

#define AVI_ERR_NO_IDX   13

Definition at line 235 of file avilib.h.

#define AVI_ERR_NO_MEM   8

Definition at line 223 of file avilib.h.

#define AVI_ERR_NO_MOVI   11

Definition at line 230 of file avilib.h.

#define AVI_ERR_NO_VIDS   12

Definition at line 233 of file avilib.h.

#define AVI_ERR_NOT_PERM   7

Definition at line 219 of file avilib.h.

#define AVI_ERR_OPEN   2

Definition at line 203 of file avilib.h.

#define AVI_ERR_READ   3

Definition at line 206 of file avilib.h.

#define AVI_ERR_SIZELIM   1

Definition at line 198 of file avilib.h.

#define AVI_ERR_WRITE   4

Definition at line 208 of file avilib.h.

#define AVI_ERR_WRITE_INDEX   5

Definition at line 211 of file avilib.h.

#define AVI_MAX_TRACKS   8

Definition at line 41 of file avilib.h.

#define AVI_MODE_READ   1

Definition at line 194 of file avilib.h.

#define AVI_MODE_WRITE   0

Definition at line 193 of file avilib.h.

#define BROOKTREE_FORMAT_BTVD   (0x0400)

Definition at line 263 of file avilib.h.

#define CANOPUS_FORMAT_ATRAC   (0x0063)

Definition at line 264 of file avilib.h.

#define CIRRUS_FORMAT_CIRRUS   (0x0060)

Definition at line 265 of file avilib.h.

#define CONSISTENT_FORMAT_CS2   (0x0260)

Definition at line 272 of file avilib.h.

#define CONTROL_FORMAT_CR10   (0x0037)

Definition at line 266 of file avilib.h.

#define CONTROL_FORMAT_VQLPC   (0x0034)

Definition at line 267 of file avilib.h.

#define CREATIVE_FORMAT_ADPCM   (0x0200)

Definition at line 268 of file avilib.h.

#define CREATIVE_FORMAT_FASTSPEECH10   (0x0203)

Definition at line 269 of file avilib.h.

#define CREATIVE_FORMAT_FASTSPEECH8   (0x0202)

Definition at line 270 of file avilib.h.

#define DEC_FORMAT_G723   (0x0123)

Definition at line 274 of file avilib.h.

#define DF_FORMAT_G726   (0x0085)

Definition at line 275 of file avilib.h.

#define DOLBY_FORMAT_AC2   (0x0030)

Definition at line 277 of file avilib.h.

#define DOLBY_FORMAT_AC3   (0x2000)

Definition at line 258 of file avilib.h.

#define DOLBY_FORMAT_AC3_SPDIF   (0x0092)

Definition at line 278 of file avilib.h.

#define DSP_FORMAT_ADPCM   (0x0036)

Definition at line 276 of file avilib.h.

#define ESS_FORMAT_ESPCM   (0x0061)

Definition at line 279 of file avilib.h.

#define FRAME_RATE_SCALE   1000000

Definition at line 42 of file avilib.h.

#define HP_FORMAT_CU   (0x0019)

Definition at line 273 of file avilib.h.

#define IBM_FORMAT_ADPCM   (0x0103)

Definition at line 256 of file avilib.h.

#define IBM_FORMAT_ALAW   (0x0102)

Definition at line 255 of file avilib.h.

#define IBM_FORMAT_MULAW   (0x0101)

Definition at line 254 of file avilib.h.

#define IEEE_FORMAT_FLOAT   (0x0003)

Definition at line 280 of file avilib.h.

#define IMA_FORMAT_ADPCM   (0x0039)

Definition at line 271 of file avilib.h.

#define ISO_FORMAT_MP3   (0x0055)

Definition at line 281 of file avilib.h.

#define ISO_FORMAT_MPEG12   (0x0050)

Definition at line 282 of file avilib.h.

#define MS_FORMAT_MSAUDIO1_DIVX   (0x0160)

Definition at line 283 of file avilib.h.

#define MS_FORMAT_MSAUDIO2_DIVX   (0x0161)

Definition at line 284 of file avilib.h.

#define MS_FORMAT_WMA9   (0x0163)

Definition at line 291 of file avilib.h.

#define MS_FORMAT_WMA9_PRO   (0x0162)

Definition at line 292 of file avilib.h.

#define OGG_FORMAT_VORBIS1   (0x674f)

Definition at line 285 of file avilib.h.

#define OGG_FORMAT_VORBIS1P   (0x676f)

Definition at line 286 of file avilib.h.

#define OGG_FORMAT_VORBIS2   (0x6750)

Definition at line 287 of file avilib.h.

#define OGG_FORMAT_VORBIS2P   (0x6770)

Definition at line 288 of file avilib.h.

#define OGG_FORMAT_VORBIS3   (0x6751)

Definition at line 289 of file avilib.h.

#define OGG_FORMAT_VORBIS3P   (0x6771)

Definition at line 290 of file avilib.h.

#define WAVE_FORMAT_ADPCM   (0x0002)

Definition at line 243 of file avilib.h.

#define WAVE_FORMAT_ALAW   (0x0006)

Definition at line 245 of file avilib.h.

#define WAVE_FORMAT_DIGIFIX   (0x0016)

Definition at line 250 of file avilib.h.

#define WAVE_FORMAT_DIGISTD   (0x0015)

Definition at line 249 of file avilib.h.

#define WAVE_FORMAT_DSP_TRUESPEECH   (0x0022)

Definition at line 252 of file avilib.h.

#define WAVE_FORMAT_DVI_ADPCM   (0x0011)

Definition at line 248 of file avilib.h.

#define WAVE_FORMAT_GSM610   (0x0031)

Definition at line 253 of file avilib.h.

#define WAVE_FORMAT_IBM_CVSD   (0x0005)

Definition at line 244 of file avilib.h.

#define WAVE_FORMAT_MULAW   (0x0007)

Definition at line 246 of file avilib.h.

#define WAVE_FORMAT_OKI_ADPCM   (0x0010)

Definition at line 247 of file avilib.h.

#define WAVE_FORMAT_PCM   (0x0001)

Definition at line 242 of file avilib.h.

#define WAVE_FORMAT_UNKNOWN   (0x0000)

Definition at line 241 of file avilib.h.

#define WAVE_FORMAT_YAMAHA_ADPCM   (0x0020)

Definition at line 251 of file avilib.h.


Typedef Documentation

typedef struct track_s track_t

Function Documentation

int AVI_append_audio ( struct avi_t AVI,
BYTE data,
long  bytes 
)

Definition at line 1116 of file avilib.c.

ULONG AVI_bytes_remain ( struct avi_t AVI  ) 

Definition at line 1154 of file avilib.c.

int AVI_close ( struct avi_t AVI  ) 

Definition at line 1189 of file avilib.c.

int AVI_dup_frame ( struct avi_t AVI  ) 

Definition at line 1087 of file avilib.c.

int AVI_getErrno (  ) 

Definition at line 1223 of file avilib.c.

int AVI_open_output_file ( struct avi_t AVI,
const char *  filename 
)

Definition at line 527 of file avilib.c.

void AVI_print_error ( char *  str  ) 

Definition at line 1252 of file avilib.c.

void AVI_set_audio ( struct avi_t AVI,
int  channels,
long  rate,
int  mpgrate,
int  bits,
int  format 
)

Definition at line 599 of file avilib.c.

int AVI_set_audio_track ( struct avi_t AVI,
int  track 
)

Definition at line 1168 of file avilib.c.

void AVI_set_audio_vbr ( struct avi_t AVI,
long  is_vbr 
)

Definition at line 1177 of file avilib.c.

ULONG AVI_set_MAX_LEN ( ULONG  len  ) 

Definition at line 73 of file avilib.c.

void AVI_set_video ( struct avi_t AVI,
int  width,
int  height,
double  fps,
char *  compressor 
)

Definition at line 575 of file avilib.c.

char* AVI_strerror (  ) 

Definition at line 1272 of file avilib.c.

char* AVI_syserror (  ) 
int AVI_write_audio ( struct avi_t AVI,
BYTE data,
long  bytes 
)

Definition at line 1099 of file avilib.c.

int AVI_write_frame ( struct avi_t AVI,
BYTE data,
long  bytes,
int  keyframe 
)

Definition at line 1068 of file avilib.c.


Variable Documentation

struct avi_t packed
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


uvc_cam2
Author(s): Morgan Quigley, extended and maintained by Juergen Sturm
autogenerated on Fri Jan 11 09:37:25 2013