liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
android/hardware/aw/camera/3_4/stream_format.cpp
....@@ -35,7 +35,7 @@
3535 // because the drivers return this one.
3636 bytes_per_line_(width) {}
3737
38
-StreamFormat::StreamFormat(const v4l2_format& format)
38
+StreamFormat::StreamFormat(const v4l2_format& format, bool mergeStreamFlag)
3939 // be compatibility with multiplanar and single planar.
4040 : type_(format.type),
4141 memory_(V4L2_MEMORY_MMAP),
....@@ -44,7 +44,8 @@
4444 v4l2_pixel_format_(format.fmt.pix_mp.pixelformat),
4545 width_(format.fmt.pix_mp.width),
4646 height_(format.fmt.pix_mp.height),
47
- bytes_per_line_(format.fmt.pix_mp.width) {}
47
+ bytes_per_line_(format.fmt.pix_mp.width),
48
+ merge_stream_flag_(mergeStreamFlag){}
4849
4950 void StreamFormat::FillFormatRequest(v4l2_format* format) const {
5051 memset(format, 0, sizeof(*format));
....@@ -164,4 +165,8 @@
164165 return v4l2_pixel_format;
165166 }
166167
168
+bool StreamFormat::GetMergeStreamFlag() {
169
+ return merge_stream_flag_;
170
+}
171
+
167172 } // namespace v4l2_camera_hal