Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MXFDump: add dump of generic stream partition packs #64

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions deps/libMXF/tools/MXFDump/MXFDump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5294,6 +5294,8 @@ void destroyPartitions(PartitionList& partitions)
// OpenBody 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 03 03 00
// Body 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 03 04 00
//
// GenericStream 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 03 11 00
//
// IncompleteFooter 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 04 02 00
// Footer 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 04 04 00
//
Expand Down Expand Up @@ -5326,6 +5328,8 @@ bool isPartition(mxfKey& key)
result = true;
} else if (memcmp(&Body, &key, sizeof(mxfKey)) == 0) {
result = true;
} else if (memcmp(&GenericStream, &key, sizeof(mxfKey)) == 0) {
result = true;
} else if (memcmp(&IncompleteFooter, &key, sizeof(mxfKey)) == 0) {
result = true;
} else if (memcmp(&Footer, &key, sizeof(mxfKey)) == 0) {
Expand Down Expand Up @@ -5377,6 +5381,8 @@ bool isClosed(const mxfKey& key)
result = true;
} else if (memcmp(&Body, &key, sizeof(mxfKey)) == 0) {
result = true;
} else if (memcmp(&GenericStream, &key, sizeof(mxfKey)) == 0) {
result = true;
} else if (memcmp(&IncompleteFooter, &key, sizeof(mxfKey)) == 0) {
result = true;
} else if (memcmp(&Footer, &key, sizeof(mxfKey)) == 0) {
Expand Down Expand Up @@ -5728,6 +5734,13 @@ void printBodyPartition(mxfKey& k, mxfLength& len, mxfFile infile)
printPartition(k, len, infile);
}

void printGenericStreamPartition(mxfKey& k, mxfLength& len, mxfFile infile);

void printGenericStreamPartition(mxfKey& k, mxfLength& len, mxfFile infile)
{
printPartition(k, len, infile);
}

void printFooterPartition(mxfKey& k, mxfLength& len, mxfFile infile);

void printFooterPartition(mxfKey& k, mxfLength& len, mxfFile infile)
Expand Down Expand Up @@ -6640,6 +6653,8 @@ void mxfDumpKLV(mxfKey& k, mxfLength& len, mxfFile infile)
printBodyPartition(k, len, infile);
} else if (memcmp(&Body, &k, sizeof(mxfKey)) == 0) {
printBodyPartition(k, len, infile);
} else if (memcmp(&GenericStream, &k, sizeof(mxfKey)) == 0) {
printGenericStreamPartition(k, len, infile);
} else if (memcmp(&IncompleteFooter, &k, sizeof(mxfKey)) == 0) {
printFooterPartition(k, len, infile);
} else if (memcmp(&Footer, &k, sizeof(mxfKey)) == 0) {
Expand Down
7 changes: 7 additions & 0 deletions deps/libMXF/tools/MXFDump/MXFMetaDictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ MXF_DEFINE_PACK_KEY(Body,
MXF_LABEL(0x06, 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01,
0x0d, 0x01, 0x02, 0x01, 0x01, 0x03, 0x04, 0x00))

// Generic Stream Partition Pack
//
// 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.03.11.00
MXF_DEFINE_PACK_KEY(GenericStream,
MXF_LABEL(0x06, 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01,
0x0d, 0x01, 0x02, 0x01, 0x01, 0x03, 0x11, 0x00))

// Footer Partition Pack
//
// 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.04.02.00
Expand Down