libcamera: Adapt Vector class to new location

Change the namespace of the Vector class from libipa to libcamera and
add it to the build.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Stefan Klug 2025-02-06 15:10:09 +01:00
parent e506b45822
commit cfd94e5f85
6 changed files with 11 additions and 16 deletions

View file

@ -73,6 +73,7 @@ internal_tests = [
{'name': 'timer-thread', 'sources': ['timer-thread.cpp']},
{'name': 'unique-fd', 'sources': ['unique-fd.cpp']},
{'name': 'utils', 'sources': ['utils.cpp']},
{'name': 'vector', 'sources': ['vector.cpp']},
{'name': 'yaml-parser', 'sources': ['yaml-parser.cpp']},
]

View file

@ -5,14 +5,14 @@
* Vector tests
*/
#include "../src/ipa/libipa/vector.h"
#include "libcamera/internal/vector.h"
#include <cmath>
#include <iostream>
#include "test.h"
using namespace libcamera::ipa;
using namespace libcamera;
#define ASSERT_EQ(a, b) \
if ((a) != (b)) { \