Commit Graph
29 Commits
Author SHA1 Message Date
abdelrahman d278d7ee55 Multiply RGB when reading image with unassociated alpha 2024-05-06 00:37:23 +01:00
abdelrahman 1c667f4128 Move all TIFF type definitions to the source file 2024-05-06 00:31:14 +01:00
abdelrahman cd424bf074 Remove NULL header, ifd and image definitions 2024-05-05 23:33:53 +01:00
abdelrahman 11798a0683 Main read functions return boolean 2024-05-05 23:26:02 +01:00
abdelrahman c2a55279fd Rename load_image_pixels to read_image_pixels 2024-05-05 22:57:47 +01:00
abdelrahman 53f53874a6 Update 8-bit assertion 2024-05-05 22:51:17 +01:00
abdelrahman ba21bcb2f4 Switch internal reading functions to directly manipulate reader object 2024-05-05 22:46:13 +01:00
abdelrahman 5bf78d3e01 Add comment 2024-05-05 22:13:37 +01:00
abdelrahman 38862899d0 Read bits per sample 2024-05-05 22:05:39 +01:00
abdelrahman f0d4108a64 Add reading alpha 2024-05-05 21:21:48 +01:00
abdelrahman ed2737d330 Check field sizes against field type sizes instead of C primitives 2024-05-05 18:42:24 +01:00
abdelrahman 71b7c682db Rename read_fields to read_ifd_fields 2024-05-05 16:25:39 +01:00
abdelrahman a9143642a0 Declare TiffReader before attempting to open the file 2024-05-04 23:52:15 +01:00
abdelrahman d195086af8 Make functions internal 2024-05-04 23:48:01 +01:00
abdelrahman 3f022acf9c Reorder functions 2024-05-04 23:46:24 +01:00
abdelrahman de0235c0af Refactor reading the strip data fields into a function 2024-05-04 23:31:20 +01:00
abdelrahman b546ce9fa7 Calculate strip field size once 2024-05-04 22:47:23 +01:00
abdelrahman c98802542d Add TiffReader struct 2024-05-04 22:35:12 +01:00
abdelrahman 9fdee24672 Refactor loading image data 2024-05-04 22:01:24 +01:00
abdelrahman 9312c0fb6b Move TiffStrip array inside the TiffImage struct 2024-05-04 21:17:22 +01:00
abdelrahman 51f79275de Assert image is RGB earlier 2024-05-04 20:59:57 +01:00
abdelrahman 4b52630c1e Implement reading RGB and RGBA images 2024-05-02 22:00:32 +01:00
abdelrahman c46535c20b Test implementation of read_strips 2024-05-01 23:53:04 +01:00
abdelrahman 69c13b83ea Read strip data 2024-05-01 00:17:53 +01:00
abdelrahman d508af1809 Refactor read_fields function 2024-04-30 22:17:17 +01:00
abdelrahman e371ca7160 Remove unnecessary comments 2024-04-30 22:01:55 +01:00
abdelrahman eaa6e52fbe Switch from using Allocator to Arena 2024-04-30 22:00:54 +01:00
abdelrahman 38988120a3 Start implementing reading fields from scratch 2024-04-21 23:54:42 +01:00
abdelrahman 8040dd7381 First botched attempt at reading image data :D 2024-04-21 18:55:02 +01:00