Function rs2_get_frame_bits_per_pixel

Function Documentation

int rs2_get_frame_bits_per_pixel(const rs2_frame *frame, rs2_error **error)

retrieve bits per pixels in the frame image (note that bits per pixel is not necessarily divided by 8, as in 12bpp)

Parameters:
  • frame[in] handle returned from a callback

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

bits per pixel