Searched refs:surface (Results 76 - 100 of 309) sorted by relevance

1234567891011>>

/frameworks/av/media/ndk/
H A DNdkMediaCodec.cpp234 sp<Surface> surface = NULL; local
236 surface = (Surface*) window;
239 return translate_error(mData->mCodec->configure(nativeFormat, surface,
387 sp<Surface> surface = NULL; local
389 surface = (Surface*) window;
391 return translate_error(mData->mCodec->setSurface(surface));
395 media_status_t AMediaCodec_createInputSurface(AMediaCodec *mData, ANativeWindow **surface) { argument
396 if (surface == NULL || mData == NULL) {
399 *surface = NULL;
407 *surface
413 AMediaCodec_createPersistentInputSurface(ANativeWindow **surface) argument
436 AMediaCodec_setInputSurface( AMediaCodec *mData, ANativeWindow *surface) argument
[all...]
/frameworks/native/libs/vr/libdvr/tests/
H A Ddvr_display_manager-test.cpp44 DvrSurface* surface = nullptr; local
50 attributes, std::extent<decltype(attributes)>::value, &surface);
54 return {UniqueDvrSurface(surface)};
58 const UniqueDvrSurface& surface, uint32_t width, uint32_t height,
62 dvrSurfaceCreateWriteBufferQueue(surface.get(), width, height, format,
226 ASSERT_EQ(0, ret) << "Failed to create surface state object";
391 // Get surface state and verify there are no surfaces.
395 // Get flags for invalid surface index.
398 // Create an application surface.
401 UniqueDvrSurface surface local
57 CreateSurfaceQueue( const UniqueDvrSurface& surface, uint32_t width, uint32_t height, uint32_t format, uint32_t layer_count, uint64_t usage, size_t capacity) argument
442 auto surface = surface_status.take(); local
474 UniqueDvrSurface surface = surface_status.take(); local
541 UniqueDvrSurface surface = surface_status.take(); local
[all...]
/frameworks/base/services/core/java/com/android/server/vr/
H A DVr2dDisplay.java166 Log.w(TAG, "Cannot set the surface because the VD is null.");
271 null /* surface */, flags, null /* callback */, null /* handler */,
305 setSurfaceLocked(null); // clean up and release the surface first.
322 * Set the surface to use with the virtual display.
326 * @param surface The Surface to set.
328 private void setSurfaceLocked(Surface surface) { argument
329 // Change the surface to either a valid surface or a null value.
330 if (mSurface != surface && (surface
[all...]
/frameworks/native/libs/vr/libvrflinger/
H A Dhardware_composer.h62 // Sets up the layer to use a display surface as its content source. The Layer
63 // automatically handles ACQUIRE/RELEASE phases for the surface's buffer train
70 // |index| is the index of this surface in the DirectDisplaySurface array.
71 void Setup(const std::shared_ptr<DirectDisplaySurface>& surface,
92 // associated with a display surface, this method automatically ACQUIRES a new
127 surface_id = surface_source.surface->surface_id();
149 // State when the layer is connected to a surface. Provides the same interface
152 std::shared_ptr<DirectDisplaySurface> surface; member in struct:android::dvr::Layer::SourceSurface
156 SourceSurface(const std::shared_ptr<DirectDisplaySurface>& surface) argument
157 : surface(surfac
[all...]
/frameworks/av/camera/camera2/
H A DCaptureRequest.cpp58 ALOGE("%s: Failed to read surface list size from parcel", __FUNCTION__);
61 ALOGV("%s: Read surface list size = %d", __FUNCTION__, size);
68 ALOGV("%s: Read surface class = %s", __FUNCTION__,
83 sp<Surface> surface; local
85 surface = new Surface(surfaceShim.graphicBufferProducer);
88 mSurfaceList.push_back(surface);
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_env.h60 // includes the display, context, and surface. It is possible to either create
64 // surface.
75 // Inits a new GL environment, including a new surface and context. You
80 // there is already a display, surface and context available (possibly
96 // When rendering to a visible surface, call this to swap between the
103 // Add a surface to the environment. This surface will now be managed (and
104 // owned) by the GLEnv instance. Returns the id of the surface.
105 int AddSurface(const EGLSurface& surface);
107 // Add a window surface t
133 const EGLSurface& surface() const { function in class:android::filterfw::GLEnv
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DEGLLogWrapper.java64 public boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, argument
68 arg("surface", surface);
72 boolean result = mEgl10.eglCopyBuffers(display, surface, native_pixmap);
153 public boolean eglDestroySurface(EGLDisplay display, EGLSurface surface) { argument
156 arg("surface", surface);
159 boolean result = mEgl10.eglDestroySurface(display, surface);
303 public boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, argument
307 arg("surface", surfac
328 eglSwapBuffers(EGLDisplay display, EGLSurface surface) argument
[all...]
/frameworks/native/include/gui/
H A DSurfaceControl.h46 static bool isValid(const sp<SurfaceControl>& surface) { argument
47 return (surface != 0) && surface->isValid();
57 // release surface data from java
100 // freezing the total geometry of a surface until a resize is completed.
/frameworks/base/core/java/android/view/
H A DThreadedRenderer.java61 * RenderThread with surface buffer allocation.
259 * @param translucent True if the surface is translucent, false otherwise
319 // Actual size of the drawing surface.
322 // Insets between the drawing surface and rendered content. These are
326 // Whether the surface has insets. Used to protect opacity.
415 private void updateEnabledState(Surface surface) { argument
416 if (surface == null || !surface.isValid()) {
424 * Initializes the threaded renderer for the specified surface.
426 * @param surface Th
430 initialize(Surface surface) argument
454 initializeIfNeeded(int width, int height, View.AttachInfo attachInfo, Surface surface, Rect surfaceInsets) argument
473 updateSurface(Surface surface) argument
485 pauseSurface(Surface surface) argument
872 copySurfaceInto(Surface surface, Rect srcRect, Bitmap bitmap) argument
1035 nCopySurfaceInto(Surface surface, int srcLeft, int srcTop, int srcRight, int srcBottom, Bitmap bitmap) argument
[all...]
/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp36 status_t EglWindow::createWindow(const sp<IGraphicBufferProducer>& surface) { argument
38 ALOGE("surface already created");
47 surface->query(NATIVE_WINDOW_WIDTH, &mWidth);
48 surface->query(NATIVE_WINDOW_HEIGHT, &mHeight);
50 // Output side (EGL surface to draw on).
51 sp<ANativeWindow> anw = new Surface(surface);
65 ALOGE("surface already created");
H A DEglWindow.h28 * Wraps EGL display, context, surface, config for a window surface.
44 // Creates an EGL window for the supplied surface.
45 status_t createWindow(const sp<IGraphicBufferProducer>& surface);
47 // Creates an EGL pbuffer surface.
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.h80 ANDROID_API void initialize(const sp<Surface>& surface);
81 ANDROID_API void updateSurface(const sp<Surface>& surface);
82 ANDROID_API bool pauseSurface(const sp<Surface>& surface);
131 ANDROID_API static int copySurfaceInto(sp<Surface>& surface,
/frameworks/base/media/java/android/media/projection/
H A DMediaProjection.java101 int width, int height, int dpi, boolean isSecure, @Nullable Surface surface,
105 return dm.createVirtualDisplay(this, name, width, height, dpi, surface,
122 * @param surface The surface to which the content of the virtual display
135 int width, int height, int dpi, int flags, @Nullable Surface surface,
138 return dm.createVirtualDisplay(this, name, width, height, dpi, surface, flags, callback,
100 createVirtualDisplay(@onNull String name, int width, int height, int dpi, boolean isSecure, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
134 createVirtualDisplay(@onNull String name, int width, int height, int dpi, int flags, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
/frameworks/base/opengl/java/javax/microedition/khronos/egl/
H A DEGL10.java98 boolean eglCopyBuffers(EGLDisplay display, EGLSurface surface, Object native_pixmap); argument
105 boolean eglDestroySurface(EGLDisplay display, EGLSurface surface); argument
117 boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value); argument
120 boolean eglSwapBuffers(EGLDisplay display, EGLSurface surface); argument
/frameworks/native/libs/gui/
H A DLayerState.cpp27 output.writeStrongBinder(surface);
54 surface = input.readStrongBinder();
107 output.writeStrongBinder(IInterface::asBinder(surface));
120 surface = interface_cast<IGraphicBufferProducer>(input.readStrongBinder());
/frameworks/native/opengl/libs/EGL/
H A Degl_object.h135 EGLNativeWindowType win, EGLSurface surface,
143 EGLSurface surface; member in class:android::egl_surface_t
190 egl_surface_t* get_surface(EGLSurface surface) { argument
191 return egl_to_native_cast<egl_surface_t>(surface);
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp181 sk_sp<SkSurface> surface) {
187 SkCanvas* canvas = surface->getCanvas();
197 canvas = recorder->beginRecording(surface->width(), surface->height(),
215 surface->getCanvas()->drawPicture(picture);
219 renderOverdraw(layers, clip, nodes, contentDrawBounds, surface);
353 sk_sp<SkSurface> surface) {
355 SkImageInfo offscreenInfo = SkImageInfo::MakeA8(surface->width(), surface->height());
356 sk_sp<SkSurface> offscreen = surface
179 renderFrame(const LayerUpdateQueue& layers, const SkRect& clip, const std::vector<sp<RenderNode>>& nodes, bool opaque, const Rect &contentDrawBounds, sk_sp<SkSurface> surface) argument
351 renderOverdraw(const LayerUpdateQueue& layers, const SkRect& clip, const std::vector<sp<RenderNode>>& nodes, const Rect &contentDrawBounds, sk_sp<SkSurface> surface) argument
[all...]
/frameworks/av/include/media/
H A DIMediaRecorder.h41 virtual status_t setPreviewSurface(const sp<IGraphicBufferProducer>& surface) = 0;
65 virtual status_t setInputSurface(const sp<PersistentSurface>& surface) = 0;
H A DMediaRecorderBase.h46 virtual status_t setPreviewSurface(const sp<IGraphicBufferProducer>& surface) = 0;
63 virtual status_t setInputSurface(const sp<PersistentSurface>& surface) = 0;
/frameworks/av/media/libmedia/include/media/
H A DIMediaRecorder.h41 virtual status_t setPreviewSurface(const sp<IGraphicBufferProducer>& surface) = 0;
65 virtual status_t setInputSurface(const sp<PersistentSurface>& surface) = 0;
H A DMediaRecorderBase.h46 virtual status_t setPreviewSurface(const sp<IGraphicBufferProducer>& surface) = 0;
63 virtual status_t setInputSurface(const sp<PersistentSurface>& surface) = 0;
/frameworks/base/core/jni/
H A Dandroid_view_HardwareLayer.cpp69 jlong layerUpdaterPtr, jobject surface) {
71 sp<GLConsumer> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface));
68 android_view_HardwareLayer_setSurfaceTexture(JNIEnv* env, jobject clazz, jlong layerUpdaterPtr, jobject surface) argument
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_environment.h59 jobject surface);
64 jobject surface,
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.h52 void setImageBits(void* vaddr) { surface.data = (GGLubyte*)vaddr; }
74 GGLSurface surface; member in class:android::EGLTextureObject
/frameworks/native/opengl/tests/gl2_basic/
H A Dgl2_basic.cpp278 EGLSurface surface; local
319 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL);
321 if (surface == EGL_NO_SURFACE) {
332 returnValue = eglMakeCurrent(dpy, surface, surface, context);
337 eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
339 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
358 eglSwapBuffers(dpy, surface);

Completed in 469 milliseconds

1234567891011>>