Skip to content

Commit

Permalink
libcamera: properly define includes/dependencies
Browse files Browse the repository at this point in the history
Change-Id: I5f8f4e743a8c48bc044538996fa8248fb117485b
  • Loading branch information
Lukas0610 authored and fourkbomb committed Jun 20, 2018
1 parent 3dabe92 commit a87244b
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 21 deletions.
4 changes: 2 additions & 2 deletions libcamera/common/Activities/ExynosCameraActivityAutofocus.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <sys/types.h>
#include <utils/threads.h>

#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>
#include <linux/vt.h>

#include <utils/RefBase.h>
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/Activities/ExynosCameraActivityBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <sys/types.h>
#include <utils/threads.h>

#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>
#include <linux/vt.h>

#include <utils/RefBase.h>
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/Activities/ExynosCameraActivityFlash.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <sys/types.h>
#include <utils/threads.h>

#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>
#include <linux/vt.h>

#include <utils/RefBase.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <sys/types.h>
#include <utils/threads.h>

#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>
#include <linux/vt.h>

#include <utils/RefBase.h>
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/Activities/ExynosCameraActivityUCTL.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <sys/types.h>
#include <utils/threads.h>

#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>
#include <linux/vt.h>

#include <utils/RefBase.h>
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/Buffers/ExynosCameraBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

#include <binder/MemoryHeapBase.h>
#include <hardware/camera.h>
#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>

#include "gralloc_priv.h"
#include "ion.h"
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/Buffers/ExynosCameraBufferLocker.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include <utils/threads.h>

#include <hardware/camera.h>
#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>

#include "fimc-is-metadata.h"
#include "ExynosCameraConfig.h"
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/Buffers/ExynosCameraBufferManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@

#include <binder/MemoryHeapBase.h>
#include <hardware/camera.h>
#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>

#include "gralloc_priv.h"
#include "ion.h"
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/ExynosCameraMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

#include <binder/MemoryHeapBase.h>
#include <hardware/camera.h>
#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>

#include "gralloc_priv.h"
#include "ion.h"
Expand Down
4 changes: 2 additions & 2 deletions libcamera/common/ExynosCameraNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include <sys/types.h>
#include <utils/threads.h>

#include <videodev2.h>
#include <videodev2_exynos_camera.h>
#include <linux/videodev2.h>
#include <linux/videodev2_exynos_camera.h>
#include <linux/vt.h>

#include <utils/RefBase.h>
Expand Down
3 changes: 2 additions & 1 deletion libcamera/common/ExynosCameraUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
#include "ExynosRect.h"
#include "fimc-is-metadata.h"
#include "ExynosCameraSensorInfo.h"
#include "videodev2_exynos_media.h"
#include "ExynosCameraBuffer.h"
#include "ExynosCameraConfig.h"

#include <linux/videodev2_exynos_media.h>

#define ROUND_OFF(x, dig) (floor((x) * pow(10.0f, dig)) / pow(10.0f, dig))

namespace android {
Expand Down

0 comments on commit a87244b

Please sign in to comment.