From a95e4e039bc7159572f9dd3297a2cb7cdad7389b Mon Sep 17 00:00:00 2001 From: Sam Nosenzo Date: Mon, 22 Jul 2024 20:08:27 +0200 Subject: [PATCH] Update RawImage schema with endianness (#153) ### Changelog - specify that `16UC1` and `32FC1` are interpreted as little endian ### Docs ### Description Specify that `16UC1` and `32FC1` are interpreted as little endian
BeforeAfter
FG-8171 --- internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap | 2 +- internal/schemas.ts | 2 +- ros_foxglove_msgs/ros1/RawImage.msg | 2 +- ros_foxglove_msgs/ros2/RawImage.msg | 2 +- schemas/README.md | 2 +- schemas/flatbuffer/RawImage.fbs | 2 +- schemas/jsonschema/RawImage.json | 2 +- schemas/jsonschema/index.ts | 2 +- schemas/omgidl/foxglove/RawImage.idl | 2 +- schemas/proto/foxglove/RawImage.proto | 2 +- schemas/ros1/RawImage.msg | 2 +- schemas/ros2/RawImage.msg | 2 +- schemas/typescript/RawImage.ts | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap b/internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap index ab59183..bba4d9f 100644 --- a/internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap +++ b/internal/__snapshots__/exportTypeScriptSchemas.test.ts.snap @@ -821,7 +821,7 @@ export type RawImage = { /** * Encoding of the raw image data * - * Supported values: \`8UC1\`, \`8UC3\`, \`16UC1\`, \`32FC1\`, \`bayer_bggr8\`, \`bayer_gbrg8\`, \`bayer_grbg8\`, \`bayer_rggb8\`, \`bgr8\`, \`bgra8\`, \`mono8\`, \`mono16\`, \`rgb8\`, \`rgba8\`, \`uyvy\` or \`yuv422\`, \`yuyv\` or \`yuv422_yuy2\` + * Supported values: \`8UC1\`, \`8UC3\`, \`16UC1\` (little endian), \`32FC1\` (little endian), \`bayer_bggr8\`, \`bayer_gbrg8\`, \`bayer_grbg8\`, \`bayer_rggb8\`, \`bgr8\`, \`bgra8\`, \`mono8\`, \`mono16\`, \`rgb8\`, \`rgba8\`, \`uyvy\` or \`yuv422\`, \`yuyv\` or \`yuv422_yuy2\` */ encoding: string; diff --git a/internal/schemas.ts b/internal/schemas.ts index 0e84393..24ba5cf 100644 --- a/internal/schemas.ts +++ b/internal/schemas.ts @@ -852,7 +852,7 @@ const RawImage: FoxgloveMessageSchema = { name: "encoding", type: { type: "primitive", name: "string" }, description: - "Encoding of the raw image data\n\nSupported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2`", + "Encoding of the raw image data\n\nSupported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2`", }, { name: "step", diff --git a/ros_foxglove_msgs/ros1/RawImage.msg b/ros_foxglove_msgs/ros1/RawImage.msg index f7b26a2..8b88ca4 100644 --- a/ros_foxglove_msgs/ros1/RawImage.msg +++ b/ros_foxglove_msgs/ros1/RawImage.msg @@ -17,7 +17,7 @@ uint32 height # Encoding of the raw image data # -# Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` +# Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` string encoding # Byte length of a single row diff --git a/ros_foxglove_msgs/ros2/RawImage.msg b/ros_foxglove_msgs/ros2/RawImage.msg index bc4970a..f9e375d 100644 --- a/ros_foxglove_msgs/ros2/RawImage.msg +++ b/ros_foxglove_msgs/ros2/RawImage.msg @@ -17,7 +17,7 @@ uint32 height # Encoding of the raw image data # -# Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` +# Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` string encoding # Byte length of a single row diff --git a/schemas/README.md b/schemas/README.md index 984d50e..1db6add 100644 --- a/schemas/README.md +++ b/schemas/README.md @@ -2287,7 +2287,7 @@ string Encoding of the raw image data -Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` +Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` diff --git a/schemas/flatbuffer/RawImage.fbs b/schemas/flatbuffer/RawImage.fbs index e1e1e21..c9619b4 100644 --- a/schemas/flatbuffer/RawImage.fbs +++ b/schemas/flatbuffer/RawImage.fbs @@ -20,7 +20,7 @@ table RawImage { /// Encoding of the raw image data /// - /// Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` + /// Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` encoding:string (id: 4); /// Byte length of a single row diff --git a/schemas/jsonschema/RawImage.json b/schemas/jsonschema/RawImage.json index 48d5089..b485e2a 100644 --- a/schemas/jsonschema/RawImage.json +++ b/schemas/jsonschema/RawImage.json @@ -36,7 +36,7 @@ }, "encoding": { "type": "string", - "description": "Encoding of the raw image data\n\nSupported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2`" + "description": "Encoding of the raw image data\n\nSupported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2`" }, "step": { "type": "integer", diff --git a/schemas/jsonschema/index.ts b/schemas/jsonschema/index.ts index 7a03bd1..1e5f733 100644 --- a/schemas/jsonschema/index.ts +++ b/schemas/jsonschema/index.ts @@ -4628,7 +4628,7 @@ export const RawImage = { }, "encoding": { "type": "string", - "description": "Encoding of the raw image data\n\nSupported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2`" + "description": "Encoding of the raw image data\n\nSupported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2`" }, "step": { "type": "integer", diff --git a/schemas/omgidl/foxglove/RawImage.idl b/schemas/omgidl/foxglove/RawImage.idl index 910cde3..b768da4 100644 --- a/schemas/omgidl/foxglove/RawImage.idl +++ b/schemas/omgidl/foxglove/RawImage.idl @@ -20,7 +20,7 @@ struct RawImage { // Encoding of the raw image data // - // Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` + // Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` string encoding; // Byte length of a single row diff --git a/schemas/proto/foxglove/RawImage.proto b/schemas/proto/foxglove/RawImage.proto index 155075d..a852c94 100644 --- a/schemas/proto/foxglove/RawImage.proto +++ b/schemas/proto/foxglove/RawImage.proto @@ -22,7 +22,7 @@ message RawImage { // Encoding of the raw image data // - // Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` + // Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` string encoding = 4; // Byte length of a single row diff --git a/schemas/ros1/RawImage.msg b/schemas/ros1/RawImage.msg index f7b26a2..8b88ca4 100644 --- a/schemas/ros1/RawImage.msg +++ b/schemas/ros1/RawImage.msg @@ -17,7 +17,7 @@ uint32 height # Encoding of the raw image data # -# Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` +# Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` string encoding # Byte length of a single row diff --git a/schemas/ros2/RawImage.msg b/schemas/ros2/RawImage.msg index bc4970a..f9e375d 100644 --- a/schemas/ros2/RawImage.msg +++ b/schemas/ros2/RawImage.msg @@ -17,7 +17,7 @@ uint32 height # Encoding of the raw image data # -# Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` +# Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` string encoding # Byte length of a single row diff --git a/schemas/typescript/RawImage.ts b/schemas/typescript/RawImage.ts index 32b5a56..7bd8ff6 100644 --- a/schemas/typescript/RawImage.ts +++ b/schemas/typescript/RawImage.ts @@ -20,7 +20,7 @@ export type RawImage = { /** * Encoding of the raw image data * - * Supported values: `8UC1`, `8UC3`, `16UC1`, `32FC1`, `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` + * Supported values: `8UC1`, `8UC3`, `16UC1` (little endian), `32FC1` (little endian), `bayer_bggr8`, `bayer_gbrg8`, `bayer_grbg8`, `bayer_rggb8`, `bgr8`, `bgra8`, `mono8`, `mono16`, `rgb8`, `rgba8`, `uyvy` or `yuv422`, `yuyv` or `yuv422_yuy2` */ encoding: string;