【发布时间】:2014-09-22 06:23:40
【问题描述】:
我正在使用下面的代码连续截取包含图像的视图。我每秒可以拍摄 12-13 张图像(位图),但从 12-13 张图像创建视频不会产生良好的质量。所以 我想知道如何每秒拍摄 24-25 张图像(位图)。 谁能告诉我其他 android 相关的库,这样可以在一秒钟内拍摄 24-25 张图像(位图)。
以下是代码运行 125 次,因此我每秒可以获得 24-25 张图像,但我获得了 12-13 张图像。我正在尝试 5 秒,所以检查是
private void putCapturedBitmapToQueue()
{
llCaptureArea.setDrawingCacheEnabled(true);
llCaptureArea.buildDrawingCache();
Bitmap objBitmap = Bitmap.createBitmap(llCaptureArea.getDrawingCache());
llCaptureArea.setDrawingCacheEnabled(false);
queBitmap.add(new SaveBitmap(Integer.toString(iCountIndex), objBitmap.copy(Config.RGB_565, false)));
objBitmap.recycle();
iCountIndex++;
if(iCountIndex < 126)
{
objBitmap = null;
putCapturedBitmapToQueue();
}
}
【问题讨论】:
标签: android bitmap android-view android-image android-bitmap