-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
216 additions
and
1,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
libheif/linux/libheif/001-aom-remove-extend_padding_to_size.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From a01baccaf40bafcabddba47846f5e914ca0724f6 Mon Sep 17 00:00:00 2001 | ||
From: Dirk Farin <[email protected]> | ||
Date: Mon, 5 Sep 2022 14:38:53 +0200 | ||
Subject: [PATCH] AOM encoder: remove unnecessary call to | ||
extend_padding_to_size() (see also #365) | ||
|
||
--- | ||
libheif/heif_encoder_aom.cc | 12 +----------- | ||
1 file changed, 1 insertion(+), 11 deletions(-) | ||
|
||
diff --git a/libheif/heif_encoder_aom.cc b/libheif/heif_encoder_aom.cc | ||
index 2a035654..e5136c1e 100644 | ||
--- a/libheif/heif_encoder_aom.cc | ||
+++ b/libheif/heif_encoder_aom.cc | ||
@@ -119,7 +119,7 @@ void encoder_struct_aom::add_custom_option(std::string name, std::string value) | ||
} | ||
#endif | ||
|
||
-static const char* kError_out_of_memory = "Out of memory"; | ||
+//static const char* kError_out_of_memory = "Out of memory"; | ||
static const char* kError_encode_frame = "Failed to encode frame"; | ||
|
||
static const char* kParam_min_q = "min-q"; | ||
@@ -727,16 +727,6 @@ struct heif_error aom_encode_image(void* encoder_raw, const struct heif_image* i | ||
|
||
struct heif_error err; | ||
|
||
- bool success = image->image->extend_padding_to_size(image->image->get_width(), | ||
- image->image->get_height()); | ||
- if (!success) { | ||
- err = {heif_error_Memory_allocation_error, | ||
- heif_suberror_Unspecified, | ||
- kError_out_of_memory}; | ||
- return err; | ||
- } | ||
- | ||
- | ||
const int source_width = heif_image_get_width(image, heif_channel_Y); | ||
const int source_height = heif_image_get_height(image, heif_channel_Y); | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.