Don't make stats a pointer
This commit is contained in:
@@ -472,10 +472,10 @@ process_image_for_preview(const uint8_t *image)
|
|||||||
GL_UNSIGNED_BYTE,
|
GL_UNSIGNED_BYTE,
|
||||||
center);
|
center);
|
||||||
libmegapixels_aaa_software_statistics(
|
libmegapixels_aaa_software_statistics(
|
||||||
center, width, height, state_proc.stats);
|
center, width, height, &state_proc.stats);
|
||||||
printf("STAT: %d %d\n",
|
printf("STAT: %d %d\n",
|
||||||
state_proc.stats->exposure,
|
state_proc.stats.exposure,
|
||||||
state_proc.stats->whitebalance);
|
state_proc.stats.whitebalance);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a thumbnail from the preview for the last capture
|
// Create a thumbnail from the preview for the last capture
|
||||||
|
@@ -77,7 +77,7 @@ typedef struct state_proc {
|
|||||||
libmegapixels_devconfig *configuration;
|
libmegapixels_devconfig *configuration;
|
||||||
libmegapixels_camera *camera;
|
libmegapixels_camera *camera;
|
||||||
libmegapixels_mode *mode;
|
libmegapixels_mode *mode;
|
||||||
libmegapixels_aaa_stats *stats;
|
libmegapixels_aaa_stats stats;
|
||||||
|
|
||||||
int burst_length;
|
int burst_length;
|
||||||
int captures_remaining;
|
int captures_remaining;
|
||||||
|
Reference in New Issue
Block a user