summaryrefslogtreecommitdiff
path: root/src/android
AgeCommit message (Expand)Author
2020-02-14android: camera_device: Use Camera properties for static MetadataJacopo Mondi
2020-02-13android: Remove internal threadLaurent Pinchart
2020-01-14libcamera: Switch from utils::make_unique to std::make_uniqueLaurent Pinchart
2020-01-12libcamera: camera: Remove the prepared stateNiklas Söderlund
2020-01-12libcamera: Remove dead code after switch to FrameBufferNiklas Söderlund
2020-01-12libcamera: Switch to FrameBuffer interfaceNiklas Söderlund
2020-01-12libcamera: buffer: Move captured metadata to FrameMetadataNiklas Söderlund
2020-01-12libcamera: request: In addBuffer() do not fetch stream from BufferNiklas Söderlund
2019-11-19libcamera: camera: Remove explicit stream to buffer map in requestCompleted s...Niklas Söderlund
2019-10-30android: Replace ThreadRPC with blocking method callJacopo Mondi
2019-10-29libcamera: object: Add connection type parameter to invokeMethod()Jacopo Mondi
2019-10-15libcamera: utils: Add hex stream output helperLaurent Pinchart
2019-09-05android: camera_device: Report available keysJacopo Mondi
2019-09-05android: camera_device: Fix handling of request templateJacopo Mondi
2019-09-05android: camera_device: Use the new CameraMetadata helper classLaurent Pinchart
2019-09-05android: Add CameraMetadata helper classLaurent Pinchart
2019-09-05android: camera_device: Use precise sizes for request templateJacopo Mondi
2019-09-05android: camera_device: Add missing tags in request templateJacopo Mondi
2019-09-05android: camera_device: Remove tags from request templateJacopo Mondi
2019-09-05android: camera_device: Use correct sizes for static metadataJacopo Mondi
2019-09-05android: camera_device: Add missing static metadataJacopo Mondi
2019-08-19android: camera_device: Store static metadata in cacheLaurent Pinchart
2019-08-19libcamera: camera_manager: Construct CameraManager instances manuallyLaurent Pinchart
2019-08-19android: camera_hal_manager: Clean up resources when terminatingLaurent Pinchart
2019-08-19android: camera_hal_manager: Remove unused close() methodLaurent Pinchart
2019-08-19android: camera_hal_manager: Stop thread when destroyingLaurent Pinchart
2019-08-19android: Pass Camera shared pointer to CameraProxy by const referenceLaurent Pinchart
2019-08-19android: Simplify thread RPC with Object::invokeMethod()Laurent Pinchart
2019-08-15hal: Fix comparison of unsigned integer < 0Laurent Pinchart
2019-08-12hal: Fix comparison of integers of different signsLaurent Pinchart
2019-08-12android: hal: Add Camera3 HALJacopo Mondi
2019-08-12android: metadata: Add SPDX tagJacopo Mondi
2019-08-12android: Add camera metadata libraryJacopo Mondi
span class="hl opt">; MappedFrameBuffer map(buffer.get(), MappedFrameBuffer::MapFlag::Read); if (!map.isValid()) { cout << "Failed to successfully map buffer" << endl; return TestFail; } /* Make sure we can move it. */ maps.emplace_back(std::move(map)); /* But copying is prevented, it would cause double-unmap. */ // MappedFrameBuffer map_copy = map; /* Local map should be invalid (after move). */ if (map.isValid()) { cout << "Post-move map should not be valid" << endl; return TestFail; } /* Test for multiple successful maps on the same buffer. */ MappedFrameBuffer write_map(buffer.get(), MappedFrameBuffer::MapFlag::Write); if (!write_map.isValid()) { cout << "Failed to map write buffer" << endl; return TestFail; } MappedFrameBuffer rw_map(buffer.get(), MappedFrameBuffer::MapFlag::ReadWrite); if (!rw_map.isValid()) { cout << "Failed to map RW buffer" << endl; return TestFail; } return TestPass; } private: std::unique_ptr<CameraConfiguration> config_; FrameBufferAllocator *allocator_; Stream *stream_; }; } /* namespace */ TEST_REGISTER(MappedBufferTest)