Package apple.avfoundation
Class AVCaptureStillImageOutput
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVCaptureOutput
-
- apple.avfoundation.AVCaptureStillImageOutput
-
- All Implemented Interfaces:
NSObject
@Deprecated public class AVCaptureStillImageOutput extends AVCaptureOutput
Deprecated.AVCaptureStillImageOutput AVCaptureStillImageOutput is a concrete subclass of AVCaptureOutput that can be used to capture high-quality still images with accompanying metadata. Instances of AVCaptureStillImageOutput can be used to capture, on demand, high quality snapshots from a realtime capture source. Clients can request a still image for the current time using the captureStillImageAsynchronouslyFromConnection:completionHandler: method. Clients can also configure still image outputs to produce still images in specific image formats. API-Since: 4.0 Deprecated-Since: 10.0 Deprecated-Message: Use AVCapturePhotoOutput instead.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVCaptureStillImageOutput.Block_captureStillImageAsynchronouslyFromConnectionCompletionHandlerDeprecated.static interfaceAVCaptureStillImageOutput.Block_captureStillImageBracketAsynchronouslyFromConnectionWithSettingsArrayCompletionHandlerDeprecated.static interfaceAVCaptureStillImageOutput.Block_prepareToCaptureStillImageBracketFromConnectionWithSettingsArrayCompletionHandlerDeprecated.-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVCaptureStillImageOutput(org.moe.natj.general.Pointer peer)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()Deprecated.static AVCaptureStillImageOutputalloc()Deprecated.static AVCaptureStillImageOutputallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)Deprecated.booleanautomaticallyEnablesStillImageStabilizationWhenAvailable()Deprecated.[@property] automaticallyEnablesStillImageStabilizationWhenAvailable Indicates whether the receiver should automatically use still image stabilization when necessary.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)Deprecated.@NotNull NSArray<java.lang.String>availableImageDataCodecTypes()Deprecated.[@property] availableImageDataCodecTypes Indicates the supported image codec formats that can be specified in outputSettings.@NotNull NSArray<? extends NSNumber>availableImageDataCVPixelFormatTypes()Deprecated.[@property] availableImageDataCVPixelFormatTypes Indicates the supported image pixel formats that can be specified in outputSettings.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)Deprecated.static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)Deprecated.voidcaptureStillImageAsynchronouslyFromConnectionCompletionHandler(@NotNull AVCaptureConnection connection, @NotNull AVCaptureStillImageOutput.Block_captureStillImageAsynchronouslyFromConnectionCompletionHandler handler)Deprecated.captureStillImageAsynchronouslyFromConnection:completionHandler: Initiates an asynchronous still image capture, returning the result to a completion handler.voidcaptureStillImageBracketAsynchronouslyFromConnectionWithSettingsArrayCompletionHandler(@NotNull AVCaptureConnection connection, @NotNull NSArray<? extends AVCaptureBracketedStillImageSettings> settings, @NotNull AVCaptureStillImageOutput.Block_captureStillImageBracketAsynchronouslyFromConnectionWithSettingsArrayCompletionHandler handler)Deprecated.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()Deprecated.static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()Deprecated.static java.lang.StringdebugDescription_static()Deprecated.static java.lang.Stringdescription_static()Deprecated.static longhash_static()Deprecated.AVCaptureStillImageOutputinit()Deprecated.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)Deprecated.static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)Deprecated.static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)Deprecated.booleanisCapturingStillImage()Deprecated.[@property] capturingStillImage A boolean value that becomes true when a still image is being captured.booleanisHighResolutionStillImageOutputEnabled()Deprecated.[@property] highResolutionStillImageOutputEnabled Indicates whether the receiver should emit still images at the highest resolution supported by its source AVCaptureDevice's activeFormat.booleanisLensStabilizationDuringBracketedCaptureEnabled()Deprecated.booleanisLensStabilizationDuringBracketedCaptureSupported()Deprecated.booleanisStillImageStabilizationActive()Deprecated.[@property] stillImageStabilizationActive Indicates whether still image stabilization is in use for the current capture.booleanisStillImageStabilizationSupported()Deprecated.[@property] stillImageStabilizationSupported Indicates whether the receiver supports still image stabilization.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)Deprecated.static @Nullable NSDatajpegStillImageNSDataRepresentation(@NotNull CMSampleBufferRef jpegSampleBuffer)Deprecated.jpegStillImageNSDataRepresentation: Converts the still image data and metadata attachments in a JPEG sample buffer to an NSData representation.static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)Deprecated.longmaxBracketedCaptureStillImageCount()Deprecated.static AVCaptureStillImageOutputnew_objc()Deprecated.@NotNull NSDictionary<java.lang.String,?>outputSettings()Deprecated.[@property] outputSettings Specifies the options the receiver uses to encode still images before they are delivered.voidprepareToCaptureStillImageBracketFromConnectionWithSettingsArrayCompletionHandler(@NotNull AVCaptureConnection connection, @NotNull NSArray<? extends AVCaptureBracketedStillImageSettings> settings, @NotNull AVCaptureStillImageOutput.Block_prepareToCaptureStillImageBracketFromConnectionWithSettingsArrayCompletionHandler handler)Deprecated.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)Deprecated.static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)Deprecated.voidsetAutomaticallyEnablesStillImageStabilizationWhenAvailable(boolean value)Deprecated.[@property] automaticallyEnablesStillImageStabilizationWhenAvailable Indicates whether the receiver should automatically use still image stabilization when necessary.voidsetHighResolutionStillImageOutputEnabled(boolean value)Deprecated.[@property] highResolutionStillImageOutputEnabled Indicates whether the receiver should emit still images at the highest resolution supported by its source AVCaptureDevice's activeFormat.voidsetLensStabilizationDuringBracketedCaptureEnabled(boolean value)Deprecated.voidsetOutputSettings(@NotNull NSDictionary<java.lang.String,?> value)Deprecated.[@property] outputSettings Specifies the options the receiver uses to encode still images before they are delivered.static voidsetVersion_static(long aVersion)Deprecated.static org.moe.natj.objc.Classsuperclass_static()Deprecated.static booleanuseStoredAccessor()Deprecated.static longversion_static()Deprecated.-
Methods inherited from class apple.avfoundation.AVCaptureOutput
connections, connectionWithMediaType, metadataOutputRectOfInterestForRect, rectForMetadataOutputRectOfInterest, transformedMetadataObjectForMetadataObjectConnection
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
Deprecated.
-
alloc
public static AVCaptureStillImageOutput alloc()
Deprecated.
-
allocWithZone
public static AVCaptureStillImageOutput allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
Deprecated.
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)Deprecated.
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)Deprecated.
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)Deprecated.
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
Deprecated.
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
Deprecated.
-
debugDescription_static
public static java.lang.String debugDescription_static()
Deprecated.
-
description_static
public static java.lang.String description_static()
Deprecated.
-
hash_static
public static long hash_static()
Deprecated.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
Deprecated.
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
Deprecated.
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
Deprecated.
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
Deprecated.
-
jpegStillImageNSDataRepresentation
@Nullable public static @Nullable NSData jpegStillImageNSDataRepresentation(@NotNull @NotNull CMSampleBufferRef jpegSampleBuffer)
Deprecated.jpegStillImageNSDataRepresentation: Converts the still image data and metadata attachments in a JPEG sample buffer to an NSData representation. This method returns an NSData representation of a JPEG still image sample buffer, merging the image data and Exif metadata sample buffer attachments without recompressing the image. The returned NSData is suitable for writing to disk.- Parameters:
jpegSampleBuffer- The sample buffer carrying JPEG image data, optionally with Exif metadata sample buffer attachments. This method throws an NSInvalidArgumentException if jpegSampleBuffer is NULL or not in the JPEG format.
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
Deprecated.
-
new_objc
public static AVCaptureStillImageOutput new_objc()
Deprecated.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
Deprecated.
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
Deprecated.
-
setVersion_static
public static void setVersion_static(long aVersion)
Deprecated.
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
Deprecated.
-
version_static
public static long version_static()
Deprecated.
-
automaticallyEnablesStillImageStabilizationWhenAvailable
public boolean automaticallyEnablesStillImageStabilizationWhenAvailable()
Deprecated.[@property] automaticallyEnablesStillImageStabilizationWhenAvailable Indicates whether the receiver should automatically use still image stabilization when necessary. On a receiver where -isStillImageStabilizationSupported returns YES, image stabilization may be applied to reduce blur commonly found in low light photos. When stabilization is enabled, still image captures incur additional latency. The default value is YES when supported, NO otherwise. Setting this property throws an NSInvalidArgumentException if -isStillImageStabilizationSupported returns NO. API-Since: 7.0
-
availableImageDataCVPixelFormatTypes
@NotNull public @NotNull NSArray<? extends NSNumber> availableImageDataCVPixelFormatTypes()
Deprecated.[@property] availableImageDataCVPixelFormatTypes Indicates the supported image pixel formats that can be specified in outputSettings. The value of this property is an NSArray of NSNumbers that can be used as values for the kCVPixelBufferPixelFormatTypeKey in the receiver's outputSettings property. The first format in the returned list is the most efficient output format.
-
availableImageDataCodecTypes
@NotNull public @NotNull NSArray<java.lang.String> availableImageDataCodecTypes()
Deprecated.[@property] availableImageDataCodecTypes Indicates the supported image codec formats that can be specified in outputSettings. The value of this property is an NSArray of AVVideoCodecTypes that can be used as values for the AVVideoCodecKey in the receiver's outputSettings property.
-
captureStillImageAsynchronouslyFromConnectionCompletionHandler
public void captureStillImageAsynchronouslyFromConnectionCompletionHandler(@NotNull @NotNull AVCaptureConnection connection, @NotNull @NotNull AVCaptureStillImageOutput.Block_captureStillImageAsynchronouslyFromConnectionCompletionHandler handler)Deprecated.captureStillImageAsynchronouslyFromConnection:completionHandler: Initiates an asynchronous still image capture, returning the result to a completion handler. This method will return immediately after it is invoked, later calling the provided completion handler block when image data is ready. If the request could not be completed, the error parameter will contain an NSError object describing the failure. Attachments to the image data sample buffer may contain metadata appropriate to the image data format. For instance, a sample buffer containing JPEG data may carry a kCGImagePropertyExifDictionary as an attachment. Seefor a list of keys and value types. Clients should not assume that the completion handler will be called on a specific thread. Calls to captureStillImageAsynchronouslyFromConnection:completionHandler: are not synchronized with AVCaptureDevice manual control completion handlers. Setting a device manual control, waiting for its completion, then calling captureStillImageAsynchronouslyFromConnection:completionHandler: DOES NOT ensure that the still image returned reflects your manual control change. It may be from an earlier time. You can compare your manual control completion handler sync time to the returned still image's presentation time. You can retrieve the sample buffer's pts using CMSampleBufferGetPresentationTimestamp(). If the still image has an earlier timestamp, your manual control command does not apply to it. - Parameters:
connection- The AVCaptureConnection object from which to capture the still image.handler- A block that will be called when the still image capture is complete. The block will be passed a CMSampleBuffer object containing the image data or an NSError object if an image could not be captured.
-
captureStillImageBracketAsynchronouslyFromConnectionWithSettingsArrayCompletionHandler
@Deprecated public void captureStillImageBracketAsynchronouslyFromConnectionWithSettingsArrayCompletionHandler(@NotNull @NotNull AVCaptureConnection connection, @NotNull @NotNull NSArray<? extends AVCaptureBracketedStillImageSettings> settings, @NotNull @NotNull AVCaptureStillImageOutput.Block_captureStillImageBracketAsynchronouslyFromConnectionWithSettingsArrayCompletionHandler handler)Deprecated.captureStillImageBracketAsynchronouslyFromConnection:withSettingsArray:completionHandler: Captures a still image bracket. If you have not called -prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler: for this still image bracket request, the bracket may not be taken immediately, as the receiver may internally need to prepare resources. API-Since: 8.0 Deprecated-Since: 10.0 Deprecated-Message: Use AVCapturePhotoOutput capturePhotoWithSettings:delegate: instead.- Parameters:
connection- The connection through which the still image bracket should be captured.settings- An array of AVCaptureBracketedStillImageSettings objects. All must be of the same kind of AVCaptureBracketedStillImageSettings subclass, or an NSInvalidArgumentException is thrown.handler- A user provided block that will be called asynchronously as each still image in the bracket is captured. If the capture request is successful, the "sampleBuffer" parameter contains a valid CMSampleBuffer, the "stillImageSettings" parameter contains the settings object corresponding to this still image, and a nil "error" parameter. If the bracketed capture fails, sample buffer is NULL and error is non-nil. If [settings count] exceeds -maxBracketedCaptureStillImageCount, then AVErrorMaximumStillImageCaptureRequestsExceeded is returned. You should not assume that the completion handler will be called on a specific thread.
-
init
public AVCaptureStillImageOutput init()
Deprecated.- Overrides:
initin classAVCaptureOutput
-
isCapturingStillImage
public boolean isCapturingStillImage()
Deprecated.[@property] capturingStillImage A boolean value that becomes true when a still image is being captured. The value of this property is a BOOL that becomes true when a still image is being captured, and false when no still image capture is underway. This property is key-value observable. API-Since: 5.0
-
isHighResolutionStillImageOutputEnabled
public boolean isHighResolutionStillImageOutputEnabled()
Deprecated.[@property] highResolutionStillImageOutputEnabled Indicates whether the receiver should emit still images at the highest resolution supported by its source AVCaptureDevice's activeFormat. By default, AVCaptureStillImageOutput emits images with the same dimensions as its source AVCaptureDevice's activeFormat.formatDescription. However, if you set this property to YES, the receiver emits still images at its source AVCaptureDevice's activeFormat.highResolutionStillImageDimensions. Note that if you enable video stabilization (see AVCaptureConnection's preferredVideoStabilizationMode) for any output, the high resolution still images emitted by AVCaptureStillImageOutput may be smaller by 10 or more percent. API-Since: 8.0
-
setHighResolutionStillImageOutputEnabled
public void setHighResolutionStillImageOutputEnabled(boolean value)
Deprecated.[@property] highResolutionStillImageOutputEnabled Indicates whether the receiver should emit still images at the highest resolution supported by its source AVCaptureDevice's activeFormat. By default, AVCaptureStillImageOutput emits images with the same dimensions as its source AVCaptureDevice's activeFormat.formatDescription. However, if you set this property to YES, the receiver emits still images at its source AVCaptureDevice's activeFormat.highResolutionStillImageDimensions. Note that if you enable video stabilization (see AVCaptureConnection's preferredVideoStabilizationMode) for any output, the high resolution still images emitted by AVCaptureStillImageOutput may be smaller by 10 or more percent. API-Since: 8.0
-
isLensStabilizationDuringBracketedCaptureEnabled
@Deprecated public boolean isLensStabilizationDuringBracketedCaptureEnabled()
Deprecated.[@property] lensStabilizationDuringBracketedCaptureEnabled Indicates whether the receiver should use lens stabilization during bracketed captures. On a receiver where -isLensStabilizationDuringBracketedCaptureSupported returns YES, lens stabilization may be applied to the bracket to reduce blur commonly found in low light photos. When lens stabilization is enabled, bracketed still image captures incur additional latency. Lens stabilization is more effective with longer-exposure captures, and offers limited or no benefit for exposure durations shorter than 1/30 of a second. It is possible that during the bracket, the lens stabilization module may run out of correction range and therefore will not be active for every frame in the bracket. Each emitted CMSampleBuffer from the bracket will have an attachment of kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo indicating additional information about stabilization was applied to the buffer, if any. The default value of -isLensStabilizationDuringBracketedCaptureEnabled is NO. This value will be set to NO when -isLensStabilizationDuringBracketedCaptureSupported changes to NO. Setting this property throws an NSInvalidArgumentException if -isLensStabilizationDuringBracketedCaptureSupported returns NO. This property is key-value observable. API-Since: 9.0 Deprecated-Since: 10.0 Deprecated-Message: Use AVCapturePhotoOutput with AVCapturePhotoBracketSettings instead.
-
setLensStabilizationDuringBracketedCaptureEnabled
@Deprecated public void setLensStabilizationDuringBracketedCaptureEnabled(boolean value)
Deprecated.[@property] lensStabilizationDuringBracketedCaptureEnabled Indicates whether the receiver should use lens stabilization during bracketed captures. On a receiver where -isLensStabilizationDuringBracketedCaptureSupported returns YES, lens stabilization may be applied to the bracket to reduce blur commonly found in low light photos. When lens stabilization is enabled, bracketed still image captures incur additional latency. Lens stabilization is more effective with longer-exposure captures, and offers limited or no benefit for exposure durations shorter than 1/30 of a second. It is possible that during the bracket, the lens stabilization module may run out of correction range and therefore will not be active for every frame in the bracket. Each emitted CMSampleBuffer from the bracket will have an attachment of kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo indicating additional information about stabilization was applied to the buffer, if any. The default value of -isLensStabilizationDuringBracketedCaptureEnabled is NO. This value will be set to NO when -isLensStabilizationDuringBracketedCaptureSupported changes to NO. Setting this property throws an NSInvalidArgumentException if -isLensStabilizationDuringBracketedCaptureSupported returns NO. This property is key-value observable. API-Since: 9.0 Deprecated-Since: 10.0 Deprecated-Message: Use AVCapturePhotoOutput with AVCapturePhotoBracketSettings instead.
-
isLensStabilizationDuringBracketedCaptureSupported
@Deprecated public boolean isLensStabilizationDuringBracketedCaptureSupported()
Deprecated.[@property] lensStabilizationDuringBracketedCaptureSupported Indicates whether the receiver supports lens stabilization during bracketed captures. The receiver's lensStabilizationDuringBracketedCaptureEnabled property can only be set if this property returns YES. Its value may change as the session's -sessionPreset or input device's -activeFormat changes. This read-only property is key-value observable. API-Since: 9.0 Deprecated-Since: 10.0 Deprecated-Message: Use AVCapturePhotoOutput lensStabilizationDuringBracketedCaptureSupported instead.
-
isStillImageStabilizationActive
public boolean isStillImageStabilizationActive()
Deprecated.[@property] stillImageStabilizationActive Indicates whether still image stabilization is in use for the current capture. On a receiver where -isStillImageStabilizationSupported returns YES, and automaticallyEnablesStillImageStabilizationWhenAvailable is set to YES, this property may be key-value observed, or queried from inside your key-value observation callback for the @"capturingStillImage" property, to find out if still image stabilization is being applied to the current capture. API-Since: 7.0
-
isStillImageStabilizationSupported
public boolean isStillImageStabilizationSupported()
Deprecated.[@property] stillImageStabilizationSupported Indicates whether the receiver supports still image stabilization. The receiver's automaticallyEnablesStillImageStabilizationWhenAvailable property can only be set if this property returns YES. Its value may change as the session's -sessionPreset or input device's -activeFormat changes. API-Since: 7.0
-
maxBracketedCaptureStillImageCount
@Deprecated public long maxBracketedCaptureStillImageCount()
Deprecated.[@property] maxBracketedCaptureStillImageCount Specifies the maximum number of still images that may be taken in a single bracket. AVCaptureStillImageOutput can only satisfy a limited number of image requests in a single bracket without exhausting system resources. The maximum number of still images that may be taken in a single bracket depends on the size of the images being captured, and consequently may vary with AVCaptureSession -sessionPreset and AVCaptureDevice -activeFormat. Some formats do not support bracketed capture and return a maxBracketedCaptureStillImageCount of 0. This read-only property is key-value observable. If you exceed -maxBracketedCaptureStillImageCount, then -captureStillImageBracketAsynchronouslyFromConnection:withSettingsArray:completionHandler: fails and the completionHandler is called [settings count] times with a NULL sample buffer and AVErrorMaximumStillImageCaptureRequestsExceeded. API-Since: 8.0 Deprecated-Since: 10.0 Deprecated-Message: Use AVCapturePhotoOutput maxBracketedCapturePhotoCount instead.
-
outputSettings
@NotNull public @NotNull NSDictionary<java.lang.String,?> outputSettings()
Deprecated.[@property] outputSettings Specifies the options the receiver uses to encode still images before they are delivered. See AVVideoSettings.h for more information on how to construct an output settings dictionary. On iOS, the only currently supported keys are AVVideoCodecKey and kCVPixelBufferPixelFormatTypeKey. Use -availableImageDataCVPixelFormatTypes and -availableImageDataCodecTypes to determine what codec keys and pixel formats are supported. AVVideoQualityKey is supported on iOS 6.0 and later and may only be used when AVVideoCodecKey is set to AVVideoCodecTypeJPEG.
-
prepareToCaptureStillImageBracketFromConnectionWithSettingsArrayCompletionHandler
@Deprecated public void prepareToCaptureStillImageBracketFromConnectionWithSettingsArrayCompletionHandler(@NotNull @NotNull AVCaptureConnection connection, @NotNull @NotNull NSArray<? extends AVCaptureBracketedStillImageSettings> settings, @NotNull @NotNull AVCaptureStillImageOutput.Block_prepareToCaptureStillImageBracketFromConnectionWithSettingsArrayCompletionHandler handler)Deprecated.prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler: Allows the receiver to prepare resources in advance of capturing a still image bracket. -maxBracketedCaptureStillImageCount tells you the maximum number of images that may be taken in a single bracket given the current AVCaptureDevice/AVCaptureSession/AVCaptureStillImageOutput configuration. But before taking a still image bracket, additional resources may need to be allocated. By calling -prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler: first, you are able to deterministically know when the receiver is ready to capture the bracket with the specified settings array. API-Since: 8.0 Deprecated-Since: 10.0 Deprecated-Message: Use AVCapturePhotoOutput setPreparedPhotoSettingsArray:completionHandler: instead.- Parameters:
connection- The connection through which the still image bracket should be captured.settings- An array of AVCaptureBracketedStillImageSettings objects. All must be of the same kind of AVCaptureBracketedStillImageSettings subclass, or an NSInvalidArgumentException is thrown.handler- A user provided block that will be called asynchronously once resources have successfully been allocated for the specified bracketed capture operation. If sufficient resources could not be allocated, the "prepared" parameter contains NO, and "error" parameter contains a non-nil error value. If [settings count] exceeds -maxBracketedCaptureStillImageCount, then AVErrorMaximumStillImageCaptureRequestsExceeded is returned. You should not assume that the completion handler will be called on a specific thread.
-
setAutomaticallyEnablesStillImageStabilizationWhenAvailable
public void setAutomaticallyEnablesStillImageStabilizationWhenAvailable(boolean value)
Deprecated.[@property] automaticallyEnablesStillImageStabilizationWhenAvailable Indicates whether the receiver should automatically use still image stabilization when necessary. On a receiver where -isStillImageStabilizationSupported returns YES, image stabilization may be applied to reduce blur commonly found in low light photos. When stabilization is enabled, still image captures incur additional latency. The default value is YES when supported, NO otherwise. Setting this property throws an NSInvalidArgumentException if -isStillImageStabilizationSupported returns NO. API-Since: 7.0
-
setOutputSettings
public void setOutputSettings(@NotNull @NotNull NSDictionary<java.lang.String,?> value)Deprecated.[@property] outputSettings Specifies the options the receiver uses to encode still images before they are delivered. See AVVideoSettings.h for more information on how to construct an output settings dictionary. On iOS, the only currently supported keys are AVVideoCodecKey and kCVPixelBufferPixelFormatTypeKey. Use -availableImageDataCVPixelFormatTypes and -availableImageDataCodecTypes to determine what codec keys and pixel formats are supported. AVVideoQualityKey is supported on iOS 6.0 and later and may only be used when AVVideoCodecKey is set to AVVideoCodecTypeJPEG.
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-