tinytga
is a no_std, low memory footprint TGA loading library for embedded applications.
Unreleased - ReleaseDate
0.5.0 - 2023-05-17
- #16 Added support for bottom right and top right image origins.
- (breaking) #16 Use 1.61 as MSRV.
- (breaking) #16 Replaced
ImageType
enum withDataType
andCompression
. - (breaking) #16 Color types used with
Tga
are now required to implementFrom<Gray8> + From<Rgb555> + From<Rgb888>
. - #16 Improved drawing performance for bottom left origin images by using
fill_contiguous
. - #16 Use correct lifetimes for
RawTga::image_id
,RawTga::developer_dictionary
andRawTga::extension_area
. - (breaking) #18 Updated
embedded-graphics
to0.8
.
- (breaking) #16 Removed
DynamicTga
, useTga
instead.
0.4.1 - 2021-06-16
- #10 Bump embedded-graphics minimum version from 0.7.0 to 0.7.1
0.4.0 - 2021-06-06
0.4.0-beta.1 - 2021-05-24
0.4.0-alpha.1 - 2020-12-27
- (breaking) #3
tinytga
now depends onembedded-graphics-core
instead ofembedded-graphics
.
0.4.0-alpha.1 - embedded-graphics
repository - 2020-12-27
Note: PR numbers from this point onwards are from the old
embedded-graphics/embedded-graphics
repository. New PR numbers above this note refer to PRs in theembedded-graphics/tinytga
repository.
- (breaking) #407 The
image_descriptor
inTgaHeader
was replaced byimage_origin
andalpha_channel_bits
. - (breaking) #420 To support the new embedded-graphics 0.7 image API a color type parameter was added to
Tga
. - (breaking) #430 The
graphics
feature was removed and theembedded-graphics
dependency is now non optional. - (breaking) #430
Tga
no longer implementsIntoIterator
. Pixel iterators can now be created using thepixels
andraw_pixels
methods. - (breaking) #430
Tga::from_slice
now checks that the specified color type matches the bit depth of the image. - (breaking) #450 The
TgaFooter
struct was replaced by thedeveloper_dictionary
andextension_area
methods inRawTga
. - (breaking) #430
Tga::width
andTga::height
were replaced byTga::size
which requiresembedded_graphics::geometry::OriginDimensions
to be in scope (also included in the embedded-graphicsprelude
). - (breaking) #430 The color map can now be accessed using the new
ColorMap
type. - (breaking) #450
Tga
no longer provides direct access to low level information like the TGA header, insteadTga::as_raw
can be used to access the underlyingRawTga
instance.
- #407 Added support for bottom-left origin images to
TgaIterator
. - #430 The image ID can now be accessed using
Tga::image_id
. - #450 Added
RawTga
to usetinytga
without using a embedded-graphic color type. - #450 Added
Tga::from_raw
to convert aRawTga
into aTga
object. - #450 Added
DynamicTga
to allow drawing of TGA images without a known color format at compile time.
- #407 Additional data in
pixel_data
, beyondwidth * height
pixels, is now discarded byTgaIterator
. - #430 Images with unsupported BPP values in the header no longer cause panics. Instead an error is returned by
Tga::from_slice
. - #430 Errors during the execution of a pixel iterator no longer cause panics. Instead the corrupted portion of the image is filled with black pixels.
0.3.2 - 2020-03-20
0.3.1 - 2020-02-17
-
(breaking) #247 "reverse" integration of tinytga into
embedded-graphics
. tinytga now has agraphics
feature that must be turned on to enable embedded-graphics support. Thetga
feature from embedded-graphics is removed.Before
Cargo.toml
[dependencies] embedded-graphics = { version = "0.6.0-alpha.3", features = [ "tga" ]}
Your code
use embedded_graphics::prelude::*; use embedded_graphics::image::ImageTga; let image = ImageTga::new(include_bytes!("../../../assets/patch.tga")).unwrap(); display.draw(&image);
After
Cargo.toml
[dependencies] embedded-graphics = "0.6.0" tinytga = { version = "*", features = [ "graphics" ]}
Your code
use embedded_graphics::{prelude::*, image::Image}; use tinytga::Tga; let image = Tga::new(include_bytes!("../../../assets/patch.tga")).unwrap(); let image = Image::new(&image); display.draw(&image);
- #217 Added support for TGA files with color map.