Lines Matching refs:AImageReader

44 const char* AImageReader::kCallbackFpKey = "Callback";
45 const char* AImageReader::kContextKey = "Context";
46 const char* AImageReader::kGraphicBufferKey = "GraphicBuffer";
53 AImageReader::isSupportedFormatAndUsage(int32_t format, uint64_t usage) { in isSupportedFormatAndUsage()
86 AImageReader::getNumPlanesForFormat(int32_t format) { in getNumPlanesForFormat()
115 AImageReader::FrameListener::onFrameAvailable(const BufferItem& /*item*/) { in onFrameAvailable()
116 sp<AImageReader> reader = mReader.promote(); in onFrameAvailable()
126 sp<AMessage> msg = new AMessage(AImageReader::kWhatImageAvailable, reader->mHandler); in onFrameAvailable()
127 msg->setPointer(AImageReader::kCallbackFpKey, (void *) mListener.onImageAvailable); in onFrameAvailable()
128 msg->setPointer(AImageReader::kContextKey, mListener.context); in onFrameAvailable()
133 AImageReader::FrameListener::setImageListener(AImageReader_ImageListener* listener) { in setImageListener()
145 AImageReader::BufferRemovedListener::onBufferFreed(const wp<GraphicBuffer>& graphicBuffer) { in onBufferFreed()
146 sp<AImageReader> reader = mReader.promote(); in onBufferFreed()
162 sp<AMessage> msg = new AMessage(AImageReader::kWhatBufferRemoved, reader->mHandler); in onBufferFreed()
164 AImageReader::kCallbackFpKey, (void*) mListener.onBufferRemoved); in onBufferFreed()
165 msg->setPointer(AImageReader::kContextKey, mListener.context); in onBufferFreed()
166 msg->setObject(AImageReader::kGraphicBufferKey, gBuffer); in onBufferFreed()
171 AImageReader::BufferRemovedListener::setBufferRemovedListener( in setBufferRemovedListener()
184 AImageReader::setImageListenerLocked(AImageReader_ImageListener* listener) { in setImageListenerLocked()
189 AImageReader::setImageListener(AImageReader_ImageListener* listener) { in setImageListener()
195 AImageReader::setBufferRemovedListenerLocked(AImageReader_BufferRemovedListener* listener) { in setBufferRemovedListenerLocked()
200 AImageReader::setBufferRemovedListener(AImageReader_BufferRemovedListener* listener) { in setBufferRemovedListener()
205 void AImageReader::CallbackHandler::onMessageReceived( in onMessageReceived()
261 AImageReader::AImageReader(int32_t width, in AImageReader() function in AImageReader
275 AImageReader::~AImageReader() { in ~AImageReader()
281 AImageReader::init() { in init()
355 void AImageReader::close() { in close()
406 AImageReader::acquireImageLocked(/*out*/AImage** image, /*out*/int* acquireFenceFd) { in acquireImageLocked()
504 AImageReader::getBufferItemLocked() { in getBufferItemLocked()
516 AImageReader::returnBufferItemLocked(BufferItem* buffer) { in returnBufferItemLocked()
521 AImageReader::releaseImageLocked(AImage* image, int releaseFenceFd, bool clearCache) { in releaseImageLocked()
566 media_status_t AImageReader::getWindowNativeHandle(native_handle **handle) { in getWindowNativeHandle()
586 AImageReader::getBufferWidth(BufferItem* buffer) { in getBufferWidth()
597 AImageReader::getBufferHeight(BufferItem* buffer) { in getBufferHeight()
608 AImageReader::acquireNextImage(/*out*/AImage** image, /*out*/int* acquireFenceFd) { in acquireNextImage()
614 AImageReader::acquireLatestImage(/*out*/AImage** image, /*out*/int* acquireFenceFd) { in acquireLatestImage()
678 /*out*/AImageReader** reader) { in AImageReader_new()
688 AImageReader *reader, /*out*/native_handle_t **handle) { in AImageReader_getWindowNativeHandle()
700 int32_t maxImages, /*out*/ AImageReader** reader) { in AImageReader_newWithUsage()
721 if (!AImageReader::isSupportedFormatAndUsage(format, usage)) { in AImageReader_newWithUsage()
732 AImageReader* tmpReader = new AImageReader( in AImageReader_newWithUsage()
750 void AImageReader_delete(AImageReader* reader) { in AImageReader_delete()
760 media_status_t AImageReader_getWindow(AImageReader* reader, /*out*/ANativeWindow** window) { in AImageReader_getWindow()
772 media_status_t AImageReader_getWidth(const AImageReader* reader, /*out*/int32_t* width) { in AImageReader_getWidth()
784 media_status_t AImageReader_getHeight(const AImageReader* reader, /*out*/int32_t* height) { in AImageReader_getHeight()
796 media_status_t AImageReader_getFormat(const AImageReader* reader, /*out*/int32_t* format) { in AImageReader_getFormat()
808 media_status_t AImageReader_getMaxImages(const AImageReader* reader, /*out*/int32_t* maxImages) { in AImageReader_getMaxImages()
820 media_status_t AImageReader_acquireNextImage(AImageReader* reader, /*out*/AImage** image) { in AImageReader_acquireNextImage()
826 media_status_t AImageReader_acquireLatestImage(AImageReader* reader, /*out*/AImage** image) { in AImageReader_acquireLatestImage()
833 AImageReader* reader, /*out*/AImage** image, /*out*/int* acquireFenceFd) { in AImageReader_acquireNextImageAsync()
845 AImageReader* reader, /*out*/AImage** image, /*out*/int* acquireFenceFd) { in AImageReader_acquireLatestImageAsync()
857 AImageReader* reader, AImageReader_ImageListener* listener) { in AImageReader_setImageListener()
870 AImageReader* reader, AImageReader_BufferRemovedListener* listener) { in AImageReader_setBufferRemovedListener()