Skip to content

Commit

Permalink
heifio cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 18, 2024
1 parent d9a358f commit 416803a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions heifio/encoder_jpeg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
7 changes: 4 additions & 3 deletions heifio/encoder_y4m.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
*/
#include "encoder_y4m.h"

#include <errno.h>
#include <string.h>
#include <assert.h>
#include <cerrno>
#include <cstring>
#include <cassert>


Y4MEncoder::Y4MEncoder() = default;
Expand All @@ -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;
}


Expand Down

0 comments on commit 416803a

Please sign in to comment.