Skip to content

Commit

Permalink
Support HEVC spatial video tags in quicktime container
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola Jovic committed Aug 9, 2024
1 parent 9f4ad4c commit f41cd46
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public class QuickTimeMetadataDirectory extends QuickTimeDirectory
public static final int TAG_ORIGINATING_SIGNATURE = 0x051F;
public static final int TAG_PIXEL_DENSITY = 0x0520;

public static final int TAG_SPATIAL_FORMAT_VERSION = 0x0521;
public static final int TAG_SPATIAL_AGGRESSORS_SEEN = 0x0522;

public QuickTimeMetadataDirectory()
{
this.setDescriptor(new QuickTimeMetadataDescriptor(this));
Expand Down Expand Up @@ -116,6 +119,8 @@ public QuickTimeMetadataDirectory()
_tagIntegerMap.put("com.apple.quicktime.model", TAG_MODEL);
_tagIntegerMap.put("com.apple.photos.originating.signature", TAG_ORIGINATING_SIGNATURE);
_tagIntegerMap.put("com.apple.quicktime.pixeldensity", TAG_PIXEL_DENSITY);
_tagIntegerMap.put("com.apple.quicktime.spatial.format-version", TAG_SPATIAL_FORMAT_VERSION);
_tagIntegerMap.put("com.apple.quicktime.spatial.aggressors-seen", TAG_SPATIAL_AGGRESSORS_SEEN);

_tagIntegerMap.put("----", 0x0400);
_tagIntegerMap.put("@PST", 0x0401);
Expand Down Expand Up @@ -233,6 +238,8 @@ public QuickTimeMetadataDirectory()
_tagNameMap.put(TAG_MODEL, "Model");
_tagNameMap.put(TAG_ORIGINATING_SIGNATURE, "Originating Signature");
_tagNameMap.put(TAG_PIXEL_DENSITY, "Pixel Density");
_tagNameMap.put(TAG_SPATIAL_FORMAT_VERSION, "Spatial Format Version");
_tagNameMap.put(TAG_SPATIAL_AGGRESSORS_SEEN, "Spatial Aggressors Seen");

_tagNameMap.put(0x0400, "iTunes Info");
_tagNameMap.put(0x0401, "Parent Short Title");
Expand Down

0 comments on commit f41cd46

Please sign in to comment.