def METHOD_NAME(self, data, camera):
    with self._buflock:
        if self._buffer is not None:
            # add buffer back for reuse
            self._android_camera.addCallbackBuffer(self._buffer)
        self._buffer = data
    # check if frame grabbing works
    # print self._buffer, len(self.frame_data)