Back to Jetson Inference

Jetson Inference: v4l2Camera Class Reference

docs/html/classv4l2Camera.html

latest4.6 KB
Original Source

| | 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>

|

Public Member Functions

| | | ~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 Public Member Functions

| | static v4l2Camera * | Create (const char *device_path) | | | Create V4L2 interface. More...
| | |

Detailed Description

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.

Constructor & Destructor Documentation

~v4l2Camera()

| v4l2Camera::~v4l2Camera | ( | | ) | |

Destructor.

Member Function Documentation

Capture()

| void* v4l2Camera::Capture | ( | size_t | timeout = 0 | ) | |

Return the next image.

Close()

| bool v4l2Camera::Close | ( | | ) | |

Stop streaming.

Create()

|

| static v4l2Camera* v4l2Camera::Create | ( | const char * | device_path | ) | |

| static |

Create V4L2 interface.

Parameters

| path | Filename of the video device (e.g. /dev/video0) |

GetHeight()

|

| uint32_t v4l2Camera::GetHeight | ( | | ) | const |

| inline |

Retrieve height, in pixels, of camera image.

GetPitch()

|

| uint32_t v4l2Camera::GetPitch | ( | | ) | const |

| inline |

Return the size in bytes of one line of the image.

GetPixelDepth()

|

| uint32_t v4l2Camera::GetPixelDepth | ( | | ) | const |

| inline |

Return the bit depth per pixel.

GetWidth()

|

| uint32_t v4l2Camera::GetWidth | ( | | ) | const |

| inline |

Get width, in pixels, of camera image.

Open()

| bool v4l2Camera::Open | ( | | ) | |

Start streaming.


The documentation for this class was generated from the following file: