summaryrefslogtreecommitdiff
path: root/src/gstreamer/gstlibcamerasrc.cpp
AgeCommit message (Expand)Author
2021-09-28gstreamer: Fix spelling of the work manager used in a util functionVedant Paranjape
2021-08-26gstreamer: Fix usage of default size for fixationNicolas Dufresne
2021-08-26libcamerasrc: Fix deadlock on EOSNicolas Dufresne
2021-08-26gstreamer: Fix concurrent access issues to CameraManagerNicolas Dufresne
2021-08-05gstreamer: Update format specifier in Request Pad templateVedant Paranjape
2021-07-28gstreamer: Store group_id in GstLibcameraSrcStateVedant Paranjape
2021-06-25gstreamer: Added virtual functions needed to support request padsVedant Paranjape
2021-06-07gstreamer: Add error checking in gst_libcamera_src_task_enter()Vedant Paranjape
2021-03-15gst: Use the streams of CameraConfiguration when allocating buffersDafna Hirschfeld
2021-03-12libcamera: gst: Fix double-free when acquire_buffer failsMarian Cichy
2020-11-07gstreamer: libcamerasrc: Delete configuration before stopping camera managerLaurent Pinchart
2020-10-20gstreamer: Omit extra semicolonsHirokazu Honda
2020-10-12libcamera, android, cam, gstreamer, qcam, v4l2: Reuse RequestPaul Elder
2020-08-25meson: Remove -Wno-unused-parameterLaurent Pinchart
2020-08-05libcamera: camera: Rename name() to id()Niklas Söderlund
2020-03-07gst: libcamerasrc: Prevent src task deadlock on exhausted buffer poolJakub Adam
2020-03-07gst: utils: Factor-out the task resume helperJakub Adam
2020-03-07gst: libcamerasrc: Add a TODO commentNicolas Dufresne
2020-03-07gst: libcamerasrc: Implement timestamp supportNicolas Dufresne
2020-03-07gst: libcamerasrc: Implement initial streamingNicolas Dufresne
2020-03-07gst: libcamerasrc: Allocate and release buffersNicolas Dufresne
2020-03-07gst: libcamerasrc: Push segment eventNicolas Dufresne
2020-03-07gst: libcamerasrc: Implement minimal caps negotiationNicolas Dufresne
2020-03-07gst: libcamerasrc: Send stream start eventNicolas Dufresne
2020-03-07gst: libcamerasrc: Store the srcpad in a vectorNicolas Dufresne
2020-03-07gst: libcamerasrc: Add a task for the streaming threadNicolas Dufresne
2020-03-07gst: libcamerasrc: Implement selection and acquisitionNicolas Dufresne
2020-03-07gst: libcamerasrc: Add a debug categoryNicolas Dufresne
2020-03-07gst: libcamerasrc: Add camera-name propertyNicolas Dufresne
2020-03-07gst: libcamerasrc: Allocate and add static padNicolas Dufresne
2020-03-07gst: Add pads to the sourceNicolas Dufresne
2020-03-07Add GStreamer plugin and element skeletonNicolas Dufresne
::unique_ptr<FrameBuffer> &buffer = allocator_->buffers(stream_).front(); std::vector<MappedBuffer> maps; 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)