Home
last modified time | relevance | path

Searched refs:producerBuffer (Results 1 – 4 of 4) sorted by relevance

/packages/services/DeviceAsWebcam/jni/
DSdkFrameProvider.cpp129 Buffer* producerBuffer = mBufferProducer->getFreeBufferIfAvailable(); in encodeImage() local
130 if (producerBuffer == nullptr) { in encodeImage()
137 producerBuffer->setTimestamp(static_cast<uint64_t>(timestamp)); in encodeImage()
139 EncodeRequest encodeRequest(desc, producerBuffer, rotation); in encodeImage()
144 void SdkFrameProvider::onEncoded(Buffer* producerBuffer, HardwareBufferDesc& desc, bool success) { in onEncoded() argument
148 static_cast<long>(producerBuffer->getTimestamp())); in onEncoded()
152 mBufferProducer->cancelBuffer(producerBuffer); in onEncoded()
155 if (mBufferProducer->queueFilledBuffer(producerBuffer) != Status::OK) { in onEncoded()
DEncoder.h39 EncodeRequest(HardwareBufferDesc& buffer, Buffer* producerBuffer, uint32_t rotation) in EncodeRequest()
40 : srcBuffer(buffer), dstBuffer(producerBuffer), rotationDegrees(rotation) {} in EncodeRequest()
58 virtual void onEncoded(Buffer* producerBuffer, HardwareBufferDesc& srcBuffer, bool success) = 0;
DSdkFrameProvider.h42 void onEncoded(Buffer* producerBuffer, HardwareBufferDesc& hardwareBufferDesc,
DBuffer.h154 std::vector<std::shared_ptr<Buffer>>* producerBuffer) = 0;