Skip to main content

Module sys

Module sys 

Source
Expand description

Low-level FFI bindings to ccap C library

Structs§

CcapDeviceInfo
@brief Device information structure
CcapDeviceNamesList
@brief Device names list structure
CcapProvider
CcapResolution
@brief Resolution structure
CcapVideoFrame
CcapVideoFrameInfo
@brief Video frame data structure for C interface

Constants§

CCAP_DESKTOP
CCAP_MAX_DEVICES
CCAP_MAX_DEVICE_NAME_LENGTH
CCAP_MAX_PIXEL_FORMATS
CCAP_MAX_RESOLUTIONS
CCAP_VERSION_MAJOR
CCAP_VERSION_MINOR
CCAP_VERSION_PATCH
CCAP_VERSION_STRING
CcapConvertBackend_CCAP_CONVERT_BACKEND_APPLE_ACCELERATE
< Apple Accelerate implementation
CcapConvertBackend_CCAP_CONVERT_BACKEND_AUTO
< Automatically choose the best available backend
CcapConvertBackend_CCAP_CONVERT_BACKEND_AVX2
< AVX2 implementation
CcapConvertBackend_CCAP_CONVERT_BACKEND_CPU
< CPU implementation
CcapConvertBackend_CCAP_CONVERT_BACKEND_NEON
< ARM NEON implementation
CcapConvertFlag_CCAP_CONVERT_FLAG_BT601
< Use BT.601 color space
CcapConvertFlag_CCAP_CONVERT_FLAG_BT709
< Use BT.709 color space
CcapConvertFlag_CCAP_CONVERT_FLAG_DEFAULT
< Default: BT.601 video range
CcapConvertFlag_CCAP_CONVERT_FLAG_FULL_RANGE
< Use full range color space
CcapConvertFlag_CCAP_CONVERT_FLAG_VIDEO_RANGE
< Use video range color space
CcapErrorCode_CCAP_ERROR_DEVICE_OPEN_FAILED
< Camera device open failed
CcapErrorCode_CCAP_ERROR_DEVICE_START_FAILED
< Camera start failed
CcapErrorCode_CCAP_ERROR_DEVICE_STOP_FAILED
< Camera stop failed
CcapErrorCode_CCAP_ERROR_FILE_OPEN_FAILED
< Failed to open video file
CcapErrorCode_CCAP_ERROR_FRAME_CAPTURE_FAILED
< Frame capture failed
CcapErrorCode_CCAP_ERROR_FRAME_CAPTURE_TIMEOUT
< Frame capture timeout
CcapErrorCode_CCAP_ERROR_FRAME_RATE_SET_FAILED
< Frame rate setting failed
CcapErrorCode_CCAP_ERROR_INITIALIZATION_FAILED
< Initialization failed
CcapErrorCode_CCAP_ERROR_INTERNAL_ERROR
< Unknown or internal error
CcapErrorCode_CCAP_ERROR_INVALID_DEVICE
< Invalid device name or device index
CcapErrorCode_CCAP_ERROR_MEMORY_ALLOCATION_FAILED
< Memory allocation failed
CcapErrorCode_CCAP_ERROR_NONE
< No error occurred
CcapErrorCode_CCAP_ERROR_NO_DEVICE_FOUND
< No camera device found or device discovery failed
CcapErrorCode_CCAP_ERROR_PROPERTY_SET_FAILED
< Property setting failed
CcapErrorCode_CCAP_ERROR_SEEK_FAILED
< Seek operation failed
CcapErrorCode_CCAP_ERROR_UNSUPPORTED_PIXEL_FORMAT
< Requested pixel format is not supported
CcapErrorCode_CCAP_ERROR_UNSUPPORTED_RESOLUTION
< Requested resolution is not supported
CcapErrorCode_CCAP_ERROR_UNSUPPORTED_VIDEO_FORMAT
< Video format is not supported
CcapFrameOrientation_CCAP_FRAME_ORIENTATION_BOTTOM_TO_TOP
CcapFrameOrientation_CCAP_FRAME_ORIENTATION_TOP_TO_BOTTOM
CcapLogLevel_CCAP_LOG_LEVEL_ERROR
< Error log level
CcapLogLevel_CCAP_LOG_LEVEL_INFO
< Info log level (Error | Warning | Info)
CcapLogLevel_CCAP_LOG_LEVEL_NONE
< No log output
CcapLogLevel_CCAP_LOG_LEVEL_VERBOSE
< Verbose log level (Error | Warning | Info | Verbose)
CcapLogLevel_CCAP_LOG_LEVEL_WARNING
< Warning log level (Error | Warning)
CcapPixelFormat_CCAP_PIXEL_FORMAT_BGR24
CcapPixelFormat_CCAP_PIXEL_FORMAT_BGRA32
CcapPixelFormat_CCAP_PIXEL_FORMAT_I420
CcapPixelFormat_CCAP_PIXEL_FORMAT_I420F
CcapPixelFormat_CCAP_PIXEL_FORMAT_NV12
CcapPixelFormat_CCAP_PIXEL_FORMAT_NV12F
CcapPixelFormat_CCAP_PIXEL_FORMAT_RGB24
CcapPixelFormat_CCAP_PIXEL_FORMAT_RGBA32
CcapPixelFormat_CCAP_PIXEL_FORMAT_UNKNOWN
CcapPixelFormat_CCAP_PIXEL_FORMAT_UYVY
CcapPixelFormat_CCAP_PIXEL_FORMAT_UYVY_F
CcapPixelFormat_CCAP_PIXEL_FORMAT_YUYV
CcapPixelFormat_CCAP_PIXEL_FORMAT_YUYV_F
CcapPropertyName_CCAP_PROPERTY_CURRENT_FRAME_INDEX
< Current frame index (read/write for seek)
CcapPropertyName_CCAP_PROPERTY_CURRENT_TIME
< Current playback position in seconds (read/write for seek)
CcapPropertyName_CCAP_PROPERTY_DURATION
< Video total duration in seconds (read-only)
CcapPropertyName_CCAP_PROPERTY_FRAME_COUNT
< Total number of frames (read-only)
CcapPropertyName_CCAP_PROPERTY_FRAME_ORIENTATION
CcapPropertyName_CCAP_PROPERTY_FRAME_RATE
CcapPropertyName_CCAP_PROPERTY_HEIGHT
CcapPropertyName_CCAP_PROPERTY_PIXEL_FORMAT_INTERNAL
CcapPropertyName_CCAP_PROPERTY_PIXEL_FORMAT_OUTPUT
CcapPropertyName_CCAP_PROPERTY_PLAYBACK_SPEED
< Playback speed multiplier (read/write, default 1.0)
CcapPropertyName_CCAP_PROPERTY_WIDTH

