Lines Matching refs:gralloc4

299             if (!gralloc4::isStandardPlaneLayoutComponentType(planeLayoutComponent.type)) {  in lock()
464 return get(bufferHandle, gralloc4::MetadataType_BufferId, gralloc4::decodeBufferId, in getBufferId()
469 return get(bufferHandle, gralloc4::MetadataType_Name, gralloc4::decodeName, outName); in getName()
473 return get(bufferHandle, gralloc4::MetadataType_Width, gralloc4::decodeWidth, outWidth); in getWidth()
477 return get(bufferHandle, gralloc4::MetadataType_Height, gralloc4::decodeHeight, outHeight); in getHeight()
482 return get(bufferHandle, gralloc4::MetadataType_LayerCount, gralloc4::decodeLayerCount, in getLayerCount()
488 return get(bufferHandle, gralloc4::MetadataType_PixelFormatRequested, in getPixelFormatRequested()
489 gralloc4::decodePixelFormatRequested, outPixelFormatRequested); in getPixelFormatRequested()
494 return get(bufferHandle, gralloc4::MetadataType_PixelFormatFourCC, in getPixelFormatFourCC()
495 gralloc4::decodePixelFormatFourCC, outPixelFormatFourCC); in getPixelFormatFourCC()
500 return get(bufferHandle, gralloc4::MetadataType_PixelFormatModifier, in getPixelFormatModifier()
501 gralloc4::decodePixelFormatModifier, outPixelFormatModifier); in getPixelFormatModifier()
505 return get(bufferHandle, gralloc4::MetadataType_Usage, gralloc4::decodeUsage, outUsage); in getUsage()
510 return get(bufferHandle, gralloc4::MetadataType_AllocationSize, gralloc4::decodeAllocationSize, in getAllocationSize()
516 return get(bufferHandle, gralloc4::MetadataType_ProtectedContent, in getProtectedContent()
517 gralloc4::decodeProtectedContent, outProtectedContent); in getProtectedContent()
522 return get(bufferHandle, gralloc4::MetadataType_Compression, gralloc4::decodeCompression, in getCompression()
536 if (!gralloc4::isStandardCompression(compression)) { in getCompression()
539 *outCompression = gralloc4::getStandardCompressionValue(compression); in getCompression()
545 return get(bufferHandle, gralloc4::MetadataType_Interlaced, gralloc4::decodeInterlaced, in getInterlaced()
559 if (!gralloc4::isStandardInterlaced(interlaced)) { in getInterlaced()
562 *outInterlaced = gralloc4::getStandardInterlacedValue(interlaced); in getInterlaced()
568 return get(bufferHandle, gralloc4::MetadataType_ChromaSiting, gralloc4::decodeChromaSiting, in getChromaSiting()
582 if (!gralloc4::isStandardChromaSiting(chromaSiting)) { in getChromaSiting()
585 *outChromaSiting = gralloc4::getStandardChromaSitingValue(chromaSiting); in getChromaSiting()
591 return get(bufferHandle, gralloc4::MetadataType_PlaneLayouts, gralloc4::decodePlaneLayouts, in getPlaneLayouts()
601 status_t error = get(bufferHandle, gralloc4::MetadataType_Dataspace, gralloc4::decodeDataspace, in getDataspace()
614 return get(bufferHandle, gralloc4::MetadataType_BlendMode, gralloc4::decodeBlendMode, in getBlendMode()
620 return get(bufferHandle, gralloc4::MetadataType_Smpte2086, gralloc4::decodeSmpte2086, in getSmpte2086()
626 return get(bufferHandle, gralloc4::MetadataType_Cta861_3, gralloc4::decodeCta861_3, in getCta861_3()
632 return get(bufferHandle, gralloc4::MetadataType_Smpte2094_40, gralloc4::decodeSmpte2094_40, in getSmpte2094_40()
675 gralloc4::MetadataType_PixelFormatFourCC, gralloc4::decodePixelFormatFourCC, in getDefaultPixelFormatFourCC()
684 gralloc4::MetadataType_PixelFormatModifier, in getDefaultPixelFormatModifier()
685 gralloc4::decodePixelFormatModifier, outPixelFormatModifier); in getDefaultPixelFormatModifier()
693 gralloc4::MetadataType_AllocationSize, gralloc4::decodeAllocationSize, in getDefaultAllocationSize()
702 gralloc4::MetadataType_ProtectedContent, gralloc4::decodeProtectedContent, in getDefaultProtectedContent()
709 return getDefault(width, height, format, layerCount, usage, gralloc4::MetadataType_Compression, in getDefaultCompression()
710 gralloc4::decodeCompression, outCompression); in getDefaultCompression()
724 if (!gralloc4::isStandardCompression(compression)) { in getDefaultCompression()
727 *outCompression = gralloc4::getStandardCompressionValue(compression); in getDefaultCompression()
734 return getDefault(width, height, format, layerCount, usage, gralloc4::MetadataType_Interlaced, in getDefaultInterlaced()
735 gralloc4::decodeInterlaced, outInterlaced); in getDefaultInterlaced()
749 if (!gralloc4::isStandardInterlaced(interlaced)) { in getDefaultInterlaced()
752 *outInterlaced = gralloc4::getStandardInterlacedValue(interlaced); in getDefaultInterlaced()
759 return getDefault(width, height, format, layerCount, usage, gralloc4::MetadataType_ChromaSiting, in getDefaultChromaSiting()
760 gralloc4::decodeChromaSiting, outChromaSiting); in getDefaultChromaSiting()
775 if (!gralloc4::isStandardChromaSiting(chromaSiting)) { in getDefaultChromaSiting()
778 *outChromaSiting = gralloc4::getStandardChromaSitingValue(chromaSiting); in getDefaultChromaSiting()
785 return getDefault(width, height, format, layerCount, usage, gralloc4::MetadataType_PlaneLayouts, in getDefaultPlaneLayouts()
786 gralloc4::decodePlaneLayouts, outPlaneLayouts); in getDefaultPlaneLayouts()
819 if (!gralloc4::isStandardMetadataType(tmpMetadataDump.metadataType)) { in metadataDumpHelper()
823 gralloc4::getStandardMetadataTypeValue( in metadataDumpHelper()
852 gralloc4::decodeBufferId, &bufferId); in bufferDumpHelper()
856 error = metadataDumpHelper(bufferDump, StandardMetadataType::NAME, gralloc4::decodeName, &name); in bufferDumpHelper()
860 error = metadataDumpHelper(bufferDump, StandardMetadataType::WIDTH, gralloc4::decodeWidth, in bufferDumpHelper()
865 error = metadataDumpHelper(bufferDump, StandardMetadataType::HEIGHT, gralloc4::decodeHeight, in bufferDumpHelper()
871 gralloc4::decodeLayerCount, &layerCount); in bufferDumpHelper()
876 gralloc4::decodePixelFormatRequested, &pixelFormatRequested); in bufferDumpHelper()
881 gralloc4::decodePixelFormatFourCC, &pixelFormatFourCC); in bufferDumpHelper()
886 gralloc4::decodePixelFormatModifier, &pixelFormatModifier); in bufferDumpHelper()
890 error = metadataDumpHelper(bufferDump, StandardMetadataType::USAGE, gralloc4::decodeUsage, in bufferDumpHelper()
896 gralloc4::decodeAllocationSize, &allocationSize); in bufferDumpHelper()
901 gralloc4::decodeProtectedContent, &protectedContent); in bufferDumpHelper()
906 gralloc4::decodeCompression, &compression); in bufferDumpHelper()
911 gralloc4::decodeInterlaced, &interlaced); in bufferDumpHelper()
916 gralloc4::decodeChromaSiting, &chromaSiting); in bufferDumpHelper()
921 gralloc4::decodePlaneLayouts, &planeLayouts); in bufferDumpHelper()
938 bool isCompressed = !gralloc4::isStandardCompression(compression) || in bufferDumpHelper()
939 (gralloc4::getStandardCompressionValue(compression) != ui::Compression::NONE); in bufferDumpHelper()
942 *outDump << gralloc4::getCompressionName(compression) << "\n"; in bufferDumpHelper()
956 *outDump << gralloc4::getPlaneLayoutComponentTypeName(planeLayoutComponent.type); in bufferDumpHelper()
976 << ", interlaced: " << gralloc4::getInterlacedName(interlaced) in bufferDumpHelper()
977 << ", chroma siting:" << gralloc4::getChromaSitingName(chromaSiting) << "\n"; in bufferDumpHelper()