hidl: camera: Add camera common helper

* Thus allowing device-specific mods in camera_common.h

Change-Id: I3bc89819440f1221fd5a03549971039797a7973e
urubino
Christian Hoffmann 9 months ago committed by Łukasz Patron
parent 172f947c17
commit 2c901ee1ad
  1. 43
      hidl/camera/default/Android.bp
  2. 1
      hidl/camera/default/CameraMetadata.cpp
  3. 1
      hidl/camera/default/CameraModule.cpp
  4. 1
      hidl/camera/default/CameraParameters.cpp
  5. 1
      hidl/camera/default/Exif.cpp
  6. 1
      hidl/camera/default/HandleImporter.cpp
  7. 1
      hidl/camera/default/SimpleThread.cpp
  8. 1
      hidl/camera/default/VendorTagDescriptor.cpp
  9. 1
      hidl/camera/default/include
  10. 2
      hidl/camera/device/3.2/default/Android.bp
  11. 2
      hidl/camera/device/3.3/default/Android.bp
  12. 2
      hidl/camera/device/3.4/default/Android.bp
  13. 2
      hidl/camera/device/3.5/default/Android.bp
  14. 1
      hidl/camera/libhardware_headers/include/hardware/camera.h
  15. 2
      hidl/camera/libhardware_headers/include/hardware/camera3.h
  16. 1217
      hidl/camera/libhardware_headers/include/hardware/camera_common.h
  17. 3
      hidl/camera/provider/2.4/Android.bp
  18. 8
      hidl/camera/provider/2.5/Android.bp

@ -0,0 +1,43 @@
cc_library_static {
name: "android.hardware.camera.common-helper.samsung",
vendor_available: true,
defaults: [
"hidl_defaults",
"samsung_camera3_defaults",
],
srcs: [
"CameraModule.cpp",
"CameraMetadata.cpp",
"CameraParameters.cpp",
"VendorTagDescriptor.cpp",
"HandleImporter.cpp",
"Exif.cpp",
"SimpleThread.cpp",
],
cflags: [
"-Werror",
"-Wextra",
"-Wall",
],
shared_libs: [
"liblog",
"libgralloctypes",
"libhardware",
"libcamera_metadata",
"android.hardware.graphics.mapper@2.0",
"android.hardware.graphics.mapper@3.0",
"android.hardware.graphics.mapper@4.0",
"libexif",
],
include_dirs: ["system/media/private/camera/include"],
header_libs: ["libhardware_headers.camera3_samsung"],
export_include_dirs: ["include"],
}
// NOTE: Deprecated module kept for compatibility reasons.
// Depend on "android.hardware.camera.common-helper.samsung" instead
cc_library_static {
name: "android.hardware.camera.common@1.0-helper.samsung",
vendor_available: true,
whole_static_libs: ["android.hardware.camera.common-helper.samsung"],
}

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/CameraMetadata.cpp

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/CameraModule.cpp

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/CameraParameters.cpp

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/Exif.cpp

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/HandleImporter.cpp

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/SimpleThread.cpp

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/VendorTagDescriptor.cpp

@ -0,0 +1 @@
../../../../../hardware/interfaces/camera/common/default/include/

@ -26,7 +26,7 @@ cc_library_shared {
"libfmq", "libfmq",
], ],
static_libs: [ static_libs: [
"android.hardware.camera.common@1.0-helper", "android.hardware.camera.common@1.0-helper.samsung",
], ],
header_libs: ["libhardware_headers.camera3_samsung"], header_libs: ["libhardware_headers.camera3_samsung"],
export_include_dirs: ["."], export_include_dirs: ["."],

@ -28,7 +28,7 @@ cc_library_shared {
"libfmq", "libfmq",
], ],
static_libs: [ static_libs: [
"android.hardware.camera.common@1.0-helper", "android.hardware.camera.common@1.0-helper.samsung",
], ],
header_libs: ["libhardware_headers.camera3_samsung"], header_libs: ["libhardware_headers.camera3_samsung"],
export_include_dirs: ["."], export_include_dirs: ["."],

@ -47,7 +47,7 @@ cc_library_shared {
"libfmq", "libfmq",
], ],
static_libs: [ static_libs: [
"android.hardware.camera.common@1.0-helper", "android.hardware.camera.common@1.0-helper.samsung",
], ],
header_libs: ["libhardware_headers.camera3_samsung"], header_libs: ["libhardware_headers.camera3_samsung"],
local_include_dirs: ["include/device_v3_4_impl"], local_include_dirs: ["include/device_v3_4_impl"],

@ -47,7 +47,7 @@ cc_library_shared {
"libcamera_metadata", "libcamera_metadata",
], ],
static_libs: [ static_libs: [
"android.hardware.camera.common@1.0-helper", "android.hardware.camera.common@1.0-helper.samsung",
], ],
header_libs: ["libhardware_headers.camera3_samsung"], header_libs: ["libhardware_headers.camera3_samsung"],
local_include_dirs: ["include/device_v3_5_impl"], local_include_dirs: ["include/device_v3_5_impl"],

@ -0,0 +1 @@
../../../../../../../hardware/libhardware/include/hardware/camera.h

@ -18,7 +18,7 @@
#define ANDROID_INCLUDE_CAMERA3_H #define ANDROID_INCLUDE_CAMERA3_H
#include <system/camera_metadata.h> #include <system/camera_metadata.h>
#include <hardware/camera_common.h> #include "camera_common.h"
/** /**
* Camera device HAL 3.6[ CAMERA_DEVICE_API_VERSION_3_6 ] * Camera device HAL 3.6[ CAMERA_DEVICE_API_VERSION_3_6 ]

@ -29,11 +29,12 @@ cc_library_shared {
"libutils", "libutils",
], ],
static_libs: [ static_libs: [
"android.hardware.camera.common@1.0-helper", "android.hardware.camera.common@1.0-helper.samsung",
], ],
header_libs: [ header_libs: [
"camera.device@3.4-impl_headers", "camera.device@3.4-impl_headers",
"camera.device@3.5-impl_headers", "camera.device@3.5-impl_headers",
"libhardware_headers.camera3_samsung"
], ],
export_include_dirs: ["."], export_include_dirs: ["."],
} }

@ -49,11 +49,12 @@ cc_library_shared {
"libutils", "libutils",
], ],
static_libs: [ static_libs: [
"android.hardware.camera.common@1.0-helper", "android.hardware.camera.common@1.0-helper.samsung",
], ],
header_libs: [ header_libs: [
"camera.device@3.4-impl_headers", "camera.device@3.4-impl_headers",
"camera.device@3.5-impl_headers", "camera.device@3.5-impl_headers",
"libhardware_headers.camera3_samsung"
], ],
export_include_dirs: ["."], export_include_dirs: ["."],
} }
@ -87,11 +88,12 @@ cc_defaults {
"libutils", "libutils",
], ],
static_libs: [ static_libs: [
"android.hardware.camera.common@1.0-helper", "android.hardware.camera.common@1.0-helper.samsung",
], ],
header_libs: [ header_libs: [
"camera.device@3.4-impl_headers", "camera.device@3.4-impl_headers",
"camera.device@3.5-impl_headers" "camera.device@3.5-impl_headers",
"libhardware_headers.camera3_samsung"
], ],
} }

Loading…
Cancel
Save