|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
#include <utils/Log.h>
|
|
|
|
|
#include <android_media_Utils.h>
|
|
|
|
|
#include <android_runtime/android_view_Surface.h>
|
|
|
|
|
#include <android_runtime/android_hardware_HardwareBuffer.h>
|
|
|
|
|
#include <private/android/AHardwareBufferHelpers.h>
|
|
|
|
|
#include <grallocusage/GrallocUsageConversion.h>
|
|
|
|
|
|
|
|
|
|
using namespace android;
|
|
|
|
@ -263,7 +263,7 @@ AImageReader::init() {
|
|
|
|
|
PublicFormat publicFormat = static_cast<PublicFormat>(mFormat);
|
|
|
|
|
mHalFormat = android_view_Surface_mapPublicFormatToHalFormat(publicFormat);
|
|
|
|
|
mHalDataSpace = android_view_Surface_mapPublicFormatToHalDataspace(publicFormat);
|
|
|
|
|
mHalUsage = android_hardware_HardwareBuffer_convertToGrallocUsageBits(mUsage);
|
|
|
|
|
mHalUsage = AHardwareBuffer_convertToGrallocUsageBits(mUsage);
|
|
|
|
|
|
|
|
|
|
sp<IGraphicBufferProducer> gbProducer;
|
|
|
|
|
sp<IGraphicBufferConsumer> gbConsumer;
|
|
|
|
|