|
Jetson Linux API Reference
|
32.7.5 Release
|
Go to the documentation of this file.
46 #ifndef __NV_V4L2_ELEMENT_H__
47 #define __NV_V4L2_ELEMENT_H__
93 int dqEvent(
struct v4l2_event &event, uint32_t max_wait_ms);
Defines a helper class for V4L2 based components.
int abort()
Terminates processing of queued buffers immediately.
uint32_t capture_plane_pixfmt
Pixel format of capture plane buffers.
int setExtControls(struct v4l2_ext_controls &ctl)
Sets the value of several controls.
const char * comp_name
Specifies the name of the component, for debugging.
virtual int waitForIdle(uint32_t max_wait_ms)
Waits until the element processes all the output plane buffers.
void enableProfiling()
Enables profiling for the V4l2Element.
int getControl(uint32_t id, int32_t &value)
Gets the value of a control.
NvV4l2Element(const char *comp_name, const char *dev_node, int flags, NvElementProfiler::ProfilerField fields)
Creates a new V4l2Element named name.
int fd
Specifies the FD of the device opened using v4l2_open.
int subscribeEvent(uint32_t type, uint32_t id, uint32_t flags)
Subscribes to an V4L2 event.
Defines a helper class for operations performed on a V4L2 Element plane.
int getExtControls(struct v4l2_ext_controls &ctl)
Gets the value of several controls.
int dqEvent(struct v4l2_event &event, uint32_t max_wait_ms)
Dequeues an event from the element.
Every element has a unique name that can be used for identifying the element in debug logs.
uint32_t output_plane_pixfmt
Pixel format of output plane buffers.
NvV4l2ElementPlane capture_plane
Sets the capture plane.
int setControl(uint32_t id, int32_t value)
Sets the value of a control.
NvV4l2ElementPlane output_plane
Sets the output plane.
void * app_data
A pointer to the application-specific data.