Lines Matching refs:reader

51                                          /*out*/ AImageReader**& reader);
122 sp<AImageReader> reader = mReader.promote(); in onFrameAvailable() local
123 if (reader == nullptr) { in onFrameAvailable()
132 sp<AMessage> msg = new AMessage(AImageReader::kWhatImageAvailable, reader->mHandler); in onFrameAvailable()
152 sp<AImageReader> reader = mReader.promote(); in onBufferFreed() local
153 if (reader == nullptr) { in onBufferFreed()
168 sp<AMessage> msg = new AMessage(AImageReader::kWhatBufferRemoved, reader->mHandler); in onBufferFreed()
661 /*out*/ AImageReader**& reader) { in validateParameters() argument
662 if (reader == nullptr) { in validateParameters()
723 /*out*/AImageReader** reader) { in AImageReader_new() argument
726 width, height, format, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN, maxImages, reader); in AImageReader_new()
733 AImageReader *reader, /*out*/native_handle_t **handle) { in AImageReader_getWindowNativeHandle() argument
734 if (reader == nullptr || handle == nullptr) { in AImageReader_getWindowNativeHandle()
737 return reader->getWindowNativeHandle(handle); in AImageReader_getWindowNativeHandle()
746 /*out*/ AImageReader** reader) { in AImageReader_newWithDataSpace() argument
752 return AImageReader_newWithUsage(width, height, format, usage, maxImages, reader); in AImageReader_newWithDataSpace()
758 int32_t maxImages, /*out*/ AImageReader** reader) { in AImageReader_newWithUsage() argument
761 validateParameters(width, height, format, usage, maxImages, reader); in AImageReader_newWithUsage()
779 *reader = tmpReader; in AImageReader_newWithUsage()
780 (*reader)->incStrong((void*) AImageReader_new); in AImageReader_newWithUsage()
785 void AImageReader_delete(AImageReader* reader) { in AImageReader_delete() argument
787 if (reader != nullptr) { in AImageReader_delete()
788 reader->close(); in AImageReader_delete()
789 reader->decStrong((void*) AImageReader_delete); in AImageReader_delete()
795 media_status_t AImageReader_getWindow(AImageReader* reader, /*out*/ANativeWindow** window) { in AImageReader_getWindow() argument
797 if (reader == nullptr || window == nullptr) { in AImageReader_getWindow()
799 __FUNCTION__, reader, window); in AImageReader_getWindow()
802 *window = reader->getWindow(); in AImageReader_getWindow()
807 media_status_t AImageReader_getWidth(const AImageReader* reader, /*out*/int32_t* width) { in AImageReader_getWidth() argument
809 if (reader == nullptr || width == nullptr) { in AImageReader_getWidth()
811 __FUNCTION__, reader, width); in AImageReader_getWidth()
814 *width = reader->getWidth(); in AImageReader_getWidth()
819 media_status_t AImageReader_getHeight(const AImageReader* reader, /*out*/int32_t* height) { in AImageReader_getHeight() argument
821 if (reader == nullptr || height == nullptr) { in AImageReader_getHeight()
823 __FUNCTION__, reader, height); in AImageReader_getHeight()
826 *height = reader->getHeight(); in AImageReader_getHeight()
831 media_status_t AImageReader_getFormat(const AImageReader* reader, /*out*/int32_t* format) { in AImageReader_getFormat() argument
833 if (reader == nullptr || format == nullptr) { in AImageReader_getFormat()
835 __FUNCTION__, reader, format); in AImageReader_getFormat()
838 *format = reader->getFormat(); in AImageReader_getFormat()
843 media_status_t AImageReader_getMaxImages(const AImageReader* reader, /*out*/int32_t* maxImages) { in AImageReader_getMaxImages() argument
845 if (reader == nullptr || maxImages == nullptr) { in AImageReader_getMaxImages()
847 __FUNCTION__, reader, maxImages); in AImageReader_getMaxImages()
850 *maxImages = reader->getMaxImages(); in AImageReader_getMaxImages()
855 media_status_t AImageReader_acquireNextImage(AImageReader* reader, /*out*/AImage** image) { in AImageReader_acquireNextImage() argument
857 return AImageReader_acquireNextImageAsync(reader, image, nullptr); in AImageReader_acquireNextImage()
861 media_status_t AImageReader_acquireLatestImage(AImageReader* reader, /*out*/AImage** image) { in AImageReader_acquireLatestImage() argument
863 return AImageReader_acquireLatestImageAsync(reader, image, nullptr); in AImageReader_acquireLatestImage()
868 AImageReader* reader, /*out*/AImage** image, /*out*/int* acquireFenceFd) { in AImageReader_acquireNextImageAsync() argument
870 if (reader == nullptr || image == nullptr) { in AImageReader_acquireNextImageAsync()
872 __FUNCTION__, reader, image); in AImageReader_acquireNextImageAsync()
875 return reader->acquireNextImage(image, acquireFenceFd); in AImageReader_acquireNextImageAsync()
880 AImageReader* reader, /*out*/AImage** image, /*out*/int* acquireFenceFd) { in AImageReader_acquireLatestImageAsync() argument
882 if (reader == nullptr || image == nullptr) { in AImageReader_acquireLatestImageAsync()
884 __FUNCTION__, reader, image); in AImageReader_acquireLatestImageAsync()
887 return reader->acquireLatestImage(image, acquireFenceFd); in AImageReader_acquireLatestImageAsync()
892 AImageReader* reader, AImageReader_ImageListener* listener) { in AImageReader_setImageListener() argument
894 if (reader == nullptr) { in AImageReader_setImageListener()
895 ALOGE("%s: invalid argument! reader %p", __FUNCTION__, reader); in AImageReader_setImageListener()
899 reader->setImageListener(listener); in AImageReader_setImageListener()
905 AImageReader* reader, AImageReader_BufferRemovedListener* listener) { in AImageReader_setBufferRemovedListener() argument
907 if (reader == nullptr) { in AImageReader_setBufferRemovedListener()
908 ALOGE("%s: invalid argument! reader %p", __FUNCTION__, reader); in AImageReader_setBufferRemovedListener()
912 reader->setBufferRemovedListener(listener); in AImageReader_setBufferRemovedListener()