Function rs2_allocate_points
Defined in File rs_frame.h
Function Documentation
-
rs2_frame *rs2_allocate_points(rs2_source *source, const rs2_stream_profile *new_stream, rs2_frame *original, rs2_error **error)
Allocate new points frame using a frame-source provided from a processing block
- Parameters:
source – [in] Frame pool to allocate the frame from
new_stream – [in] New stream profile to assign to newly created frame
original – [in] A reference frame that can be used to fill in auxilary information like format, width, height, bpp, stride (if applicable)
error – [out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored
- Returns:
reference to a newly allocated frame, must be released with release_frame memory for the frame is likely to be re-used from previous frame, but in lack of available frames in the pool will be allocated from the free store