docs/html/classv4l2Camera.html
| | Jetson Inference
DNN Vision Library |
Classes | Public Member Functions | Static Public Member Functions | List of all members
v4l2Camera Class Reference Utilities Library (jetson-utils) » Camera Capture
Video4Linux2 (V4L2) camera capture streaming. More...
#include <v4l2Camera.h>
|
|
| | ~v4l2Camera () |
| | Destructor. More...
|
| |
| bool | Open () |
| | Start streaming. More...
|
| |
| bool | Close () |
| | Stop streaming. More...
|
| |
| void * | Capture (size_t timeout=0) |
| | Return the next image. More...
|
| |
| uint32_t | GetWidth () const |
| | Get width, in pixels, of camera image. More...
|
| |
| uint32_t | GetHeight () const |
| | Retrieve height, in pixels, of camera image. More...
|
| |
| uint32_t | GetPitch () const |
| | Return the size in bytes of one line of the image. More...
|
| |
| uint32_t | GetPixelDepth () const |
| | Return the bit depth per pixel. More...
|
| |
|
|
| static v4l2Camera * | Create (const char *device_path) |
| | Create V4L2 interface. More...
|
| |
Video4Linux2 (V4L2) camera capture streaming.
NotegstCamera, which convieniently handles both V4L2 and MIPI CSI cameras, is used mostly in lieu of v4l2Camera. v4l2Camera is provided in the event that you would rather interface with V4L2 directly, rather than go through GStreamer.
| v4l2Camera::~v4l2Camera | ( | | ) | |
Destructor.
| void* v4l2Camera::Capture | ( | size_t | timeout = 0 | ) | |
Return the next image.
| bool v4l2Camera::Close | ( | | ) | |
Stop streaming.
|
| static v4l2Camera* v4l2Camera::Create | ( | const char * | device_path | ) | |
| static |
Create V4L2 interface.
Parameters
| path | Filename of the video device (e.g. /dev/video0) |
|
| uint32_t v4l2Camera::GetHeight | ( | | ) | const |
| inline |
Retrieve height, in pixels, of camera image.
|
| uint32_t v4l2Camera::GetPitch | ( | | ) | const |
| inline |
Return the size in bytes of one line of the image.
|
| uint32_t v4l2Camera::GetPixelDepth | ( | | ) | const |
| inline |
Return the bit depth per pixel.
|
| uint32_t v4l2Camera::GetWidth | ( | | ) | const |
| inline |
Get width, in pixels, of camera image.
| bool v4l2Camera::Open | ( | | ) | |
Start streaming.
The documentation for this class was generated from the following file:
jetson-utils/v4l2Camera.h
Generated on Fri Mar 17 2023 14:29:30 for Jetson Inference by 1.8.17