Skip to main content

ccap_pixel_format_to_string

Function ccap_pixel_format_to_string 

Source
pub unsafe extern "C" fn ccap_pixel_format_to_string(
    format: CcapPixelFormat,
    buffer: *mut c_char,
    buffer_size: usize,
) -> c_int
Expand description

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