Add V4L2_PIX_FMT_RGB24 pixel format support
This is the format used by the gxp v4l2 driver.
Change-Id: Ia78e39b95f1cdffa2df111d1f1af4cb9c290cc9f
Signed-off-by: charles kearney <charles.kearney@hpe.com>
diff --git a/ikvm_video.hpp b/ikvm_video.hpp
index 17477df..449f57e 100644
--- a/ikvm_video.hpp
+++ b/ikvm_video.hpp
@@ -85,6 +85,14 @@
return height;
}
/*
+ * @brief Gets the pixel format of the video frame
+ *
+ * @return Value of the pixel format of video frame */
+ inline uint32_t getPixelformat() const
+ {
+ return pixelformat;
+ }
+ /*
* @brief Gets the width of the video frame
*
* @return Value of the width of video frame in pixels
@@ -166,6 +174,9 @@
const std::string path;
/* @brief Streaming buffer storage */
std::vector<Buffer> buffers;
+
+ /* @brief Pixel Format */
+ uint32_t pixelformat;
};
} // namespace ikvm