本文整理汇总了Java中com.parrot.arsdk.arcontroller.ARFrame类的典型用法代码示例。如果您正苦于以下问题:Java ARFrame类的具体用法?Java ARFrame怎么用?Java ARFrame使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ARFrame类属于com.parrot.arsdk.arcontroller包,在下文中一共展示了ARFrame类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onFrameReceived(ARDeviceController deviceController, ARFrame frame) {
if (!frame.isIFrame())
return;
if (!taskRunning) {
byte[] data = frame.getByteData();
ByteArrayInputStream ins = new ByteArrayInputStream(data);
Bitmap bmp = BitmapFactory.decodeStream(ins);
// FrameDisplay fDisplay = new FrameDisplay(imgView, bmp);
// Use FrameDisplayCV to find qr-code with robot cam.
FrameDisplayCV fDisplay = new FrameDisplayCV(imgView, bmp, deviceController, true);
fDisplay.execute();
}
}
示例2: onFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public ARCONTROLLER_ERROR_ENUM onFrameReceived(ARDeviceController deviceController, ARFrame frame)
{
if (!frame.isIFrame())
return ARCONTROLLER_ERROR_ENUM.ARCONTROLLER_ERROR_STREAM;
byte[] data = frame.getByteData();
ByteArrayInputStream ins = new ByteArrayInputStream(data);
Bitmap bmp = BitmapFactory.decodeStream(ins);
FrameDisplay fDisplay = new FrameDisplay(imgView, bmp);
fDisplay.execute();
return ARCONTROLLER_ERROR_ENUM.ARCONTROLLER_OK;
}
示例3: displayFrame
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
public void displayFrame(ARFrame frame) {
byte[] data = frame.getByteData();
synchronized (this) {
mBmp = BitmapFactory.decodeByteArray(data, 0, data.length);
}
mHandler.post(new Runnable() {
@Override
public void run() {
synchronized (this) {
setImageBitmap(mBmp);
}
}
});
}
示例4: notifyFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
private void notifyFrameReceived(ARFrame frame) {
List<Listener> listenersCpy = new ArrayList<>(mListeners);
for (Listener listener : listenersCpy) {
listener.onFrameReceived(frame);
}
}
示例5: onFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public ARCONTROLLER_ERROR_ENUM onFrameReceived(ARDeviceController deviceController, final ARFrame frame) {
notifyFrameReceived(frame);
return ARCONTROLLER_ERROR_ENUM.ARCONTROLLER_OK;
}
示例6: notifyAudioFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
private void notifyAudioFrameReceived(ARFrame frame) {
List<Listener> listenersCpy = new ArrayList<>(mListeners);
for (Listener listener : listenersCpy) {
listener.onAudioFrameReceived(frame);
}
}
示例7: onFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onFrameReceived(ARFrame frame) {
mVideoView.displayFrame(frame);
}
示例8: onFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onFrameReceived(ARFrame frame) {
}
示例9: onAudioFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onAudioFrameReceived(ARFrame frame) {
}
示例10: onFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
/**
* Called when a video frame has been received
* Called on a separate thread
*
* @param frame the video frame
*/
void onFrameReceived(ARFrame frame);
示例11: onAudioFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
/**
* Called when a audio frame has been received
* Called on a separate thread
*
* @param frame the audio frame
*/
void onAudioFrameReceived(ARFrame frame);
示例12: onAudioFrameReceived
import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
/**
* Called when a audio frame has been received
* Called on a separate thread
* @param frame the audio frame
*/
void onAudioFrameReceived(ARFrame frame);