camera_return_buffer()

Return a buffer to the camera.

Synopsis:

#include <camera/camera_api.h>
 
camera_error_t camera_return_buffer(camera_handle_t handle,                 
                                    camera_buffer_t *buffer)

Since:

BlackBerry 10.0.0

Arguments:

handle

The handle returned by a call to the camera_open() function.

buffer

A pointer to a buffer acquired by a call to one of the above get-buffer functions.

Library:

libcamapi (For the qcc command, use the -l camapi option to link against this library)

Description:

Use this function to return a buffer back to the camera after you are finished processing it. The buffer value you provide must be one that was acquired from the camera using one of the following functions:

Do not return a buffer that was delivered to a callback function, or was allocated through other means.

Returns:

CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus