Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | List of all members
<FlutterTexture> Protocol Reference

#include <FlutterTexture.h>

Inheritance diagram for <FlutterTexture>:
FlutterScenarioTestTexture TestExternalTexture

Instance Methods

(CVPixelBufferRef _Nullable) - copyPixelBuffer
 
(void) - onTextureUnregistered:
 

Detailed Description

Represents a texture that can be shared with Flutter.

See also: https://github.com/flutter/plugins/tree/master/packages/camera

Definition at line 21 of file FlutterTexture.h.

Method Documentation

◆ copyPixelBuffer

- (CVPixelBufferRef _Nullable) copyPixelBuffer

Copy the contents of the texture into a CVPixelBuffer.

The type of the pixel buffer is one of the following:

  • kCVPixelFormatType_32BGRA
  • kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
  • kCVPixelFormatType_420YpCbCr8BiPlanarFullRange

Reimplemented in TestExternalTexture, and FlutterScenarioTestTexture.

◆ onTextureUnregistered:

- (void) onTextureUnregistered: (NSObject< FlutterTexture > *)  texture
optional

Called when the texture is unregistered.

Called on the raster thread.


The documentation for this protocol was generated from the following file: