-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrsp.h
55 lines (46 loc) · 1.8 KB
/
qrsp.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef _VRE_APP_WIZARDTEMPLATE_
#define _VRE_APP_WIZARDTEMPLATE_
#define MRE_STR_SIZE_MAX (100)
#define MRE_SCREEN_START_X (0)
#define MRE_SCREEN_START_Y (0)
#include "vmsys.h"
#include "vmio.h"
#include "vmgraph.h"
#include "vmchset.h"
#include "vmstdlib.h"
#include "vmcamera.h"
#include "string.h"
#include "vmmm.h"
#include <time.h>
//#include "vmsms.h"
#include "stdint.h"
#include "zbar.h"
/* ---------------------------------------------------------------------------
* global variables
* ------------------------------------------------------------------------ */
VMINT layer_hdl[1];
const unsigned short tr_color = VM_COLOR_888_TO_565(0, 255, 255);
/* ---------------------------------------------------------------------------
* local variables
* ------------------------------------------------------------------------ */
void handle_sysevt(VMINT message, VMINT param);
void handle_keyevt(VMINT event, VMINT keycode);
void handle_penevt(VMINT event, VMINT x, VMINT y);
void start_cam_preview(void);
void cam_message_callback(vm_cam_notify_data_t* notify_data, void* user_data);
unsigned char claim(int x);
void uyvyToGrey(unsigned char *dst, unsigned char *src, unsigned int numberPixels);
char* decode_qr(void *raw, size_t raw_sz, int width, int height);
void checkFileExist(void);
void writeDataToTextFile(void);
VMINT parseTextToArr(void);
void fromArrToDisplay(void);
void fromArrToDisplay2(void);
void app_set_current_preview_size(VM_CAMERA_HANDLE camera_handle);
VMINT mre_create_msg(VMSTR data);
static void mre_msg_callback(vm_sms_callback_t *callback_data);
static void mre_delete_msg();
void create_app_txt_filename(VMWSTR text);
void create_auto_filename(VMWSTR text);
void create_auto_full_path_name(VMWSTR result, VMWSTR fname);
#endif