1 #ifndef __redcode_codec_h_included__
2 #define __redcode_codec_h_included__
6 struct redcode_frame_raw {
12 /* do the JPEG2000 decompression into YCbCrY planes */
13 struct redcode_frame_raw * redcode_decode_video_raw(
14 struct redcode_frame * frame, int scale);
16 /* finally decode RAW frame into out-buffer (which has to be allocated
19 Keep in mind: frame_raw-width + height is half sized.
20 (one pixel contains 2x2 bayer-sensor data)
22 output-buffer should have room for
24 scale = 1 : width * height * 4 * 4 * sizeof(float)
25 scale = 2 : width * height * 4 * sizeof(float)
26 scale = 4 : width * height * sizeof(float)
30 int redcode_decode_video_float(struct redcode_frame_raw * frame,
31 float * out, int scale);