summaryrefslogtreecommitdiff
path: root/test
ModeNameSize
-rw-r--r--byte-stream-buffer.cpp4469logplain
-rw-r--r--camera-sensor.cpp2863logplain
d---------camera269logplain
d---------controls220logplain
-rw-r--r--event-dispatcher.cpp2103logplain
-rw-r--r--event-thread.cpp2199logplain
-rw-r--r--event.cpp2407logplain
-rw-r--r--file-descriptor.cpp4481logplain
-rw-r--r--file.cpp6121logplain
-rw-r--r--geometry.cpp3829logplain
d---------ipa185logplain
d---------ipc81logplain
d---------libtest281logplain
-rw-r--r--list-cameras.cpp798logplain
d---------log121logplain
d---------media_device296logplain
-rw-r--r--meson.build1921logplain
-rw-r--r--message.cpp2556logplain
-rw-r--r--object-invoke.cpp4399logplain
-rw-r--r--object.cpp3446logplain
d---------pipeline103logplain
d---------process83logplain
d---------serialization190logplain
-rw-r--r--signal-threads.cpp2250logplain
-rw-r--r--signal.cpp7201logplain
-rw-r--r--span.cpp3728logplain
d---------stream85logplain
-rw-r--r--threads.cpp2361logplain
-rw-r--r--timer-thread.cpp1835logplain
-rw-r--r--timer.cpp4041logplain
-rw-r--r--utils.cpp3124logplain
d---------v4l2_subdevice227logplain
d---------v4l2_videodevice538logplain
std::cout << "Failed lookup from cache" << std::endl; return TestFail; } if (hotQueue && index != hotIndex) { std::cout << "Hot buffer got cold" << std::endl; return TestFail; } cache->put(index); } return TestPass; } int init() override { std::random_device rd; unsigned int seed = rd(); std::cout << "Random seed is " << seed << std::endl; generator_.seed(seed); return TestPass; } int run() override { const unsigned int numBuffers = 8; StreamConfiguration cfg; cfg.pixelFormat = formats::YUYV; cfg.size = Size(600, 800); cfg.bufferCount = numBuffers; BufferSource source; int ret = source.allocate(cfg); if (ret != TestPass) return ret; const std::vector<std::unique_ptr<FrameBuffer>> &buffers = source.buffers(); if (buffers.size() != numBuffers) { std::cout << "Got " << buffers.size() << " buffers, expected " << numBuffers << std::endl; return TestFail; } /* * Test cache of same size as there are buffers, the cache is * created from a list of buffers and will be pre-populated. */ V4L2BufferCache cacheFromBuffers(buffers);