Camera: Set inverse display transform if needed

Shared surface outputs currently re-use the transformation
from the input queue directly. However the inverse display
flag will get reset by the queue logic and needs to be set
again before the incoming buffers are sent to the registered
outputs.

Bug: 110641448
Test: Manual using application,
Camera CTS
Change-Id: I36859eb41ccab8459bbd97bad3ea0b6a8575489c
gugelfrei
Emilian Peev 6 years ago
parent a1caa67b77
commit 3bdcdff8ce

@ -493,6 +493,10 @@ void Camera3StreamSplitter::onFrameAvailable(const BufferItem& /*item*/) {
SP_LOGV("acquired buffer %" PRId64 " from input at slot %d",
bufferItem.mGraphicBuffer->getId(), bufferItem.mSlot);
if (bufferItem.mTransformToDisplayInverse) {
bufferItem.mTransform |= NATIVE_WINDOW_TRANSFORM_INVERSE_DISPLAY;
}
// Attach and queue the buffer to each of the outputs
BufferTracker& tracker = *(mBuffers[bufferId]);

Loading…
Cancel
Save