diff options
Diffstat (limited to 'jni/mosaic_renderer_jni.h')
-rw-r--r-- | jni/mosaic_renderer_jni.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jni/mosaic_renderer_jni.h b/jni/mosaic_renderer_jni.h index 31dd3f0..cd405f9 100644 --- a/jni/mosaic_renderer_jni.h +++ b/jni/mosaic_renderer_jni.h @@ -6,14 +6,18 @@ // The Preview FBO dimensions are determined from the low-res // frame dimensions (gPreviewImageWidth, gPreviewImageHeight) // using the scale factors below. -const int PREVIEW_FBO_WIDTH_SCALE = 8; +const int PREVIEW_FBO_WIDTH_SCALE = 4; const int PREVIEW_FBO_HEIGHT_SCALE = 2; // The factor below determines the (horizontal) speed at which the viewfinder // will pan across the UI during capture. A value of 0.0 will keep the viewfinder // static in the center of the screen and 1.0f will make it pan at the // same speed as the device. -const float VIEWFINDER_PAN_FACTOR_HORZ = 0.2f; +const float VIEWFINDER_PAN_FACTOR_HORZ = 0.3f; + +// What fraction of the screen viewport width has been allocated to show the +// arrows on the direction of motion side. +const float VIEWPORT_BORDER_FACTOR_HORZ = 0.1f; const int LR = 0; // Low-resolution mode const int HR = 1; // High-resolution mode @@ -29,7 +33,3 @@ extern int gPreviewImageWidth[NR]; extern int gPreviewImageHeight[NR]; extern sem_t gPreviewImage_semaphore; - -extern double g_dAffinetrans[16]; -extern double g_dAffinetransInv[16]; -extern double g_dTranslation[16]; |