From 3e4bed66b0bf716c821b2a62eca2ad79f6a51f0d Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 23 Oct 2023 20:32:33 +0200 Subject: [PATCH] render: disable nv12 support --- src/format.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/format.rs b/src/format.rs index 1d1f9bd0..80523b8e 100644 --- a/src/format.rs +++ b/src/format.rs @@ -3,7 +3,7 @@ use { gfx_apis::gl::sys::{GLint, GL_BGRA_EXT, GL_RGBA, GL_UNSIGNED_BYTE}, pipewire::pw_pod::{ SPA_VIDEO_FORMAT_BGRx, SPA_VIDEO_FORMAT_RGBx, SpaVideoFormat, SPA_VIDEO_FORMAT_BGRA, - SPA_VIDEO_FORMAT_NV12, SPA_VIDEO_FORMAT_RGBA, + SPA_VIDEO_FORMAT_RGBA, }, utils::debug_fn::debug_fn, }, @@ -132,18 +132,18 @@ pub static FORMATS: &[Format] = &[ shm_supported: true, pipewire: SPA_VIDEO_FORMAT_RGBx, }, - Format { - name: "nv12", - bpp: 1, // wrong but only used for shm - gl_format: 0, // wrong but only used for shm - gl_type: GL_UNSIGNED_BYTE, // wrong but only used for shm - drm: fourcc_code('N', 'V', '1', '2'), - wl_id: None, - external_only_guess: true, - has_alpha: false, - shm_supported: false, - pipewire: SPA_VIDEO_FORMAT_NV12, - }, + // Format { + // name: "nv12", + // bpp: 1, // wrong but only used for shm + // gl_format: 0, // wrong but only used for shm + // gl_type: GL_UNSIGNED_BYTE, // wrong but only used for shm + // drm: fourcc_code('N', 'V', '1', '2'), + // wl_id: None, + // external_only_guess: true, + // has_alpha: false, + // shm_supported: false, + // pipewire: SPA_VIDEO_FORMAT_NV12, + // }, // Format { // id: fourcc_code('C', '8', ' ', ' '), // name: "c8",