Skip to content

Consider specifying correct YUV color space for iOS YUV external textures #113256

@ColdPaleLight

Description

@ColdPaleLight

In the current implementation, both kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange and kCVPixelFormatType_420YpCbCr8BiPlanarFullRange correspond to kRec601_SkYUVColorSpace (aka kRec601_Limited_SkYUVColorSpace).

c.f.
https://github.com/flutter/engine/blob/1a9e7faf84bdbb6e74370930c81425a8841cbe4c/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.mm#L251

We need to treat them differently, let kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange correspond to kRec601_Limited_SkYUVColorSpace, and kCVPixelFormatType_420YpCbCr8BiPlanarFullRange correspond to kJPEG_Full_SkYUVColorSpace

Metadata

Metadata

Assignees

Labels

engineflutter/engine related. See also e: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions