Skip to content

VideoToolbox macOS xcode15.0 b2

Alex Soto edited this page Jun 21, 2023 · 1 revision

#VideoToolbox.framework

diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h	2023-05-31 08:45:34
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h	2023-06-13 03:26:47
@@ -226,6 +226,23 @@
 		Note that data rate settings only have an effect when timing
 		information is provided for source frames, and that some codecs do
 		not support limiting to specified data rates.
+
+		When both kVTCompressionPropertyKey_DataRateLimits and
+		kVTCompressionPropertyKey_AverageBitRate are supported,
+		it is recommended that kVTCompressionPropertyKey_AverageBitRate
+		be set when kVTCompressionPropertyKey_DataRateLimits is set.
+		If kVTCompressionPropertyKey_AverageBitRate is not specified,
+		an overall average bit rate target will be selected at a safe margin below
+		the kVTCompressionPropertyKey_DataRateLimits target, so that regional
+		overshoot in the encoding will not exceed the
+		kVTCompressionPropertyKey_DataRateLimits.
+		The overall average bitrate target generated from
+		kVTCompressionPropertyKey_DataRateLimits in the absence of
+		kVTCompressionPropertyKey_AverageBitRate may not be ideal for all
+		scenarios.
+		Encoding is more likely to undershoot a requested
+		kVTCompressionPropertyKey_AverageBitRate if the specified target is too
+		close to a hard limit specified by kVTCompressionPropertyKey_DataRateLimits.
 */
 VT_EXPORT const CFStringRef kVTCompressionPropertyKey_DataRateLimits API_AVAILABLE(macosx(10.8), ios(8.0), tvos(10.2)); // Read/write, CFArray[CFNumber], [bytes, seconds, bytes, seconds...], Optional
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h	2023-05-31 08:45:33
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h	2023-06-14 00:18:19
@@ -64,7 +64,6 @@
 	kVTVideoDecoderReferenceMissingErr		= -17694,
 	kVTVideoDecoderCallbackMessagingErr		= -17695,
 	kVTVideoDecoderUnknownErr				= -17696,
-	kVTFigAudioSessionInitializationErr		= -17697,
     kVTVideoEncoderMVHEVCVideoLayerIDsMismatchErr = -17698,
 	kVTCouldNotOutputTaggedBufferGroupErr	= -17699,
 };
Clone this wiki locally