Skip to content

Instantly share code, notes, and snippets.

@Manouchehri
Created April 18, 2022 16:01
Show Gist options
  • Save Manouchehri/4aa9acc6faa3245976c332cd2a6b3c37 to your computer and use it in GitHub Desktop.
Save Manouchehri/4aa9acc6faa3245976c332cd2a6b3c37 to your computer and use it in GitHub Desktop.
Decoding success! CMSampleBuffer 0x147106370 retainCount: 3 allocator: 0x1fb27c000
invalid = NO
dataReady = YES
makeDataReadyCallback = 0x0
makeDataReadyRefcon = 0x0
buffer-level attachments:
EditBoundary(P) = true
formatDescription = (null)
sbufToTrackReadiness = 0x0
numSamples = 0
outputPTS = {0/60000 = 0.000}(based on outputPresentationTimeStamp)
sampleTimingArray[1] = {
{PTS = {0/60000 = 0.000}, DTS = {INVALID}, duration = {0/1 = 0.000}},
}
dataBuffer = 0x0
Decoding success! CMSampleBuffer 0x145e56400 retainCount: 3 allocator: 0x1fb27c000
invalid = NO
dataReady = YES
makeDataReadyCallback = 0x0
makeDataReadyRefcon = 0x0
buffer-level attachments:
ResetDecoderBeforeDecoding(P) = true
formatDescription = <CMVideoFormatDescription 0x600002d45b00 [0x1fb27c000]> {
mediaType:'vide'
mediaSubType:'aprn'
mediaSpecific: {
codecType: 'aprn' dimensions: 4096 x 2160
}
extensions: {{
BitsPerComponent = 16;
CVFieldCount = 1;
CVPixelAspectRatio = {
HorizontalSpacing = 1;
VerticalSpacing = 1;
};
Depth = 24;
FormatName = "Apple ProRes RAW";
RevisionLevel = 0;
SpatialQuality = 1023;
TemporalQuality = 0;
Vendor = appl;
VerbatimSampleDescription = {length = 112, bytes = 0x00000070 6170726e 00000000 00000001 ... 00000001 00000001 };
Version = 0;
}}
}
sbufToTrackReadiness = 0x0
numSamples = 1
outputPTS = {0/60000 = 0.000}(based on outputPresentationTimeStamp)
sampleTimingArray[1] = {
{PTS = {0/60000 = 0.000}, DTS = {0/60000 = 0.000}, duration = {1001/60000 = 0.017}},
}
sampleSizeArray[1] = {
sampleSize = 2775552,
}
sampleAttachmentsArray[1] = {
sample 0:
}
dataBuffer = {
CMBlockBuffer 0x600001156f40 totalDataLength: 2775552 retainCount: 1 allocator: 0x1fb27c000 subBlockCapacity: 2
[0] 2775552 bytes @ offset 0 Memory Block 0x118048000, 2775552 bytes (allocator 0x1fb27c000)
}
!!!!!!
decode callback status: 0, bayer imageBuffer Optional(<CVPixelBuffer 0x600001256e40 width=4096 height=2160 pixelFormat=b16q iosurface=0x6000021483f0 planes=4 poolName=decode>
<Plane 0 width=2048 height=1080 bytesPerRow=4096>
<Plane 1 width=2048 height=1080 bytesPerRow=4096>
<Plane 2 width=2048 height=1080 bytesPerRow=4096>
<Plane 3 width=2048 height=1080 bytesPerRow=4096>
<attributes={
PixelFormatDescription = {
BitsPerComponent = 16;
ComponentRange = FullRange;
ContainsAlpha = 0;
ContainsBayer = 1;
ContainsGrayscale = 0;
ContainsRGB = 0;
ContainsYCbCr = 0;
PixelFormat = 1647392369;
Planes = (
{
BitsPerBlock = 16;
HorizontalSubsampling = 2;
VerticalSubsampling = 2;
},
{
BitsPerBlock = 16;
HorizontalSubsampling = 2;
VerticalSubsampling = 2;
},
{
BitsPerBlock = 16;
HorizontalSubsampling = 2;
VerticalSubsampling = 2;
},
{
BitsPerBlock = 16;
HorizontalSubsampling = 2;
VerticalSubsampling = 2;
}
);
};
} propagatedAttachments={
CGColorSpace = "<CGColorSpace 0x60000074ff60> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; HDTV)";
CVFieldCount = 1;
CVImageBufferColorPrimaries = "ITU_R_709_2";
CVImageBufferTransferFunction = "ITU_R_709_2";
CVImageBufferYCbCrMatrix = "ITU_R_709_2";
CVPixelAspectRatio = {
HorizontalSpacing = 1;
VerticalSpacing = 1;
};
ColorInfoGuessedBy = VideoToolbox;
"ProResHW_CheckValue" = "-821529940";
"ProResRAWKey_MetadataExtension" = {length = 222, bytes = 0x000000d6 7073696d 29636f6d 2e70616e ... 00000008 656f6d64 };
"ProResRAW_BayerPattern" = 0;
"ProResRAW_BlackLevel" = 256;
"ProResRAW_ColorMatrix" = {length = 36, bytes = 0x0000243f 00a02d3e 00800f3e 00a05c3e ... 00c0d7bd 00a4973f };
"ProResRAW_GainFactor" = "5.75994348526001";
"ProResRAW_LargestDCQSS" = 45;
"ProResRAW_RecommendedCrop" = {length = 16, bytes = 0x00000000000000000000000000000000};
"ProResRAW_SenselSitingOffsets" = {length = 32, bytes = 0x00000000 00000000 00000000 00000000 ... 00000000 00000000 };
"ProResRAW_WhiteBalanceBlueFactor" = 1;
"ProResRAW_WhiteBalanceCCT" = 4400;
"ProResRAW_WhiteBalanceRedFactor" = 1;
"ProResRAW_WhiteLevel" = 48179;
} nonPropagatedAttachments={
}>), flags: VTDecodeInfoFlags(rawValue: 0), pts: CMTime(value: 1001, timescale: 60000, flags: __C.CMTimeFlags(rawValue: 1), epoch: 0), ptsd: CMTime(value: 1001, timescale: 60000, flags: __C.CMTimeFlags(rawValue: 1), epoch: 0)
!!!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment