Reorganise type definitions

This commit is contained in:
Abdelrahman Said 2024-05-12 17:34:03 +01:00
parent efad22f21e
commit 5762ac33b0

View File

@ -156,6 +156,15 @@ struct tiff_sample_bits {
u16 a; u16 a;
}; };
typedef struct strip_data_field StripDataField;
struct strip_data_field {
u32 *strip_value;
const ShortLongValue *value_from_file;
u32 strip_index;
u32 length_in_bytes;
u16 type_byte_count;
};
typedef struct tiff_strip TiffStrip; typedef struct tiff_strip TiffStrip;
struct tiff_strip { struct tiff_strip {
u32 offset; u32 offset;
@ -198,15 +207,6 @@ struct tiff_reader {
Pixel *pixels; Pixel *pixels;
}; };
typedef struct strip_data_field StripDataField;
struct strip_data_field {
u32 *strip_value;
const ShortLongValue *value_from_file;
u32 strip_index;
u32 length_in_bytes;
u16 type_byte_count;
};
internal bool read_tiff_header(TiffReader *reader); internal bool read_tiff_header(TiffReader *reader);
internal bool read_ifd(TiffReader *reader, Arena *arena); internal bool read_ifd(TiffReader *reader, Arena *arena);
internal bool read_ifd_fields(TiffReader *reader); internal bool read_ifd_fields(TiffReader *reader);