const ui8_t MaxCapabilities = 32;
const ui16_t MaxPRFN = 4;
const ui16_t MaxCPFN = 4;
+ const i8_t NoExtendedCapabilitiesSignaled = -1;
+ const ui16_t NoPRFSignaled = 0;
+ const ui16_t NoCPFSignaled = 0;
#pragma pack(1)
struct ImageComponent_t // ISO 15444-1 Annex A.5.1
struct ExtendedCapabilities_t // ISO 15444-1 Annex A.5.2
{
ui32_t Pcap; // Pcap = 0 means that no extended capabilities are required
- ui16_t Ccap[MaxCapabilities]; // Ccap^i in ISO/IEC 15444-1 corresponds to Ccap[i - 1]
+ i8_t N; // Number of Ccap elements, or NoExtendedCapabilitiesSignaled if no Extended Capabilities are signaled
+ ui16_t Ccap[MaxCapabilities];
};
struct Profile_t // ISO 15444-1
{
- ui16_t N; // N = 0 means that the profile is signaled through Rsiz exclusively
+ ui16_t N; // N = NoPRFSignaled means that Profile is signaled through Rsiz exclusively
ui16_t Pprf[MaxPRFN]; // Pprf^i in ISO/IEC 15444-1 corresponds to Pprf[i -1]
};
struct CorrespondingProfile_t // ISO 15444-1
{
- ui16_t N; // N = 0 means that no corresponding profile is signaled
+ ui16_t N; // N = NoCPFSignaled means that no corresponding profile is signaled
ui16_t Pcpf[MaxCPFN]; // Pcpf^i in ISO/IEC 15444-1 corresponds to Pcpf[i -1]
};