From 416803a1b34bf9bd3c7193aae5312c6eacbb038c Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Wed, 18 Sep 2024 17:26:41 +0200 Subject: [PATCH] heifio cleanup --- heifio/encoder_jpeg.cc | 4 ---- heifio/encoder_y4m.cc | 7 ++++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/heifio/encoder_jpeg.cc b/heifio/encoder_jpeg.cc index 09c23a8b29..369f9bfae4 100644 --- a/heifio/encoder_jpeg.cc +++ b/heifio/encoder_jpeg.cc @@ -57,10 +57,6 @@ JpegEncoder::JpegEncoder(int quality) : quality_(quality) void JpegEncoder::UpdateDecodingOptions(const struct heif_image_handle* handle, struct heif_decoding_options* options) const { - if (HasExifMetaData(handle)) { - options->ignore_transformations = 0; - } - options->convert_hdr_to_8bit = 1; } diff --git a/heifio/encoder_y4m.cc b/heifio/encoder_y4m.cc index 1d89f32320..79eb2e33a9 100644 --- a/heifio/encoder_y4m.cc +++ b/heifio/encoder_y4m.cc @@ -25,9 +25,9 @@ */ #include "encoder_y4m.h" -#include -#include -#include +#include +#include +#include Y4MEncoder::Y4MEncoder() = default; @@ -36,6 +36,7 @@ Y4MEncoder::Y4MEncoder() = default; void Y4MEncoder::UpdateDecodingOptions(const struct heif_image_handle* handle, struct heif_decoding_options* options) const { + options->convert_hdr_to_8bit = 1; }