-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding parsing for 'J2KExtendedCapabilities' stored in the MXF header…
…'s 'JPEG2000SubDescriptor'. (#382) * Adding parsing for 'J2KExtendedCapabilities' stored in the MXF header's 'JPEG2000SubDescriptor'. * Adding j2k_extended_capabilities to 'toString' * Updating comment * Simplifying code. Moving away from the 'B0' convention which seems to be used for InterchangeObject inheritors. Passed in byteProvider directly. * Using smaller test file * Renaming 'cCapi' to 'cCap'
- Loading branch information
1 parent
18965f2
commit 0ebf06a
Showing
11 changed files
with
473 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/com/netflix/imflibrary/st0377/header/J2KExtendedCapabilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.netflix.imflibrary.st0377.header; | ||
|
||
import com.netflix.imflibrary.MXFPropertyPopulator; | ||
import com.netflix.imflibrary.annotations.MXFProperty; | ||
import com.netflix.imflibrary.st0377.CompoundDataTypes; | ||
import com.netflix.imflibrary.utils.ByteArrayDataProvider; | ||
import com.netflix.imflibrary.utils.ByteProvider; | ||
|
||
import javax.annotation.concurrent.Immutable; | ||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
/** | ||
* Object model corresponding to J2KExtendedCapabilities as defined in ISO/IEC 15444-1:2019 Annex A.5.2 | ||
*/ | ||
|
||
@Immutable | ||
public final class J2KExtendedCapabilities { | ||
|
||
@MXFProperty(size=4) protected final Integer pCap = null; | ||
@MXFProperty(size=0, depends=true) protected final CompoundDataTypes.MXFCollections.MXFCollection<Short> cCap = null; | ||
|
||
/** | ||
* Instantiates a new parsed J2KExtendedCapabilities object | ||
* | ||
* @param byteProvider the bytes corresponding to the 2 fields | ||
* @throws IOException - any I/O related error will be exposed through an IOException | ||
*/ | ||
|
||
public J2KExtendedCapabilities(ByteProvider byteProvider) throws IOException { | ||
MXFPropertyPopulator.populateField(byteProvider, this, "pCap"); | ||
MXFPropertyPopulator.populateField(byteProvider, this, "cCap"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<AssetMap xmlns="http://www.smpte-ra.org/schemas/429-9/2007/AM"> | ||
<Id>urn:uuid:49e02e84-fee5-430a-8f0d-0063ff9f0e46</Id> | ||
<AnnotationText>Untitled Project</AnnotationText> | ||
<Creator>Blackmagic Design DaVinci Resolve 19.0.0b.0050</Creator> | ||
<VolumeCount>1</VolumeCount> | ||
<IssueDate>2024-09-30T13:25:04</IssueDate> | ||
<Issuer>Blackmagic Design</Issuer> | ||
<AssetList> | ||
<Asset> | ||
<Id>urn:uuid:6ed567b7-c030-46d6-9c1c-0f09bab4b962</Id> | ||
<ChunkList> | ||
<Chunk> | ||
<Path>VIDEO_6ed567b7-c030-46d6-9c1c-0f09bab4b962.mxf</Path> | ||
<VolumeIndex>1</VolumeIndex> | ||
<Offset>0</Offset> | ||
<Length>3651582</Length> | ||
</Chunk> | ||
</ChunkList> | ||
</Asset> | ||
<Asset> | ||
<Id>urn:uuid:b285d8f3-0294-4207-8ea8-4f0b72314213</Id> | ||
<ChunkList> | ||
<Chunk> | ||
<Path>AUDIO_b285d8f3-0294-4207-8ea8-4f0b72314213.mxf</Path> | ||
<VolumeIndex>1</VolumeIndex> | ||
<Offset>0</Offset> | ||
<Length>651208</Length> | ||
</Chunk> | ||
</ChunkList> | ||
</Asset> | ||
<Asset> | ||
<Id>urn:uuid:67be5fc8-87f1-4172-8d52-819ca14c7a20</Id> | ||
<ChunkList> | ||
<Chunk> | ||
<Path>CPL_67be5fc8-87f1-4172-8d52-819ca14c7a20.xml</Path> | ||
<VolumeIndex>1</VolumeIndex> | ||
<Offset>0</Offset> | ||
<Length>13275</Length> | ||
</Chunk> | ||
</ChunkList> | ||
</Asset> | ||
<Asset> | ||
<Id>urn:uuid:52f61ec0-1517-49b7-a8e2-941c0200c69a</Id> | ||
<PackingList>true</PackingList> | ||
<ChunkList> | ||
<Chunk> | ||
<Path>PKL_52f61ec0-1517-49b7-a8e2-941c0200c69a.xml</Path> | ||
<VolumeIndex>1</VolumeIndex> | ||
<Offset>0</Offset> | ||
<Length>1708</Length> | ||
</Chunk> | ||
</ChunkList> | ||
</Asset> | ||
</AssetList> | ||
</AssetMap> |
Binary file added
BIN
+636 KB
src/test/resources/TestIMP/HT/IMP/AUDIO_b285d8f3-0294-4207-8ea8-4f0b72314213.mxf
Binary file not shown.
Oops, something went wrong.