Functions§

ccap_convert_bgr_to_bgra
@brief Convert BGR to BGRA (add alpha=255) @param src Source BGR data @param src_stride Source stride in bytes @param dst Destination BGRA data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_bgr_to_rgb
@brief Convert BGR to RGB (swap R and B channels) @param src Source BGR data @param src_stride Source stride in bytes @param dst Destination RGB data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_bgr_to_rgba
@brief Convert BGR to RGBA (add alpha=255, swap R and B channels) @param src Source BGR data @param src_stride Source stride in bytes @param dst Destination RGBA data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_bgra_to_bgr
@brief Convert BGRA to BGR (remove alpha channel) @param src Source BGRA data @param src_stride Source stride in bytes @param dst Destination BGR data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_bgra_to_rgb
@brief Convert BGRA to RGB (remove alpha, swap R and B channels) @param src Source BGRA data @param src_stride Source stride in bytes @param dst Destination RGB data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_bgra_to_rgba
@brief Convert BGRA to RGBA (swap R and B channels) @param src Source BGRA data @param src_stride Source stride in bytes @param dst Destination RGBA data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_can_use_apple_accelerate
@brief Check if Apple Accelerate is currently enabled @return true if Apple Accelerate is enabled, false otherwise
ccap_convert_can_use_avx2
@brief Check if AVX2 is currently enabled @return true if AVX2 is enabled, false otherwise
ccap_convert_can_use_neon
@brief Check if ARM NEON is currently enabled @return true if ARM NEON is enabled, false otherwise
ccap_convert_enable_apple_accelerate
@brief Enable or disable Apple Accelerate implementation @param enable true to enable Apple Accelerate, false to disable @return true if Apple Accelerate is available and enabled, false otherwise
ccap_convert_enable_avx2
@brief Enable or disable AVX2 implementation @param enable true to enable AVX2, false to disable @return true if AVX2 is available and enabled, false otherwise
ccap_convert_enable_neon
@brief Enable or disable ARM NEON implementation @param enable true to enable ARM NEON, false to disable @return true if ARM NEON is available and enabled, false otherwise
ccap_convert_get_backend
@brief Get the current conversion backend that will be used @return Current conversion backend
ccap_convert_has_apple_accelerate
@brief Check if Apple Accelerate is available @return true if Apple Accelerate is available, false otherwise
ccap_convert_has_avx2
@brief Check if AVX2 is supported by the CPU @return true if AVX2 is available, false otherwise
ccap_convert_has_neon
@brief Check if ARM NEON is supported by the CPU @return true if ARM NEON is available, false otherwise
ccap_convert_i420_to_bgr24
@brief Convert I420 to BGR24 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_u U plane data @param src_u_stride U plane stride in bytes @param src_v V plane data @param src_v_stride V plane stride in bytes @param dst Destination BGR24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_i420_to_bgra32
@brief Convert I420 to BGRA32 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_u U plane data @param src_u_stride U plane stride in bytes @param src_v V plane data @param src_v_stride V plane stride in bytes @param dst Destination BGRA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_i420_to_rgb24
@brief Convert I420 to RGB24 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_u U plane data @param src_u_stride U plane stride in bytes @param src_v V plane data @param src_v_stride V plane stride in bytes @param dst Destination RGB24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_i420_to_rgba32
@brief Convert I420 to RGBA32 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_u U plane data @param src_u_stride U plane stride in bytes @param src_v V plane data @param src_v_stride V plane stride in bytes @param dst Destination RGBA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_nv12_to_bgr24
@brief Convert NV12 to BGR24 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_uv UV plane data (interleaved) @param src_uv_stride UV plane stride in bytes @param dst Destination BGR24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_nv12_to_bgra32
@brief Convert NV12 to BGRA32 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_uv UV plane data (interleaved) @param src_uv_stride UV plane stride in bytes @param dst Destination BGRA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_nv12_to_rgb24
@brief Convert NV12 to RGB24 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_uv UV plane data (interleaved) @param src_uv_stride UV plane stride in bytes @param dst Destination RGB24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_nv12_to_rgba32
@brief Convert NV12 to RGBA32 @param src_y Y plane data @param src_y_stride Y plane stride in bytes @param src_uv UV plane data (interleaved) @param src_uv_stride UV plane stride in bytes @param dst Destination RGBA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_rgb_to_bgr
@brief Convert RGB to BGR (swap R and B channels) @param src Source RGB data @param src_stride Source stride in bytes @param dst Destination BGR data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_rgb_to_bgra
@brief Convert RGB to BGRA (add alpha=255, swap R and B channels) @param src Source RGB data @param src_stride Source stride in bytes @param dst Destination BGRA data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_rgb_to_rgba
@brief Convert RGB to RGBA (add alpha=255) @param src Source RGB data @param src_stride Source stride in bytes @param dst Destination RGBA data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_rgba_to_bgr
@brief Convert RGBA to BGR (remove alpha, swap R and B channels) @param src Source RGBA data @param src_stride Source stride in bytes @param dst Destination BGR data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_rgba_to_bgra
@brief Convert RGBA to BGRA (swap R and B channels) @param src Source RGBA data @param src_stride Source stride in bytes @param dst Destination BGRA data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_rgba_to_rgb
@brief Convert RGBA to RGB (remove alpha channel) @param src Source RGBA data @param src_stride Source stride in bytes @param dst Destination RGB data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip)
ccap_convert_set_backend
@brief Set the conversion backend @param backend Backend to set @return true if the backend was set successfully, false otherwise
ccap_convert_uyvy_to_bgr24
@brief Convert UYVY to BGR24 @param src Source UYVY data @param src_stride Source stride in bytes @param dst Destination BGR24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_uyvy_to_bgra32
@brief Convert UYVY to BGRA32 @param src Source UYVY data @param src_stride Source stride in bytes @param dst Destination BGRA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_uyvy_to_rgb24
@brief Convert UYVY to RGB24 @param src Source UYVY data @param src_stride Source stride in bytes @param dst Destination RGB24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_uyvy_to_rgba32
@brief Convert UYVY to RGBA32 @param src Source UYVY data @param src_stride Source stride in bytes @param dst Destination RGBA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_yuv_to_rgb_601f
@brief Convert single YUV pixel to RGB using BT.601 full range @param y Y component @param u U component @param v V component @param r Output R component (0-255) @param g Output G component (0-255) @param b Output B component (0-255)
ccap_convert_yuv_to_rgb_601v
@brief Convert single YUV pixel to RGB using BT.601 video range @param y Y component @param u U component @param v V component @param r Output R component (0-255) @param g Output G component (0-255) @param b Output B component (0-255)
ccap_convert_yuv_to_rgb_709f
@brief Convert single YUV pixel to RGB using BT.709 full range @param y Y component @param u U component @param v V component @param r Output R component (0-255) @param g Output G component (0-255) @param b Output B component (0-255)
ccap_convert_yuv_to_rgb_709v
@brief Convert single YUV pixel to RGB using BT.709 video range @param y Y component @param u U component @param v V component @param r Output R component (0-255) @param g Output G component (0-255) @param b Output B component (0-255)
ccap_convert_yuyv_to_bgr24
@brief Convert YUYV to BGR24 @param src Source YUYV data @param src_stride Source stride in bytes @param dst Destination BGR24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_yuyv_to_bgra32
@brief Convert YUYV to BGRA32 @param src Source YUYV data @param src_stride Source stride in bytes @param dst Destination BGRA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_yuyv_to_rgb24
@brief Convert YUYV to RGB24 @param src Source YUYV data @param src_stride Source stride in bytes @param dst Destination RGB24 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_convert_yuyv_to_rgba32
@brief Convert YUYV to RGBA32 @param src Source YUYV data @param src_stride Source stride in bytes @param dst Destination RGBA32 data @param dst_stride Destination stride in bytes @param width Image width in pixels @param height Image height in pixels (negative for vertical flip) @param flag Conversion flags (color space and range)
ccap_dump_frame_to_directory
@brief Save a video frame to directory with auto-generated filename @param frame Pointer to video frame @param directory Directory path to save the file @param output_path Buffer to store the full output path (caller must allocate) @param output_path_size Size of the output_path buffer @return Number of characters written to output_path (excluding null terminator), or -1 on error @note If output_path is NULL, returns the required buffer size (including null terminator) Filename will be generated based on current time and frame index This function is for debugging purposes and not performance optimized
ccap_dump_frame_to_file
@brief Save a video frame as BMP or YUV file @param frame Pointer to video frame @param filename_no_suffix Filename without extension (extension will be added automatically) @param output_path Buffer to store the full output path (caller must allocate) @param output_path_size Size of the output_path buffer @return Number of characters written to output_path (excluding null terminator), or -1 on error @note If output_path is NULL, returns the required buffer size (including null terminator) YUV formats will be saved as .yuv files, RGB formats as .bmp files This function is for debugging purposes and not performance optimized
ccap_error_code_to_string
@brief Convert error code to English string description @param errorCode The error code to convert @return Error description string
ccap_get_version
@brief Get library version string @return Version string
ccap_pixel_format_is_rgb
@brief Check if a pixel format has RGB color @param format Pixel format @return true if RGB format, false otherwise
ccap_pixel_format_is_yuv
@brief Check if a pixel format has YUV color @param format Pixel format @return true if YUV format, false otherwise
ccap_pixel_format_to_string
@brief Get string representation of pixel format @param format Pixel format @param buffer Output buffer to store the string (caller must allocate) @param buffer_size Size of the output buffer @return Number of characters written (excluding null terminator), or -1 on error @note If buffer is NULL, returns the required buffer size (including null terminator)
ccap_provider_close
@brief Close camera device @param provider Pointer to CcapProvider instance
ccap_provider_create
@brief Create a new camera provider instance @return Pointer to CcapProvider instance, or NULL on failure
ccap_provider_create_with_device
@brief Create a camera provider and open specified device @param deviceName Device name to open (NULL for default device) @param extraInfo Extra backend hint (can be NULL). On Windows, accepted values include auto, msmf, dshow, and backend=<value>. auto enumerates both Windows backends and routes each device to a compatible backend automatically. Other platforms ignore this parameter. @return Pointer to CcapProvider instance, or NULL on failure
ccap_provider_create_with_index
@brief Create a camera provider and open device by index @param deviceIndex Device index (negative for default device) @param extraInfo Extra backend hint (can be NULL). On Windows, accepted values include auto, msmf, dshow, and backend=<value>. auto enumerates both Windows backends and routes each device to a compatible backend automatically. Other platforms ignore this parameter. @return Pointer to CcapProvider instance, or NULL on failure
ccap_provider_destroy
@brief Destroy a camera provider instance and release all resources @param provider Pointer to CcapProvider instance
ccap_provider_find_device_names_list
@brief Find all available camera device names @param provider Pointer to CcapProvider instance @param deviceList Output parameter for device names list @return true on success, false on failure
ccap_provider_get_device_info
@brief Get device information @param provider Pointer to CcapProvider instance @param deviceInfo Output parameter for device information @return true on success, false on failure
ccap_provider_get_property
@brief Get camera property @param provider Pointer to CcapProvider instance @param prop Property name @return Property value, or NaN on failure
ccap_provider_grab
@brief Grab a new frame (synchronous) @param provider Pointer to CcapProvider instance @param timeoutMs Timeout in milliseconds (0xFFFFFFFF for infinite) @return Pointer to CcapVideoFrame, or NULL on failure/timeout @note The returned frame must be released using ccap_video_frame_release
ccap_provider_is_file_mode
@brief Check if provider is in file playback mode @param provider Pointer to CcapProvider instance @return true if opened with a video file, false if opened with a camera device
ccap_provider_is_opened
@brief Check if camera device is opened @param provider Pointer to CcapProvider instance @return true if opened, false otherwise
ccap_provider_is_started
@brief Check if capture is started @param provider Pointer to CcapProvider instance @return true if started, false otherwise
ccap_provider_open
@brief Open a camera device @param provider Pointer to CcapProvider instance @param deviceName Device name (NULL for default device) @param autoStart Whether to start capturing automatically @return true on success, false on failure
ccap_provider_open_by_index
@brief Open a camera device by index @param provider Pointer to CcapProvider instance @param deviceIndex Device index (negative for default device) @param autoStart Whether to start capturing automatically @return true on success, false on failure
ccap_provider_set_max_available_frame_size
@brief Set maximum number of available frames in cache @param provider Pointer to CcapProvider instance @param size Maximum number of available frames
ccap_provider_set_max_cache_frame_size
@brief Set maximum number of frames in internal cache @param provider Pointer to CcapProvider instance @param size Maximum number of cached frames
ccap_provider_set_new_frame_callback
@brief Set callback for new frame notifications (asynchronous) @param provider Pointer to CcapProvider instance @param callback Callback function (NULL to remove callback) @param userData User data passed to callback @return true on success, false on failure
ccap_provider_set_property
@brief Set camera property @param provider Pointer to CcapProvider instance @param prop Property name @param value Property value @return true on success, false on failure
ccap_provider_start
@brief Start frame capturing @param provider Pointer to CcapProvider instance @return true on success, false on failure
ccap_provider_stop
@brief Stop frame capturing @param provider Pointer to CcapProvider instance
ccap_save_rgb_data_as_bmp
@brief Save RGB data as BMP file @param filename Output filename @param data RGB/BGR image data @param width Image width in pixels @param line_offset Bytes per line (stride) @param height Image height in pixels @param is_bgr true if data is in BGR order, false for RGB @param has_alpha true if data has alpha channel @param is_top_to_bottom true if data is top-to-bottom, false for bottom-to-top @return true on success, false on failure
ccap_set_error_callback
@brief Set error callback for all camera operations @param callback Error callback function (NULL to remove callback) @param userData User data passed to callback @return true on success, false on failure @note This callback will be used by all provider instances
ccap_set_log_level
@brief Set the log level for ccap library @param level Log level to set @note This affects both C and C++ interfaces logging output
ccap_video_frame_get_info
@brief Get frame information @param frame Pointer to CcapVideoFrame instance @param frameInfo Output parameter for frame information @return true on success, false on failure
ccap_video_frame_release
@brief Release a video frame @param frame Pointer to CcapVideoFrame instance

Type Aliases§

CcapConvertBackend
@brief Conversion backend enumeration
CcapConvertFlag
@brief Conversion flags for color space and range
CcapErrorCallback
@brief Error callback function type for C interface
CcapErrorCode
@brief Error codes for camera capture operations
CcapFrameOrientation
@brief Frame orientation enumeration
CcapLogLevel
@brief Log level enumeration for C interface
CcapNewFrameCallback
@brief Callback function type for new frame notifications
CcapPixelFormat
@brief Pixel format enumeration, compatible with ccap::PixelFormat
CcapPropertyName
@brief Property name enumeration for camera configuration