Lines Matching refs:desc
60 HardwareBufferDesc desc; in encodeImage() local
61 if (getHardwareBufferDescFromHardwareBuffer(hardwareBuffer, desc) != Status::OK) { in encodeImage()
65 return encodeImage(desc, timestamp, rotation); in encodeImage()
86 AHardwareBuffer_Desc desc{}; in getHardwareBufferDescFromHardwareBuffer() local
87 AHardwareBuffer_describe(hardwareBuffer, &desc); in getHardwareBufferDescFromHardwareBuffer()
89 uint32_t height = desc.height; in getHardwareBufferDescFromHardwareBuffer()
90 uint32_t width = desc.width; in getHardwareBufferDescFromHardwareBuffer()
91 ret.format = desc.format; in getHardwareBufferDescFromHardwareBuffer()
128 Status SdkFrameProvider::encodeImage(HardwareBufferDesc desc, jlong timestamp, jint rotation) { in encodeImage() argument
133 releaseHardwareBuffer(desc); in encodeImage()
139 EncodeRequest encodeRequest(desc, producerBuffer, rotation); in encodeImage()
144 void SdkFrameProvider::onEncoded(Buffer* producerBuffer, HardwareBufferDesc& desc, bool success) { in onEncoded() argument
145 releaseHardwareBuffer(desc); in onEncoded()
161 void SdkFrameProvider::releaseHardwareBuffer(const HardwareBufferDesc& desc) { in releaseHardwareBuffer() argument
165 auto it = mBufferIdToAHardwareBuffer.find(desc.bufferId); in releaseHardwareBuffer()
168 ALOGE("Couldn't find AHardwareBuffer for buffer id %u, what ?", desc.bufferId); in releaseHardwareBuffer()