Welcome to mirror list, hosted at ThFree Co, Russian Federation.

codec.h « libredcode « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd239180c10c3fcb4f24d5b309aa29ca71db9caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __CODEC_H__
#define __CODEC_H__

struct redcode_frame;

struct redcode_frame_raw {
	void * data;
	int width;
	int height;
};

/* do the JPEG2000 decompression into YCbCrY planes */
struct redcode_frame_raw * redcode_decode_video_raw(
	struct redcode_frame * frame, int scale);

/* finally decode RAW frame into out-buffer (which has to be allocated
   in advance)

   Keep in mind: frame_raw-width + height is half sized. 
   (one pixel contains 2x2 bayer-sensor data)

   output-buffer should have room for

   scale = 1 : width * height * 4 * 4 * sizeof(float)
   scale = 2 : width * height * 4 * sizeof(float)
   scale = 4 : width * height * sizeof(float)

*/

int redcode_decode_video_float(struct redcode_frame_raw * frame, 
			       float * out, int scale);


#endif