Lines Matching refs:reader

116     sp<AImageReader> reader = mReader.promote();  in onFrameAvailable()  local
117 if (reader == nullptr) { in onFrameAvailable()
126 sp<AMessage> msg = new AMessage(AImageReader::kWhatImageAvailable, reader->mHandler); in onFrameAvailable()
146 sp<AImageReader> reader = mReader.promote(); in onBufferFreed() local
147 if (reader == nullptr) { in onBufferFreed()
162 sp<AMessage> msg = new AMessage(AImageReader::kWhatBufferRemoved, reader->mHandler); in onBufferFreed()
678 /*out*/AImageReader** reader) { in AImageReader_new() argument
681 width, height, format, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN, maxImages, reader); in AImageReader_new()
688 AImageReader *reader, /*out*/native_handle_t **handle) { in AImageReader_getWindowNativeHandle() argument
689 if (reader == nullptr || handle == nullptr) { in AImageReader_getWindowNativeHandle()
692 return reader->getWindowNativeHandle(handle); in AImageReader_getWindowNativeHandle()
700 int32_t maxImages, /*out*/ AImageReader** reader) { in AImageReader_newWithUsage() argument
727 if (reader == nullptr) { in AImageReader_newWithUsage()
744 *reader = tmpReader; in AImageReader_newWithUsage()
745 (*reader)->incStrong((void*) AImageReader_new); in AImageReader_newWithUsage()
750 void AImageReader_delete(AImageReader* reader) { in AImageReader_delete() argument
752 if (reader != nullptr) { in AImageReader_delete()
753 reader->close(); in AImageReader_delete()
754 reader->decStrong((void*) AImageReader_delete); in AImageReader_delete()
760 media_status_t AImageReader_getWindow(AImageReader* reader, /*out*/ANativeWindow** window) { in AImageReader_getWindow() argument
762 if (reader == nullptr || window == nullptr) { in AImageReader_getWindow()
764 __FUNCTION__, reader, window); in AImageReader_getWindow()
767 *window = reader->getWindow(); in AImageReader_getWindow()
772 media_status_t AImageReader_getWidth(const AImageReader* reader, /*out*/int32_t* width) { in AImageReader_getWidth() argument
774 if (reader == nullptr || width == nullptr) { in AImageReader_getWidth()
776 __FUNCTION__, reader, width); in AImageReader_getWidth()
779 *width = reader->getWidth(); in AImageReader_getWidth()
784 media_status_t AImageReader_getHeight(const AImageReader* reader, /*out*/int32_t* height) { in AImageReader_getHeight() argument
786 if (reader == nullptr || height == nullptr) { in AImageReader_getHeight()
788 __FUNCTION__, reader, height); in AImageReader_getHeight()
791 *height = reader->getHeight(); in AImageReader_getHeight()
796 media_status_t AImageReader_getFormat(const AImageReader* reader, /*out*/int32_t* format) { in AImageReader_getFormat() argument
798 if (reader == nullptr || format == nullptr) { in AImageReader_getFormat()
800 __FUNCTION__, reader, format); in AImageReader_getFormat()
803 *format = reader->getFormat(); in AImageReader_getFormat()
808 media_status_t AImageReader_getMaxImages(const AImageReader* reader, /*out*/int32_t* maxImages) { in AImageReader_getMaxImages() argument
810 if (reader == nullptr || maxImages == nullptr) { in AImageReader_getMaxImages()
812 __FUNCTION__, reader, maxImages); in AImageReader_getMaxImages()
815 *maxImages = reader->getMaxImages(); in AImageReader_getMaxImages()
820 media_status_t AImageReader_acquireNextImage(AImageReader* reader, /*out*/AImage** image) { in AImageReader_acquireNextImage() argument
822 return AImageReader_acquireNextImageAsync(reader, image, nullptr); in AImageReader_acquireNextImage()
826 media_status_t AImageReader_acquireLatestImage(AImageReader* reader, /*out*/AImage** image) { in AImageReader_acquireLatestImage() argument
828 return AImageReader_acquireLatestImageAsync(reader, image, nullptr); in AImageReader_acquireLatestImage()
833 AImageReader* reader, /*out*/AImage** image, /*out*/int* acquireFenceFd) { in AImageReader_acquireNextImageAsync() argument
835 if (reader == nullptr || image == nullptr) { in AImageReader_acquireNextImageAsync()
837 __FUNCTION__, reader, image); in AImageReader_acquireNextImageAsync()
840 return reader->acquireNextImage(image, acquireFenceFd); in AImageReader_acquireNextImageAsync()
845 AImageReader* reader, /*out*/AImage** image, /*out*/int* acquireFenceFd) { in AImageReader_acquireLatestImageAsync() argument
847 if (reader == nullptr || image == nullptr) { in AImageReader_acquireLatestImageAsync()
849 __FUNCTION__, reader, image); in AImageReader_acquireLatestImageAsync()
852 return reader->acquireLatestImage(image, acquireFenceFd); in AImageReader_acquireLatestImageAsync()
857 AImageReader* reader, AImageReader_ImageListener* listener) { in AImageReader_setImageListener() argument
859 if (reader == nullptr) { in AImageReader_setImageListener()
860 ALOGE("%s: invalid argument! reader %p", __FUNCTION__, reader); in AImageReader_setImageListener()
864 reader->setImageListener(listener); in AImageReader_setImageListener()
870 AImageReader* reader, AImageReader_BufferRemovedListener* listener) { in AImageReader_setBufferRemovedListener() argument
872 if (reader == nullptr) { in AImageReader_setBufferRemovedListener()
873 ALOGE("%s: invalid argument! reader %p", __FUNCTION__, reader); in AImageReader_setBufferRemovedListener()
877 reader->setBufferRemovedListener(listener); in AImageReader_setBufferRemovedListener()