blob: ed4180f4b21974aae50c1b0f27bc5c61dd15d19f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <semaphore.h>
// The Preview FBO dimensions are determined from the low-res
// frame dimensions (gPreviewImageRGBWidth, gPreviewImageRGBHeight)
// using the scale factors below.
const int PREVIEW_FBO_WIDTH_SCALE = 4;
const int PREVIEW_FBO_HEIGHT_SCALE = 2;
extern "C" void AllocateTextureMemory(int width, int height);
extern "C" void FreeTextureMemory();
extern "C" void UpdateWarpTransformation(float *trs);
extern unsigned char* gPreviewImageRGB;
extern int gPreviewImageRGBWidth;
extern int gPreviewImageRGBHeight;
extern sem_t gPreviewImageRGB_semaphore;
extern double g_dAffinetrans[16];
extern double g_dAffinetransInv[16];
|