summaryrefslogtreecommitdiff
path: root/mj2/MJ2_codec/mj2_convert.h
blob: e02bd43000ec4d57f5c3c3ee078e3de506b98671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "mj2.h"

#ifndef __MJ2_CONVERT_H
#define __MJ2_CONVERT_H

int imagetoyuv(j2k_image_t * img, j2k_cp_t * cp, char *outfile);

int imagetobmp(j2k_image_t * img, j2k_cp_t * cp, char *outfile);

int yuvtoimage(FILE *yuvfile, mj2_tk_t * tk, j2k_image_t * img, 
	       int frame_num, int subsampling_dx, int subsampling_dy);

int yuv_num_frames(mj2_tk_t * tk, FILE *f);


#endif