CVPixelBufferGetExtendedPixels

Function CVPixelBufferGetExtendedPixels 

Source
pub unsafe extern "C-unwind" fn CVPixelBufferGetExtendedPixels(
    pixel_buffer: &CVPixelBuffer,
    extra_columns_on_left: *mut usize,
    extra_columns_on_right: *mut usize,
    extra_rows_on_top: *mut usize,
    extra_rows_on_bottom: *mut usize,
)
Available on crate features CVBuffer and CVImageBuffer and CVPixelBuffer only.
Expand description

Returns the size of extended pixels of the PixelBuffer.

On OSX 10.10 and earlier, or iOS 8 and earlier, calling this function with a non-planar buffer will have undefined behavior.

Parameter pixelBuffer: Target PixelBuffer.

Parameter extraColumnsOnLeft: Returns the pixel row padding to the left. May be NULL.

Parameter extraRowsOnTop: Returns the pixel row padding to the top. May be NULL.

Parameter extraColumnsOnRight: Returns the pixel row padding to the right. May be NULL.

Parameter extraRowsOnBottom: Returns the pixel row padding to the bottom. May be NULL.

ยงSafety

  • extra_columns_on_left must be a valid pointer or null.
  • extra_columns_on_right must be a valid pointer or null.
  • extra_rows_on_top must be a valid pointer or null.
  • extra_rows_on_bottom must be a valid pointer or null.