Flutter Engine
 
Loading...
Searching...
No Matches
FlutterMetalExternalTexture Struct Reference

#include <embedder.h>

Public Attributes

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

Detailed Description

Definition at line 820 of file embedder.h.

Member Data Documentation

◆ height

size_t FlutterMetalExternalTexture::height

Height of the texture.

Definition at line 826 of file embedder.h.

Referenced by flutter::testing::TEST_F().

◆ num_textures

size_t FlutterMetalExternalTexture::num_textures

Represents the size of the textures array.

Definition at line 830 of file embedder.h.

Referenced by flutter::testing::TEST_F().

◆ pixel_format

FlutterMetalExternalTexturePixelFormat FlutterMetalExternalTexture::pixel_format

The pixel format type of the external.

Definition at line 828 of file embedder.h.

Referenced by flutter::testing::TEST_F().

◆ struct_size

size_t FlutterMetalExternalTexture::struct_size

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

Definition at line 822 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 839 of file embedder.h.

Referenced by flutter::testing::TEST_F().

◆ width

size_t FlutterMetalExternalTexture::width

Height of the texture.

Definition at line 824 of file embedder.h.

Referenced by flutter::testing::TEST_F().

◆ yuv_color_space

FlutterMetalExternalTextureYUVColorSpace FlutterMetalExternalTexture::yuv_color_space

The YUV color space of the YUV external texture.

Definition at line 841 of file embedder.h.


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