summaryrefslogtreecommitdiff
path: root/src/AS_DCP.h
diff options
context:
space:
mode:
authorPierre-Anthony Lemieux <pal@palemieux.com>2019-12-17 12:05:00 -0800
committerPierre-Anthony Lemieux <pal@palemieux.com>2019-12-17 12:05:07 -0800
commit166e7b4b202bc8febb13b59710579fbbd724e2b6 (patch)
treebc373d2105a9ef67b8cd4e3ca5593c0bca9a1c24 /src/AS_DCP.h
parentdd3acfff947ca52e1a3260243cb38f7035626282 (diff)
- Added support for optional CPF, CAP and PRF segments
- Fixed encoding of J2KExtendedCapabilities
Diffstat (limited to 'src/AS_DCP.h')
-rwxr-xr-xsrc/AS_DCP.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/AS_DCP.h b/src/AS_DCP.h
index 0948cbf..74991f6 100755
--- a/src/AS_DCP.h
+++ b/src/AS_DCP.h
@@ -1051,6 +1051,9 @@ namespace ASDCP {
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
@@ -1092,18 +1095,19 @@ namespace ASDCP {
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]
};