Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ cc_library(
"src/lib/OpenEXRCore/internal_attr.h",
"src/lib/OpenEXRCore/internal_b44.c",
"src/lib/OpenEXRCore/internal_b44_table.c",
"src/lib/OpenEXRCore/internal_b44_table_init.c",
"src/lib/OpenEXRCore/internal_bytes.h",
"src/lib/OpenEXRCore/internal_channel_list.h",
"src/lib/OpenEXRCore/internal_coding.h",
Expand Down
108 changes: 0 additions & 108 deletions src/lib/OpenEXR/b44ExpLogTable.cpp

This file was deleted.

1 change: 1 addition & 0 deletions src/lib/OpenEXRCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ openexr_define_library(OpenEXRCore
internal_pxr24.c
internal_b44.c
internal_b44_table.c
internal_b44_table_init.c
internal_piz.c
internal_ht.cpp
internal_ht_common.cpp
Expand Down
9 changes: 7 additions & 2 deletions src/lib/OpenEXRCore/internal_b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

/**************************************/

extern const uint16_t* exrcore_expTable;
extern const uint16_t* exrcore_logTable;
extern uint16_t* exrcore_expTable;
extern uint16_t* exrcore_logTable;
extern void exrcore_ensure_b44_tables ();

static inline void
convertFromLinear (uint16_t s[16])
Expand Down Expand Up @@ -353,6 +354,8 @@ compress_b44_impl (exr_encode_pipeline_t* encode, int flat_field)
encode->packed_bytes);
if (rv != EXR_ERR_SUCCESS) return rv;

exrcore_ensure_b44_tables ();

nOut = 0;
packed = encode->packed_buffer;
for (int y = 0; y < encode->chunk.height; ++y)
Expand Down Expand Up @@ -698,6 +701,8 @@ internal_exr_undo_b44 (
compute_scratch_buffer_size (decode, uncompressed_size));
if (rv != EXR_ERR_SUCCESS) return rv;

exrcore_ensure_b44_tables ();

return uncompress_b44_impl (
decode,
compressed_data,
Expand Down
Loading
Loading