process_pipeline.c: fix call to libdng_write
This commit is contained in:
@@ -1059,6 +1059,7 @@ static void
|
|||||||
save_dng(const uint8_t *image, char *fname, int count)
|
save_dng(const uint8_t *image, char *fname, int count)
|
||||||
{
|
{
|
||||||
uint16_t orientation;
|
uint16_t orientation;
|
||||||
|
|
||||||
if (state_proc.camera_rotation == 0) {
|
if (state_proc.camera_rotation == 0) {
|
||||||
orientation = state_proc.mode->mirrored ?
|
orientation = state_proc.mode->mirrored ?
|
||||||
LIBDNG_ORIENTATION_TOPRIGHT :
|
LIBDNG_ORIENTATION_TOPRIGHT :
|
||||||
@@ -1154,13 +1155,14 @@ save_dng(const uint8_t *image, char *fname, int count)
|
|||||||
state_proc.calibration.forward_matrix_2[8]
|
state_proc.calibration.forward_matrix_2[8]
|
||||||
);
|
);
|
||||||
|
|
||||||
//printf("Writing frame to %s, %d x %d\n", fname, state_proc.mode->width, state_proc.mode->height);
|
printf("Writing frame to %s, %d x %d\n", fname, state_proc.mode->width, state_proc.mode->height);
|
||||||
libdng_write(&dng,
|
libdng_write(&dng,
|
||||||
fname,
|
fname,
|
||||||
state_proc.mode->width,
|
state_proc.mode->width,
|
||||||
state_proc.mode->height,
|
state_proc.mode->height,
|
||||||
image,
|
image,
|
||||||
count);
|
(libmegapixels_mode_width_to_bytes(state_proc.mode->format,
|
||||||
|
state_proc.mode->width) * state_proc.mode->height));
|
||||||
libdng_free(&dng);
|
libdng_free(&dng);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user