Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHLivePhotoEditingContextMBS class.

PHLivePhotoEditingContextMBS.FrameProcessorMBS(frame as PHLivePhotoFrameMBS, byref error as NSErrorMBS, tag as Variant) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
delegate Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The delegate for a block Photos calls to process Live Photo frames.

Result of delegate method must be a CIImageMBS object.

To apply edits to a Live Photo, define a block with this signature and assign it to the frameProcessor property of a Live Photo editing context. Then call the initWithLivePhotoEditingInput: to prepare a preview-quality version of your edits for display, or the saveLivePhotoToOutput method to produce full-quality final output. When you call one of those methods, Photos calls your frame processor block repeatedly—processing each frame of the Live Photo’s video content as well as its still photo content—to render the output.

This delegates takes the following parameters:

frame: A PHLivePhotoFrameMBS object describing the frame image to be processed.
error: If your delegate cannot successfully process the frame, set this to an error object describing the failure.

Your block should return a CIImageMBS object representing the result of your edits, or nil to indicate that your image processing has failed and the Live Photo edit should be aborted. Use the frame parameter’s image property to access the image to be edited.

Some methods using this delegate:

The items on this page are in the following plugins: MBS Mac64bit Plugin.

The biggest plugin in space...