cc_library_shared {
name: "camera.device@3.2-impl.samsung",
- defaults: ["hidl_defaults"],
+ defaults: [
+ "hidl_defaults",
+ "samsung_camera3_defaults",
+ ],
proprietary: true,
srcs: [
"CameraDevice.cpp",
cc_library_shared {
name: "camera.device@3.3-impl.samsung",
- defaults: ["hidl_defaults"],
+ defaults: [
+ "hidl_defaults",
+ "samsung_camera3_defaults",
+ ],
proprietary: true,
srcs: [
"CameraDevice.cpp",
cc_library_shared {
name: "camera.device@3.4-impl.samsung",
- defaults: ["hidl_defaults"],
+ defaults: [
+ "hidl_defaults",
+ "samsung_camera3_defaults",
+ ],
proprietary: true,
vendor: true,
srcs: [
cc_library_shared {
name: "camera.device@3.5-impl.samsung",
- defaults: ["hidl_defaults"],
+ defaults: [
+ "hidl_defaults",
+ "samsung_camera3_defaults",
+ ],
proprietary: true,
vendor: true,
srcs: [
+soong_config_module_type {
+ name: "samsung_camera3",
+ module_type: "cc_defaults",
+ config_namespace: "samsungCameraVars",
+ bool_variables: [
+ "needs_sec_reserved_field",
+ "usage_64bit",
+ ],
+ properties: ["cflags"],
+}
+
+samsung_camera3 {
+ name: "samsung_camera3_defaults",
+ soong_config_variables: {
+ needs_sec_reserved_field: {
+ cflags: ["-DCAMERA_NEEDS_SEC_RESERVED_FIELD"],
+ },
+ usage_64bit: {
+ cflags: ["-DCAMERA_64BIT_USAGE"],
+ },
+ },
+}
+
cc_library_headers {
name: "libhardware_headers.camera3_samsung",
export_include_dirs: ["include"],
* supported due to imcompatible buffer format, dataSpace, or other hardware
* limitations.
*/
+#ifdef CAMERA_64BIT_USAGE
uint64_t usage;
+#else
+ uint32_t usage;
+#endif
/**
* The maximum number of buffers the HAL device may need to have dequeued at
/* reserved for future use */
void *reserved[6];
+#ifdef CAMERA_NEEDS_SEC_RESERVED_FIELD
+ char reserved_sec[0x28];
+#endif
+
} camera3_stream_t;
/**