forked from bartvdbraak/blender
ca8aa8c901
This adds redcode (the file format of RED one, R3D) support to blender. Seems to work fine with the footage I found on the web, but keep in mind, that because of the unoptimized nature of libopenjpeg, frame decoding isn't that fast. It is also a rather challenging task, to make 4k-float-footage realtime :)
25 lines
620 B
C
25 lines
620 B
C
#ifndef __redcode_format_h_included__
|
|
#define __redcode_format_h_included__
|
|
|
|
struct redcode_handle;
|
|
struct redcode_frame {
|
|
unsigned long length;
|
|
unsigned long 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
|