tiny.png.Decoding
Defined in tiny.png.
API (6)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/png/src/decode/decoder.zig:17
zig
pub const Decoding = struct { storage: Storage, image: Image, pub fn init(allocator: std.mem.Allocator, bytes: []const u8) Error!Decoding { return initWithBounds(allocator, bytes, try Bounds.exact(bytes)); } pub fn initWithBounds( allocator: std.mem.Allocator, bytes: []const u8, bounds: Bounds, ) Error!Decoding { var storage = try Storage.init(allocator, .{ .bytes = bytes, .bounds = bounds }); errdefer storage.deinit(allocator); storage.activate(); return .{ .image = try imageFromBytes(&storage, bytes), .storage = storage }; } pub fn status(self: *const Decoding) Status { return self.storage.status(); } pub fn deinit(self: *Decoding, allocator: std.mem.Allocator) void { self.storage.reset(); self.storage.deinit(allocator); self.* = undefined; }};Source: lib/png/src/root.zig:33
zig
pub const Decoding = decode.Decoding;Also reachable as
Complete caller list for Decoding.deinit
10 direct callers.
lib.png.src.decode.test.test_decode_expands_RGB_PNG_rows_to_RGBA[function] — test source atlib/png/src/decode/test.zig:115in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_expands_an_indexed_PNG_through_its_palette[function] — test source atlib/png/src/decode/test.zig:139in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_expands_grayscale_alpha_PNG_rows_to_RGBA[function] — test source atlib/png/src/decode/test.zig:127in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_honors_palette_transparency[function] — test source atlib/png/src/decode/test.zig:165in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_reads_a_real_indexed_PNG_past_its_ancillary_chunks[function] — test source atlib/png/src/decode/test.zig:30in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_reduces_a_16-bit_truecolor_PNG_to_eight_bits[function] — test source atlib/png/src/decode/test.zig:201in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_round-trips_the_encoder_output[function] — test source atlib/png/src/decode/test.zig:12in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_scales_a_1-bit_grayscale_PNG[function] — test source atlib/png/src/decode/test.zig:189in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_streams_consecutive_IDAT_chunks_without_concatenation[function] — test source atlib/png/src/decode/test.zig:217in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decoding_allocation_baseline[function] — test source atlib/png/src/decode/test.zig:265in nearest public ownerlib.png.src.decode.test
Complete caller list for Decoding.init
10 direct callers.
lib.png.src.decode.test.test_decode_expands_RGB_PNG_rows_to_RGBA[function] — test source atlib/png/src/decode/test.zig:115in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_expands_an_indexed_PNG_through_its_palette[function] — test source atlib/png/src/decode/test.zig:139in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_expands_grayscale_alpha_PNG_rows_to_RGBA[function] — test source atlib/png/src/decode/test.zig:127in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_honors_palette_transparency[function] — test source atlib/png/src/decode/test.zig:165in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_reads_a_real_indexed_PNG_past_its_ancillary_chunks[function] — test source atlib/png/src/decode/test.zig:30in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_reduces_a_16-bit_truecolor_PNG_to_eight_bits[function] — test source atlib/png/src/decode/test.zig:201in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_round-trips_the_encoder_output[function] — test source atlib/png/src/decode/test.zig:12in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_scales_a_1-bit_grayscale_PNG[function] — test source atlib/png/src/decode/test.zig:189in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decode_streams_consecutive_IDAT_chunks_without_concatenation[function] — test source atlib/png/src/decode/test.zig:217in nearest public ownerlib.png.src.decode.testlib.png.src.decode.test.test_decoding_allocation_baseline[function] — test source atlib/png/src/decode/test.zig:265in nearest public ownerlib.png.src.decode.test
Audit
| Definitions | 5 |
|---|---|
| Public names | 10 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |