Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/videotoolbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,14 @@ interface VTCompressionPropertyKey {
[TV (26, 0), MacCatalyst (26, 0), Mac (26, 0), iOS (26, 0)]
[Field ("kVTCompressionPropertyKey_SupportedPresetDictionaries")]
NSString SupportedPresetDictionaries { get; }

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
[Field ("kVTCompressionPropertyKey_ConstantQualityFactor")]
NSString ConstantQualityFactor { get; }

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
[Field ("kVTCompressionPropertyKey_LogTransferFunction")]
NSString LogTransferFunction { get; }
}

[TV (26, 0), MacCatalyst (26, 0), Mac (26, 0), iOS (26, 0)]
Expand All @@ -497,6 +505,10 @@ interface VTCompressionPresetKey {

[Field ("kVTCompressionPreset_VideoConferencing")]
NSString VideoConferencing { get; }

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
[Field ("kVTCompressionPreset_ConsistentQuality")]
NSString ConsistentQuality { get; }
}

[TV (26, 0), MacCatalyst (26, 0), Mac (26, 0), iOS (26, 0)]
Expand All @@ -507,6 +519,9 @@ interface VTCompressionPreset {
NSDictionary Balanced { get; }
NSDictionary HighSpeed { get; }
NSDictionary VideoConferencing { get; }

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
NSDictionary ConsistentQuality { get; }
}

[MacCatalyst (13, 1)]
Expand Down Expand Up @@ -906,6 +921,15 @@ interface VTCompressionProperties {
[TV (26, 0), MacCatalyst (26, 0), Mac (26, 0), iOS (26, 0)]
[Export ("SupportedPresetDictionaries")]
VTCompressionPreset SupportedPresetDictionaries { get; }

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
[Export ("ConstantQualityFactor")]
float ConstantQualityFactor { get; set; }

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
// not strongly typed to CMFormatDescriptionLogTransferFunction because other values are allowed as well
[Export ("LogTransferFunction")]
string LogTransferFunction { get; set; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should have a strongly typed LogTransferFunction, and then a WeakLogTransferFunction as well? NBD either way.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot file an issue so we do not forget

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #26006 to track adding a strongly typed LogTransferFunction (with WeakLogTransferFunction) using CMFormatDescriptionLogTransferFunction.

}

[TV (26, 0), MacCatalyst (26, 0), Mac (26, 0), iOS (26, 0)]
Expand Down Expand Up @@ -1031,6 +1055,10 @@ enum VTProjectionKind {

[Field ("kVTProjectionKind_ParametricImmersive")]
ParametricImmersive,

[NoTV, MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
[Field ("kVTProjectionKind_AppleImmersiveVideo")]
AppleImmersiveVideo,
}

[NoTV, MacCatalyst (26, 0), Mac (26, 0), iOS (26, 0)]
Expand Down Expand Up @@ -3146,6 +3174,16 @@ interface VTLowLatencyFrameInterpolationConfiguration : VTFrameProcessorConfigur
[Static]
[Export ("supported")]
bool Supported { [Bind ("isSupported")] get; }

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
[Static]
[Export ("maximumDimensionForSpatialScaleFactor:")]
nint GetMaximumDimension (nint spatialScaleFactor);

[TV (27, 0), MacCatalyst (27, 0), Mac (27, 0), iOS (27, 0)]
[Static]
[Export ("maximumPixelCountForSpatialScaleFactor:")]
nint GetMaximumPixelCount (nint spatialScaleFactor);
}

[UnsupportedSimulator ("ios")]
Expand Down
6 changes: 6 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7777,6 +7777,7 @@ F:VideoToolbox.VTOpticalFlowConfigurationQualityPrioritization.Quality
F:VideoToolbox.VTOpticalFlowConfigurationRevision.Revision1
F:VideoToolbox.VTOpticalFlowParametersSubmissionMode.Random
F:VideoToolbox.VTOpticalFlowParametersSubmissionMode.Sequential
F:VideoToolbox.VTProjectionKind.AppleImmersiveVideo
F:VideoToolbox.VTProjectionKind.Equirectangular
F:VideoToolbox.VTProjectionKind.HalfEquirectangular
F:VideoToolbox.VTProjectionKind.ParametricImmersive
Expand Down Expand Up @@ -29849,6 +29850,8 @@ M:VideoToolbox.VTFrameProcessorOpticalFlow.#ctor(CoreVideo.CVPixelBuffer,CoreVid
M:VideoToolbox.VTFrameRateConversionConfiguration.#ctor(System.IntPtr,System.IntPtr,System.Boolean,VideoToolbox.VTFrameRateConversionConfigurationQualityPrioritization,VideoToolbox.VTFrameRateConversionConfigurationRevision)
M:VideoToolbox.VTFrameRateConversionParameters.#ctor(VideoToolbox.VTFrameProcessorFrame,VideoToolbox.VTFrameProcessorFrame,VideoToolbox.VTFrameProcessorOpticalFlow,Foundation.NSNumber[],VideoToolbox.VTFrameRateConversionParametersSubmissionMode,VideoToolbox.VTFrameProcessorFrame[])
M:VideoToolbox.VTHdrPerFrameMetadataGenerationSession.#ctor(ObjCRuntime.NativeHandle,System.Boolean)
M:VideoToolbox.VTLowLatencyFrameInterpolationConfiguration.GetMaximumDimension(System.IntPtr)
M:VideoToolbox.VTLowLatencyFrameInterpolationConfiguration.GetMaximumPixelCount(System.IntPtr)
M:VideoToolbox.VTLowLatencyFrameInterpolationParameters.#ctor(VideoToolbox.VTFrameProcessorFrame,VideoToolbox.VTFrameProcessorFrame,System.Single[],VideoToolbox.VTFrameProcessorFrame[])
M:VideoToolbox.VTLowLatencySuperResolutionScalerConfiguration.#ctor(System.IntPtr,System.IntPtr,System.Single)
M:VideoToolbox.VTLowLatencySuperResolutionScalerConfiguration.GetSupportedScaleFactors(System.IntPtr,System.IntPtr)
Expand Down Expand Up @@ -53687,6 +53690,7 @@ P:VideoToolbox.IVTFrameProcessorParameters.DestinationFrame
P:VideoToolbox.IVTFrameProcessorParameters.DestinationFrames
P:VideoToolbox.IVTFrameProcessorParameters.SourceFrame
P:VideoToolbox.VTCompressionPreset.Balanced
P:VideoToolbox.VTCompressionPreset.ConsistentQuality
P:VideoToolbox.VTCompressionPreset.HighQuality
P:VideoToolbox.VTCompressionPreset.HighSpeed
P:VideoToolbox.VTCompressionPreset.VideoConferencing
Expand All @@ -53695,6 +53699,7 @@ P:VideoToolbox.VTCompressionProperties.BaseLayerBitRateFraction
P:VideoToolbox.VTCompressionProperties.CalculateMeanSquaredError
P:VideoToolbox.VTCompressionProperties.CameraCalibrationDataLensCollection
P:VideoToolbox.VTCompressionProperties.ConstantBitRate
P:VideoToolbox.VTCompressionProperties.ConstantQualityFactor
P:VideoToolbox.VTCompressionProperties.EnableLowLatencyRateControl
P:VideoToolbox.VTCompressionProperties.EnableLtr
P:VideoToolbox.VTCompressionProperties.EstimatedAverageBytesPerFrame
Expand All @@ -53704,6 +53709,7 @@ P:VideoToolbox.VTCompressionProperties.HasRightStereoEyeView
P:VideoToolbox.VTCompressionProperties.HeroEye
P:VideoToolbox.VTCompressionProperties.HorizontalDisparityAdjustment
P:VideoToolbox.VTCompressionProperties.HorizontalFieldOfView
P:VideoToolbox.VTCompressionProperties.LogTransferFunction
P:VideoToolbox.VTCompressionProperties.MaxAllowedFrameQP
P:VideoToolbox.VTCompressionProperties.MaximumRealTimeFrameRate
P:VideoToolbox.VTCompressionProperties.MinAllowedFrameQP
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading