Lines Matching refs:surface

621 status_t ACodec::setSurface(const sp<Surface> &surface) {
623 msg->setObject("surface", surface);
639 const sp<PersistentSurface> &surface) {
641 msg->setObject("input-surface", surface);
688 status_t ACodec::handleSetSurface(const sp<Surface> &surface) {
689 // allow keeping unset surface
690 if (surface == NULL) {
692 ALOGW("cannot unset a surface");
698 // cannot switch from bytebuffers to surface
700 ALOGW("component was not configured with a surface");
704 ANativeWindow *nativeWindow = surface.get();
707 mNativeWindow = surface;
711 // we do not support changing a tunneled surface after start
713 ALOGW("cannot change tunneled surface");
726 // New output surface is not allowed to add new usage flag except ignored ones.
732 // get min undequeued count. We cannot switch to a surface that has a higher
744 ALOGE("new surface holds onto more buffers (%d) than planned for (%zu)",
750 // set up surface to the same count
752 ALOGV("setting up surface for %zu buffers", buffers.size());
762 surface->getIGraphicBufferProducer()->allowAllocation(true);
764 // for meta data mode, we move dequeud buffers to the new surface.
776 err = surface->attachBuffer(info.mGraphicBuffer->getNativeBuffer());
778 ALOGE("failed to attach buffer %p to the new surface: %s (%d)",
785 // cancel undequeued buffers to new surface
795 ALOGE("failed to cancel buffer %p to the new surface: %s (%d)",
803 (void)surface->getIGraphicBufferProducer()->allowAllocation(false);
1171 // FIXME: assume that surface is controlled by app (native window
1172 // returns the number for the case when surface is not controlled by app)
1489 // that a known yet stale buffer can return from a surface that we
3149 // surface output, do not specify an output format, but expect a "usable" standard
3602 // subsequent initial video encoder setup for surface mode
5396 CHECK(msg->findObject("surface", &obj));
5974 // as we will soon requeue this buffer to the surface. While in theory we could still keep
5975 // track of buffers that are requeued to the surface, it is better to add support to the
6136 // save buffers sent to the surface so we can get render time when they return
6725 CHECK(msg->findObject("input-surface", &obj));
6726 sp<PersistentSurface> surface = static_cast<PersistentSurface *>(obj.get());
6727 mCodec->mGraphicBufferSource = surface->getBufferSource();
6971 ALOGE("buffers should be owned by us or the surface");
7180 ALOGE("[%s] Invalid to set input buffer time offset without surface",
7199 ALOGE("[%s] Invalid to set start time without surface",
7216 ALOGE("[%s] Invalid to set suspend without surface",
7235 ALOGE("[%s] Invalid to set stop time without surface",