diff options
author | Lukas Rusak <lorusak@gmail.com> | 2023-04-14 20:52:21 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2023-04-14 20:57:11 -0700 |
commit | 79c9268aa31ab1ca2f8bd89266dffa4b3556a52f (patch) | |
tree | 0e7b72a8e4c0029ed4b0ce31934b02351aa18718 /tools | |
parent | 4987e7a68e026606235b0808c1afcc0a75d4aa25 (diff) |
TexturePacker: DecodedFrame: remove pointer to IDecoder
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
Diffstat (limited to 'tools')
4 files changed, 0 insertions, 6 deletions
diff --git a/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp b/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp index 8881258788..b98afed75f 100644 --- a/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp +++ b/tools/depends/native/TexturePacker/src/decoder/GIFDecoder.cpp @@ -57,7 +57,6 @@ bool GIFDecoder::LoadFile(const std::string &filename, DecodedFrames &frames) frame.rgbaImage.bbp = 32; frame.rgbaImage.pitch = pitch; frame.delay = extractedFrames[i]->m_delay; - frame.decoder = this; frames.frameList.push_back(frame); } diff --git a/tools/depends/native/TexturePacker/src/decoder/IDecoder.h b/tools/depends/native/TexturePacker/src/decoder/IDecoder.h index ffb646a9b1..0896cbfac7 100644 --- a/tools/depends/native/TexturePacker/src/decoder/IDecoder.h +++ b/tools/depends/native/TexturePacker/src/decoder/IDecoder.h @@ -68,7 +68,6 @@ public: DecodedFrame() = default; RGBAImage rgbaImage; /* rgbaimage for this frame */ int delay = 0; /* Frame delay in ms */ - IDecoder* decoder = nullptr; /* Pointer to decoder */ }; class DecodedFrames diff --git a/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp b/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp index 872c17d2f1..fb51dd3d8c 100644 --- a/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp +++ b/tools/depends/native/TexturePacker/src/decoder/JPGDecoder.cpp @@ -117,8 +117,6 @@ bool JPGDecoder::LoadFile(const std::string &filename, DecodedFrames &frames) frame.rgbaImage.bbp = 32; frame.rgbaImage.pitch = 4 * cinfo.image_width; - frame.decoder = this; - frames.frameList.push_back(frame); delete arq; diff --git a/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp b/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp index 244448c0c7..92b8b10485 100644 --- a/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp +++ b/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp @@ -210,8 +210,6 @@ bool PNGDecoder::LoadFile(const std::string &filename, DecodedFrames &frames) frame.rgbaImage.bbp = 32; frame.rgbaImage.pitch = 4 * temp_width; - frame.decoder = this; - frames.frameList.push_back(frame); // clean up png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); |