Question about Gamma Table example and structs
Hello. In the Gamma Table example there is this code:
typedef struct {
PF_Fixed gamma_val;
A_u_char lut[256];
} Gamma_Table;
typedef struct {
unsigned char *lut;
} GammaInfo;
How come a struct is used to create a pointer to lut inside Gamma_Table? If there is only one data type is this pointless or does it have a reason? Thanks.
