Move array_vector.
Once refactor is complete, it will only be used by metadata. Change-Id: Ie1e203f558f2f9a12c3be949d98454341648ee9d
This commit is contained in:
parent
d318ed9b30
commit
b41aade35e
2 changed files with 4 additions and 4 deletions
|
@ -26,9 +26,9 @@ namespace v4l2_camera_hal {
|
|||
// Specific methods to get number of arrays/number of elements
|
||||
// are provided and an ambiguous "size" is not, to avoid accidental
|
||||
// incorrect use.
|
||||
template <class T, int N>
|
||||
template <class T, size_t N>
|
||||
class ArrayVector {
|
||||
public:
|
||||
public:
|
||||
const T* data() const { return mItems.data(); }
|
||||
// The number of arrays.
|
||||
size_t num_arrays() const { return mItems.size() / N; }
|
||||
|
@ -43,7 +43,7 @@ public:
|
|||
mItems.insert(mItems.end(), values.begin(), values.end());
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
std::vector<T> mItems;
|
||||
};
|
||||
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
#include <system/camera_metadata.h>
|
||||
|
||||
#include "array_vector.h"
|
||||
#include "camera.h"
|
||||
#include "common.h"
|
||||
#include "metadata/array_vector.h"
|
||||
#include "v4l2_gralloc.h"
|
||||
#include "v4l2_wrapper.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue