Lines Matching defs:output

86 status_t MediaSync::setSurface(const sp<IGraphicBufferProducer> &output) {
89 if (output == mOutput) {
90 return NO_ERROR; // same output surface.
93 if (output == NULL && mSyncSettings.mSource == AVSYNC_SOURCE_VSYNC) {
94 ALOGE("setSurface: output surface is used as sync source and cannot be removed.");
98 if (output != NULL) {
100 output->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &newUsage);
102 // Check usage flags only when current output surface has been used to create input surface.
106 // New output surface is not allowed to add new usage flag except ignored ones.
108 ALOGE("setSurface: new output surface has new usage flag not used by current one.");
113 // Try to connect to new output surface. If failed, current output surface will not
116 sp<OutputListener> listener(new OutputListener(this, output));
117 IInterface::asBinder(output)->linkToDeath(listener);
119 output->connect(listener,
142 mOutput = output;
214 // propagate usage bits from output surface
405 ALOGE("setSyncSettings: vsync sync source requires an output surface");
666 // Attach and queue the buffer to the output.
670 ALOGE_IF(status != NO_ERROR, "attaching buffer to output failed (%d)", status);
674 ALOGE_IF(status != NO_ERROR, "queueing buffer to output failed (%d)", status);
680 // If the output has been abandoned, move on.
687 // Something is wrong since this buffer should be held by output now, bail.
694 ALOGV("queued buffer %#llx to output", (long long)bufferItem.mGraphicBuffer->getId());
697 void MediaSync::onBufferReleasedByOutput(sp<IGraphicBufferProducer> &output) {
700 if (output != mOutput) {
701 return; // This is not the current output, ignore.
707 ALOGE_IF(status != NO_ERROR, "detaching buffer from output failed (%d)", status);
710 // If the output has been abandoned, we can't do anything else,
716 ALOGV("detached buffer %#llx from output", (long long)buffer->getId());
739 ALOGE("output returned unknown buffer");
767 ALOGE("the %s has abandoned me", (isInput ? "input" : "output"));
829 const sp<IGraphicBufferProducer> &output)
831 mOutput(output) {}