From 9e8011a0ab84c8ed88a2d6c47b663fcb1bf44cd9 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Wed, 9 Oct 2024 12:45:08 +0200 Subject: [PATCH] Fix `cargo t --all-features --all` (#7655) Broken on `main` because of new doc comments that cargo-doc erroneously tries to interpret as something they're not: ![image](https://github.com/user-attachments/assets/f0a6a18f-d820-4414-8c4e-f95793e77c5f) --- .../re_renderer/src/resource_managers/yuv_converter.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/viewer/re_renderer/src/resource_managers/yuv_converter.rs b/crates/viewer/re_renderer/src/resource_managers/yuv_converter.rs index d42854e8801f..a72a632e51ce 100644 --- a/crates/viewer/re_renderer/src/resource_managers/yuv_converter.rs +++ b/crates/viewer/re_renderer/src/resource_managers/yuv_converter.rs @@ -26,6 +26,7 @@ pub enum YuvPixelLayout { /// First comes entire image in Y in one plane, /// followed by a plane with interleaved lines ordered as U0, V0, U1, V1, etc. /// + /// ```text /// width /// __________ /// | | @@ -34,6 +35,7 @@ pub enum YuvPixelLayout { /// |_________| /// height/2 | U,V,U,… | /// |_________| + /// ``` Y_UV12 = 0, /// YUV 4:2:2 subsampling, single plane. @@ -42,12 +44,13 @@ pub enum YuvPixelLayout { /// /// The order of the channels is Y0, U0, Y1, V0, all in the same plane. /// + /// ```text /// width * 2 /// __________________ /// | | /// height | Y0, U0, Y1, V0… | /// |_________________| - /// + /// ``` YUYV16 = 1, }