Improve color range passthru.
This commit is contained in:
3 files changed
+14
-1
No files matched your search
@@ -187,6 +187,7 @@ static uint32_t convertToFixedPoint(CGFloat value) {
|
||||
}
|
||||
else {
|
||||
MP4AddColr(fileHandle, self.trackId, _colorPrimaries, _transferCharacteristics, _matrixCoefficients);
|
||||
MP4SetTrackIntegerProperty(fileHandle, self.trackId, "mdia.minf.stbl.stsd.*.colr.full_range_flag", _colorRange);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -269,6 +270,13 @@ static uint32_t convertToFixedPoint(CGFloat value) {
|
||||
self.edited = YES;
|
||||
}
|
||||
|
||||
- (void)setColorRange:(uint16_t)colorRange
|
||||
{
|
||||
self.updatedProperty[@"colr"] = @YES;
|
||||
_colorRange = colorRange;
|
||||
self.edited = YES;
|
||||
}
|
||||
|
||||
- (void)setHSpacing:(uint64_t)newHSpacing
|
||||
{
|
||||
_hSpacing = newHSpacing;
|
||||
|
||||
Reference in new issue
Block a user