Skip to content

Commit 51e0aeb

Browse files
authored
Merge pull request #64 from bbc/philipn-mxfdump-generic-streams
MXFDump: add dump of generic stream partition packs
2 parents b56943d + a6913c2 commit 51e0aeb

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

deps/libMXF/tools/MXFDump/MXFDump.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5294,6 +5294,8 @@ void destroyPartitions(PartitionList& partitions)
52945294
// OpenBody 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 03 03 00
52955295
// Body 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 03 04 00
52965296
//
5297+
// GenericStream 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 03 11 00
5298+
//
52975299
// IncompleteFooter 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 04 02 00
52985300
// Footer 06 0e 2b 34 02 05 01 01 0d 01 02 01 01 04 04 00
52995301
//
@@ -5326,6 +5328,8 @@ bool isPartition(mxfKey& key)
53265328
result = true;
53275329
} else if (memcmp(&Body, &key, sizeof(mxfKey)) == 0) {
53285330
result = true;
5331+
} else if (memcmp(&GenericStream, &key, sizeof(mxfKey)) == 0) {
5332+
result = true;
53295333
} else if (memcmp(&IncompleteFooter, &key, sizeof(mxfKey)) == 0) {
53305334
result = true;
53315335
} else if (memcmp(&Footer, &key, sizeof(mxfKey)) == 0) {
@@ -5377,6 +5381,8 @@ bool isClosed(const mxfKey& key)
53775381
result = true;
53785382
} else if (memcmp(&Body, &key, sizeof(mxfKey)) == 0) {
53795383
result = true;
5384+
} else if (memcmp(&GenericStream, &key, sizeof(mxfKey)) == 0) {
5385+
result = true;
53805386
} else if (memcmp(&IncompleteFooter, &key, sizeof(mxfKey)) == 0) {
53815387
result = true;
53825388
} else if (memcmp(&Footer, &key, sizeof(mxfKey)) == 0) {
@@ -5728,6 +5734,13 @@ void printBodyPartition(mxfKey& k, mxfLength& len, mxfFile infile)
57285734
printPartition(k, len, infile);
57295735
}
57305736

5737+
void printGenericStreamPartition(mxfKey& k, mxfLength& len, mxfFile infile);
5738+
5739+
void printGenericStreamPartition(mxfKey& k, mxfLength& len, mxfFile infile)
5740+
{
5741+
printPartition(k, len, infile);
5742+
}
5743+
57315744
void printFooterPartition(mxfKey& k, mxfLength& len, mxfFile infile);
57325745

57335746
void printFooterPartition(mxfKey& k, mxfLength& len, mxfFile infile)
@@ -6640,6 +6653,8 @@ void mxfDumpKLV(mxfKey& k, mxfLength& len, mxfFile infile)
66406653
printBodyPartition(k, len, infile);
66416654
} else if (memcmp(&Body, &k, sizeof(mxfKey)) == 0) {
66426655
printBodyPartition(k, len, infile);
6656+
} else if (memcmp(&GenericStream, &k, sizeof(mxfKey)) == 0) {
6657+
printGenericStreamPartition(k, len, infile);
66436658
} else if (memcmp(&IncompleteFooter, &k, sizeof(mxfKey)) == 0) {
66446659
printFooterPartition(k, len, infile);
66456660
} else if (memcmp(&Footer, &k, sizeof(mxfKey)) == 0) {

deps/libMXF/tools/MXFDump/MXFMetaDictionary.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,13 @@ MXF_DEFINE_PACK_KEY(Body,
229229
MXF_LABEL(0x06, 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01,
230230
0x0d, 0x01, 0x02, 0x01, 0x01, 0x03, 0x04, 0x00))
231231

232+
// Generic Stream Partition Pack
233+
//
234+
// 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.03.11.00
235+
MXF_DEFINE_PACK_KEY(GenericStream,
236+
MXF_LABEL(0x06, 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01,
237+
0x0d, 0x01, 0x02, 0x01, 0x01, 0x03, 0x11, 0x00))
238+
232239
// Footer Partition Pack
233240
//
234241
// 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.04.02.00

0 commit comments

Comments
 (0)