Files
electron/docs/api/structures/shared-texture-import-texture-info.md
trop[bot] 4117805904 feat: import shared texture supports nv16 (#51187)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: David Franco <david@metrica-sports.com>
2026-04-23 10:12:49 +02:00

990 B

SharedTextureImportTextureInfo Object

  • pixelFormat string - The pixel format of the texture.
    • bgra - 32bpp BGRA (byte-order), 1 plane.
    • rgba - 32bpp RGBA (byte-order), 1 plane.
    • rgbaf16 - Half float RGBA, 1 plane.
    • nv12 - 12bpp with Y plane followed by a 2x2 interleaved UV plane.
    • nv16 - 16bpp with Y plane followed by a 2x1 interleaved UV plane.
    • p010le - 4:2:0 10-bit YUV (little-endian), Y plane followed by a 2x2 interleaved UV plane.
  • colorSpace ColorSpace (optional) - The color space of the texture.
  • codedSize Size - The full dimensions of the shared texture.
  • visibleRect Rectangle (optional) - A subsection of [0, 0, codedSize.width, codedSize.height]. In common cases, it is the full section area.
  • timestamp number (optional) - A timestamp in microseconds that will be reflected to VideoFrame.
  • handle SharedTextureHandle - The shared texture handle.