#ifndef __TEST_STITCH_PROCESS__
#define __TEST_STITCH_PROCESS__
#include "hb_videostitch_interface.h"

#define MAX_FILE_NAME_LENGTH 100

typedef struct stitch_test_ctx_s {
	uint32_t src_nums;
	uint32_t roi_num;
	roi_cfg_t roi_cfg[ROI_MAX];
	cgp_addr_t cgp_addr;
	lut_table_t lut_table;
	frame_t src_frames[FRAME_MAX];
	frame_t dst_frame;
	sth_mode_ctrl_t mode_ctrl;
	char alpha_file[MAX_FILE_NAME_LENGTH];
	char beta_file[MAX_FILE_NAME_LENGTH];
	uint32_t alpha_file_size;
	uint32_t beta_file_size;
	uint32_t src_w[FRAME_MAX];
	uint32_t src_h[FRAME_MAX];
	uint32_t dst_w;
	uint32_t dst_h;
	char test_image_file[FRAME_MAX][MAX_FILE_NAME_LENGTH];
} stitch_test_ctx_t;



int read_yuv420_file(const char *filename, char *addr0, char *addr1, uint32_t y_size);
int32_t load_file_2_buff(const char *path, char *filebuff, int32_t size);
int dumpToFile2plane(char *filename, char *srcBuf, char *srcBuf1, unsigned int size, unsigned int size1);

int stitch_cfg_parser(const char *cfg_file, stitch_test_ctx_t *res_cfg);
void show_cfg(stitch_test_ctx_t *res_cfg);
#endif
