28 #include <sys/types.h> 35 #include <sys/types.h> 37 #if defined __GNUWIN32__ 40 #define uint32_t unsigned __int32 41 #define uint8_t unsigned __int8 42 #define uint16_t unsigned __int16 43 #define uint64_t unsigned __int64 59 #define AVI_MAX_TRACKS 8 178 unsigned char (*idx)[16];
193 #define AVI_MODE_WRITE 0 194 #define AVI_MODE_READ 1 198 #define AVI_ERR_SIZELIM 1 203 #define AVI_ERR_OPEN 2 206 #define AVI_ERR_READ 3 208 #define AVI_ERR_WRITE 4 211 #define AVI_ERR_WRITE_INDEX 5 215 #define AVI_ERR_CLOSE 6 219 #define AVI_ERR_NOT_PERM 7 223 #define AVI_ERR_NO_MEM 8 225 #define AVI_ERR_NO_AVI 9 227 #define AVI_ERR_NO_HDRL 10 230 #define AVI_ERR_NO_MOVI 11 233 #define AVI_ERR_NO_VIDS 12 235 #define AVI_ERR_NO_IDX 13 241 #ifndef WAVE_FORMAT_PCM 242 #define WAVE_FORMAT_UNKNOWN (0x0000) 243 #define WAVE_FORMAT_PCM (0x0001) 244 #define WAVE_FORMAT_ADPCM (0x0002) 245 #define WAVE_FORMAT_IBM_CVSD (0x0005) 246 #define WAVE_FORMAT_ALAW (0x0006) 247 #define WAVE_FORMAT_MULAW (0x0007) 248 #define WAVE_FORMAT_OKI_ADPCM (0x0010) 249 #define WAVE_FORMAT_DVI_ADPCM (0x0011) 250 #define WAVE_FORMAT_DIGISTD (0x0015) 251 #define WAVE_FORMAT_DIGIFIX (0x0016) 252 #define WAVE_FORMAT_YAMAHA_ADPCM (0x0020) 253 #define WAVE_FORMAT_DSP_TRUESPEECH (0x0022) 254 #define WAVE_FORMAT_GSM610 (0x0031) 255 #define IBM_FORMAT_MULAW (0x0101) 256 #define IBM_FORMAT_ALAW (0x0102) 257 #define IBM_FORMAT_ADPCM (0x0103) 309 char *audbuf,
long max_audbuf,
335 unsigned char wave_id[4];
int AVI_set_audio_position(avi_t *AVI, long byte)
int AVI_audio_channels(avi_t *AVI)
int AVI_video_height(avi_t *AVI)
int AVI_read_data(avi_t *AVI, char *vidbuf, long max_vidbuf, char *audbuf, long max_audbuf, long *len)
int AVI_audio_tracks(avi_t *AVI)
double AVI_frame_rate(avi_t *AVI)
long AVI_video_codech_offset(avi_t *AVI)
long AVI_audio_codech_offset(avi_t *AVI)
video_index_entry * video_index
long AVI_audio_bytes(avi_t *AVI)
long AVI_read_audio_chunk(avi_t *AVI, char *audbuf)
int AVI_dup_frame(avi_t *AVI)
avi_t * AVI_open_fd(int fd, int getIndex)
long AVI_get_video_position(avi_t *AVI, long frame)
int AVI_set_audio_track(avi_t *AVI, int track)
void AVI_set_video(avi_t *AVI, int width, int height, double fps, char *compressor)
uint32_t dwAvgBytesPerSec
int AVI_audio_bits(avi_t *AVI)
char * AVI_codec2str(short cc)
void AVI_set_audio(avi_t *AVI, int channels, long rate, int bits, int format, long mp3rate)
int AVI_set_video_position(avi_t *AVI, long frame)
int AVI_video_width(avi_t *AVI)
uint64_t AVI_max_size(void)
int AVI_file_check(char *import_file)
void AVI_info(avi_t *avifile)
uint32_t dw_suggested_buffer_size
long AVI_audio_chunks(avi_t *AVI)
audio_index_entry * audio_index
int AVI_set_audio_bitrate(avi_t *AVI, long bitrate)
long AVI_audio_codecf_offset(avi_t *AVI)
long AVI_frame_size(avi_t *AVI, long frame)
int AVI_write_frame(avi_t *AVI, char *data, long bytes, int keyframe)
long AVI_audio_mp3rate(avi_t *AVI)
avi_t * AVI_open_input_file(const char *filename, int getIndex)
long AVI_audio_rate(avi_t *AVI)
long AVI_read_audio(avi_t *AVI, char *audbuf, long bytes)
void AVI_print_error(char *str)
int avi_parse_input_file(avi_t *AVI, int getIndex)
char * AVI_video_compressor(avi_t *AVI)
uint32_t dw_format_change_count
int AVI_write_audio(avi_t *AVI, char *data, long bytes)
int AVI_close(avi_t *AVI)
long AVI_bytes_written(avi_t *AVI)
int avi_update_header(avi_t *AVI)
long AVI_audio_size(avi_t *AVI, long frame)
uint32_t dw_initial_frames
long AVI_max_video_chunk(avi_t *AVI)
avi_t * AVI_open_output_file(char *filename)
int AVI_audio_format(avi_t *AVI)
char * AVI_strerror(void)
int AVI_append_audio(avi_t *AVI, char *data, long bytes)
long AVI_video_frames(avi_t *AVI)
long AVI_video_codecf_offset(avi_t *AVI)
int AVI_dump(char *name, int mode)
int AVI_seek_start(avi_t *AVI)
BITMAPINFOHEADER_avilib * bitmap_info_header
char * AVI_syserror(void)
long AVI_read_frame(avi_t *AVI, char *vidbuf, int *keyframe)
long AVI_bytes_remain(avi_t *AVI)
int AVI_get_audio_track(avi_t *AVI)