Lines Matching full:aimage
34 AImage::AImage(AImageReader* reader, int32_t format, uint64_t usage, BufferItem* buffer,
41 AImage::~AImage() {
44 "Error: AImage %p is deleted before returning buffer to AImageReader!", this);
49 AImage::isClosed() const {
55 AImage::close(int releaseFenceFd) {
62 LOG_ALWAYS_FATAL("Error: AImage not closed before AImageReader close!");
74 AImage::free() {
76 ALOGE("Cannot free AImage before close!");
84 AImage::lockReader() const {
94 AImage::unlockReader() const {
104 AImage::getWidth(int32_t* width) const {
118 AImage::getHeight(int32_t* height) const {
132 AImage::getFormat(int32_t* format) const {
146 AImage::getNumPlanes(int32_t* numPlanes) const {
160 AImage::getTimestamp(int64_t* timestamp) const {
173 media_status_t AImage::lockImage() {
175 LOG_ALWAYS_FATAL("%s: AImage %p has no buffer.", __FUNCTION__, this);
180 ALOGE("%s: AImage %p does not have any software read usage bits set, usage=%" PRIu64 "",
197 ALOGE("%s: AImage %p failed to lock, error=%d", __FUNCTION__, this, ret);
207 media_status_t AImage::unlockImageIfLocked(int* fenceFd) {
214 LOG_ALWAYS_FATAL("%s: AImage %p has no buffer.", __FUNCTION__, this);
238 AImage::getPlanePixelStride(int planeIdx, /*out*/int32_t* pixelStride) const {
298 AImage::getPlaneRowStride(int planeIdx, /*out*/int32_t* rowStride) const {
381 AImage::getJpegSize() const {
415 AImage::getPlaneData(int planeIdx,/*out*/uint8_t** data, /*out*/int* dataLength) const {
599 AImage::getHardwareBuffer(/*out*/AHardwareBuffer** buffer) const {
601 ALOGE("%s: AImage %p has no buffer.", __FUNCTION__, this);
611 void AImage_delete(AImage* image) {
618 void AImage_deleteAsync(AImage* image, int releaseFenceFd) {
633 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) {
644 media_status_t AImage_getHeight(const AImage* image, /*out*/int32_t* height) {
655 media_status_t AImage_getFormat(const AImage* image, /*out*/int32_t* format) {
666 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) {
673 // For now AImage only supports camera outputs where cropRect is always full window
692 media_status_t AImage_getTimestamp(const AImage* image, /*out*/int64_t* timestampNs) {
703 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) {
715 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) {
722 media_status_t ret = const_cast<AImage*>(image)->lockImage();
733 const AImage* image, int planeIdx, /*out*/int32_t* rowStride) {
740 media_status_t ret = const_cast<AImage*>(image)->lockImage();
751 const AImage* image, int planeIdx,
759 media_status_t ret = const_cast<AImage*>(image)->lockImage();
770 const AImage* image, /*out*/AHardwareBuffer** buffer) {