liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
android/hardware/aw/camera/3_4/stream_format.h
....@@ -37,7 +37,7 @@
3737 class StreamFormat {
3838 public:
3939 StreamFormat(int format, uint32_t width, uint32_t height);
40
- explicit StreamFormat(const v4l2_format& format);
40
+ StreamFormat(const v4l2_format& format, bool mergeStreamFlag);
4141 virtual ~StreamFormat() = default;
4242 // Only uint32_t members, use default generated copy and assign.
4343
....@@ -60,6 +60,7 @@
6060 static uint32_t HalToV4L2PixelFormat(int hal_pixel_format);
6161 // Returns -1 for unrecognized.
6262 static int V4L2ToHalPixelFormat(uint32_t v4l2_pixel_format);
63
+ bool GetMergeStreamFlag();
6364
6465 private:
6566 uint32_t type_;
....@@ -69,6 +70,7 @@
6970 uint32_t width_;
7071 uint32_t height_;
7172 uint32_t bytes_per_line_;
73
+ bool merge_stream_flag_;
7274 };
7375
7476 } // namespace v4l2_camera_hal