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, bool value)
static bool full_ffmpeg_log
static bool process_image(const void *src, int len, camera_image_t *dest)
virtual ~AbstractV4LUSBCam()
static camera_image_t * read_frame()
static const time_t epoch_time_shift
static AVCodecContext * avcodec_context
static color_format_t color_format
static void run_grabber(unsigned int &buffer_size)
static bool decode_ffmpeg(const void *src, int len, camera_image_t *dest)
static AVFrame * avframe_rgb
static AVFrame * avframe_camera
static void v4l_query_controls()
static bool streaming_status
static std::string color_format_name
static void close_handlers()
static io_method_t io_method
static std::string io_method_name
static unsigned int buffers_count
static int avframe_rgb_size
static std::vector< camera_control_t > controls
static int avframe_camera_size
static std::vector< capture_format_t > & get_supported_formats()
static void release_device()
static bool init_decoder()
static pixel_format_t pixel_format
static bool set_v4l_parameter(const std::string ¶m, long value)
static camera_image_t * image
static unsigned int v4l_pixel_format
static bool set_v4l_parameter(const std::string ¶m, int value)
static AVDictionary * avoptions
static bool start_capture()
static void adjust_camera()
static std::set< std::string > ignore_controls
static AVCodecID codec_id
static std::string video_device_name
static std::string pixel_format_name
static struct SwsContext * video_sws
static bool set_v4l_parameter(const std::string ¶m, const std::string &value)
static std::vector< capture_format_t > supported_formats