Go to the documentation of this file. 1 #ifndef USB_CAM_CAMERA_DRIVER_H
2 #define USB_CAM_CAMERA_DRIVER_H
11 #include <libavcodec/version.h>
12 #if LIBAVCODEC_VERSION_MAJOR < 55
13 #define AV_CODEC_ID_MJPEG CODEC_ID_MJPEG
15 #include <libavcodec/avcodec.h>
16 #include <libswscale/swscale.h>
17 #define __STDC_CONSTANT_MACROS // Required for libavutil
18 #include <libavutil/imgutils.h>
19 #include <libavutil/frame.h>
20 #include <libavutil/mem.h>
29 #include <opencv2/imgproc.hpp>
99 static bool set_v4l_parameter(
const std::string & param,
const std::string & value);
122 #endif // USB_CAM_CAMERA_DRIVER_H
static bool set_v4l_parameter(const std::string ¶m, const std::string &value)
static std::vector< capture_format_t > supported_formats
static bool full_ffmpeg_log
static color_format_t color_format
static void v4l_query_controls()
static void run_grabber(unsigned int &buffer_size)
static AVFrame * avframe_rgb
virtual ~AbstractV4LUSBCam()
static unsigned int buffers_count
static bool streaming_status
static int avframe_rgb_size
static camera_image_t * image
static std::string io_method_name
static std::vector< camera_control_t > controls
static void release_device()
static bool init_decoder()
static bool decode_ffmpeg(const void *src, int len, camera_image_t *dest)
static AVFrame * avframe_camera
static std::string color_format_name
static bool set_v4l_parameter(const std::string ¶m, long value)
static int avframe_camera_size
static bool set_v4l_parameter(const std::string ¶m, int value)
static pixel_format_t pixel_format
static void close_handlers()
static io_method_t io_method
static std::vector< capture_format_t > & get_supported_formats()
static const time_t epoch_time_shift_us
static void adjust_camera()
static std::string video_device_name
static bool start_capture()
static unsigned int v4l_pixel_format
T param(const std::string ¶m_name, const T &default_val)
static std::set< std::string > ignore_controls
static AVDictionary * avoptions
static std::string pixel_format_name
static struct SwsContext * video_sws
static camera_image_t * read_frame()
static AVCodecID codec_id
static bool set_v4l_parameter(const std::string ¶m, bool value)
static bool process_image(const void *src, int len, camera_image_t *dest)
static AVCodecContext * avcodec_context
usb_cam
Author(s): Benjamin Pitzer
autogenerated on Sun Sep 3 2023 02:44:54