Flutter Engine
The Flutter Engine
Public Attributes | List of all members
FlutterMetalExternalTexture Struct Reference

#include <embedder.h>

Public Attributes

size_t struct_size
 The size of this struct. Must be sizeof(FlutterMetalExternalTexture). More...
 
size_t width
 Height of the texture. More...
 
size_t height
 Height of the texture. More...
 
FlutterMetalExternalTexturePixelFormat pixel_format
 The pixel format type of the external. More...
 
size_t num_textures
 Represents the size of the textures array. More...
 
FlutterMetalTextureHandletextures
 
FlutterMetalExternalTextureYUVColorSpace yuv_color_space
 The YUV color space of the YUV external texture. More...
 

Detailed Description

Definition at line 616 of file embedder.h.

Member Data Documentation

◆ height

size_t FlutterMetalExternalTexture::height

Height of the texture.

Definition at line 622 of file embedder.h.

◆ num_textures

size_t FlutterMetalExternalTexture::num_textures

Represents the size of the textures array.

Definition at line 626 of file embedder.h.

◆ pixel_format

FlutterMetalExternalTexturePixelFormat FlutterMetalExternalTexture::pixel_format

The pixel format type of the external.

Definition at line 624 of file embedder.h.

◆ struct_size

size_t FlutterMetalExternalTexture::struct_size

The size of this struct. Must be sizeof(FlutterMetalExternalTexture).

Definition at line 618 of file embedder.h.

◆ textures

FlutterMetalTextureHandle* FlutterMetalExternalTexture::textures

Supported textures are YUVA and RGBA, in case of YUVA we expect 2 texture handles to be provided by the embedder, Y first and UV next. In case of RGBA only one should be passed. These are individually aliases for id<MTLTexture>. These textures are retained by the engine for the period of the composition. Once these textures have been unregistered via the FlutterEngineUnregisterExternalTexture, the embedder has to release these textures.

Definition at line 635 of file embedder.h.

◆ width

size_t FlutterMetalExternalTexture::width

Height of the texture.

Definition at line 620 of file embedder.h.

◆ yuv_color_space

FlutterMetalExternalTextureYUVColorSpace FlutterMetalExternalTexture::yuv_color_space

The YUV color space of the YUV external texture.

Definition at line 637 of file embedder.h.


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