2008-06-02 21:35:57 +00:00
|
|
|
#ifndef __redcode_format_h_included__
|
|
|
|
#define __redcode_format_h_included__
|
|
|
|
|
|
|
|
struct redcode_handle;
|
|
|
|
struct redcode_frame {
|
2009-02-08 19:13:29 +00:00
|
|
|
unsigned int length;
|
|
|
|
unsigned int offset;
|
2008-06-02 21:35:57 +00:00
|
|
|
unsigned char * data;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct redcode_handle * redcode_open(const char * fname);
|
|
|
|
void redcode_close(struct redcode_handle * handle);
|
|
|
|
|
|
|
|
long redcode_get_length(struct redcode_handle * handle);
|
|
|
|
|
|
|
|
struct redcode_frame * redcode_read_video_frame(
|
|
|
|
struct redcode_handle * handle, long frame);
|
|
|
|
struct redcode_frame * redcode_read_audio_frame(
|
|
|
|
struct redcode_handle * handle, long frame);
|
|
|
|
|
|
|
|
void redcode_free_frame(struct redcode_frame * frame);
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|