File: format.h

package info (click to toggle)
blender 2.63a-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 108,940 kB
  • sloc: ansic: 781,340; cpp: 453,049; python: 133,391; xml: 4,140; sh: 573; makefile: 112; lisp: 69
file content (24 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __FORMAT_H__
#define __FORMAT_H__

struct redcode_handle;
struct redcode_frame {
	unsigned int length;
	unsigned int offset;
	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