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)
|
||||
{
|
||||
uint16_t orientation;
|
||||
|
||||
if (state_proc.camera_rotation == 0) {
|
||||
orientation = state_proc.mode->mirrored ?
|
||||
LIBDNG_ORIENTATION_TOPRIGHT :
|
||||
@@ -1154,13 +1155,14 @@ save_dng(const uint8_t *image, char *fname, int count)
|
||||
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,
|
||||
fname,
|
||||
state_proc.mode->width,
|
||||
state_proc.mode->height,
|
||||
image,
|
||||
count);
|
||||
(libmegapixels_mode_width_to_bytes(state_proc.mode->format,
|
||||
state_proc.mode->width) * state_proc.mode->height));
|
||||
libdng_free(&dng);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user