Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 85) sorted by relevance

1234

/hardware/intel/common/libva/test/common/
Dva_display_wayland.c40 struct wl_surface *surface; member
110 if (d->surface) { in va_close_display_wayland()
111 wl_surface_destroy(d->surface); in va_close_display_wayland()
112 d->surface = NULL; in va_close_display_wayland()
143 if (!d->surface) { in ensure_window()
144 d->surface = wl_compositor_create_surface(d->compositor); in ensure_window()
145 if (!d->surface) in ensure_window()
150 d->shell_surface = wl_shell_get_shell_surface(d->shell, d->surface); in ensure_window()
161 VASurfaceID surface, in va_put_surface_wayland() argument
173 va_status = vaGetSurfaceBufferWl(va_dpy, surface, VA_FRAME_PICTURE, &buffer); in va_put_surface_wayland()
[all …]
Dva_display.h38 VAStatus (*put_surface) (VADisplay va_dpy, VASurfaceID surface,
55 VASurfaceID surface,
Dva_display_x11.c107 VASurfaceID surface, in va_put_surface_x11() argument
116 if (surface == VA_INVALID_SURFACE) in va_put_surface_x11()
125 return vaPutSurface(va_dpy, surface, x11_window, in va_put_surface_x11()
/hardware/libhardware/tests/hwc/
Dutil.c175 EGLSurface surface; in egl_create() local
200 surface = eglCreateWindowSurface(display, config, window, NULL); in egl_create()
201 if (surface == EGL_NO_SURFACE) in egl_create()
208 if (!(res = eglMakeCurrent(display, surface, surface, context))) in egl_create()
211 eglQuerySurface(display, surface, EGL_WIDTH, &w); in egl_create()
212 eglQuerySurface(display, surface, EGL_HEIGHT, &h); in egl_create()
217 *_surface = surface; in egl_create()
229 void egl_destroy(EGLDisplay display, EGLSurface surface) { in egl_destroy() argument
231 eglDestroySurface(display, surface); in egl_destroy()
/hardware/intel/common/libva/test/putsurface/
Dputsurface_wayland.c69 VASurfaceID surface, in vaPutSurface() argument
95 return va_put_surface(dpy, wl_drawable, surface, &src_rect, &dst_rect, in vaPutSurface()
111 struct wl_surface *surface; member
163 wl_surface_attach(wl_drawable->surface, buffer, 0, 0); in va_put_surface()
165 wl_drawable->surface, in va_put_surface()
171 callback = wl_surface_frame(wl_drawable->surface); in va_put_surface()
172 wl_surface_commit(wl_drawable->surface); in va_put_surface()
259 drawable1->surface = surface1; in create_window()
274 drawable1->surface = surface2; in create_window()
/hardware/intel/img/psb_video/src/
Dpsb_output.h191 VASurfaceID surface,
209 VASurfaceID surface,
215 VASurfaceID surface,
246 VASurfaceID surface,
268 VASurfaceID surface,
278 VASurfaceID surface,
Dpsb_output.c219 object_surface_p surface, in psb__VAImageCheckRegion() argument
240 if (*dest_x > surface->width) *dest_x = surface->width - 1; in psb__VAImageCheckRegion()
242 if (*dest_y > surface->height) *dest_y = surface->height - 1; in psb__VAImageCheckRegion()
244 if (((*width) + (*dest_x)) > surface->width) *width = surface->width - *dest_x; in psb__VAImageCheckRegion()
245 if (((*height) + (*dest_y)) > surface->height) *height = surface->height - *dest_x; in psb__VAImageCheckRegion()
461 VASurfaceID surface, in psb_DeriveImage() argument
471 object_surface_p obj_surface = SURFACE(surface); in psb_DeriveImage()
598 obj_image->derived_surface = surface; /* this image is derived from a surface */ in psb_DeriveImage()
850 VASurfaceID surface, in psb_GetImage() argument
879 object_surface_p obj_surface = SURFACE(surface); in psb_GetImage()
[all …]
/hardware/intel/common/libva/va/
Dva_tpi.c73 VASurfaceID surface, in vaPutSurfaceBuf() argument
96 return tpi->vaPutSurfaceBuf( ctx, surface, data, data_len, srcx, srcy, srcw, srch, in vaPutSurfaceBuf()
104 VASurfaceID surface, in vaSetTimestampForSurface() argument
115 return tpi->vaSetTimestampForSurface(ctx, surface, timestamp); in vaSetTimestampForSurface()
Dva_backend.h203 VASurfaceID surface,
234 VASurfaceID surface,
256 VASurfaceID surface,
266 VASurfaceID surface,
373 VASurfaceID surface,
391 VASurfaceID surface
Dva_backend_tpi.h50 VASurfaceID surface,
68 VASurfaceID surface,
Dva_tpi.h74 VASurfaceID surface,
92 VASurfaceID surface,
/hardware/intel/common/libva/va/glx/
Dva_glx_impl.c448 VASurfaceID surface; ///< Associated VA surface member
752 pSurfaceGLX->surface = VA_INVALID_SURFACE; in create_surface()
838 VASurfaceID surface, in vaCopySurfaceGLX_impl_driver() argument
842 INVOKE(ctx, CopySurface, (ctx, gl_surface, surface, flags)); in vaCopySurfaceGLX_impl_driver()
853 #define INIT_SURFACE(surface, surface_arg) do { \ argument
854 surface = (VASurfaceGLXP)(surface_arg); \
855 if (!check_surface(surface)) \
925 pSurfaceGLX->surface = VA_INVALID_SURFACE; in deassociate_surface()
933 VASurfaceID surface, in associate_surface() argument
948 surface, in associate_surface()
[all …]
/hardware/intel/img/psb_video/src/android/
Dpsb_output_android.c150 VASurfaceID surface, in psb_putsurface_ctexture() argument
170 obj_surface = SURFACE(surface); in psb_putsurface_ctexture()
176 psb_putsurface_textureblit(ctx, data, surface, srcx, srcy, srcw, srch, in psb_putsurface_ctexture()
191 VASurfaceID surface,
233 ctx, surface, srcx, srcy, srcw, srch,
280 VASurfaceID surface,
316 obj_surface = SURFACE(surface);
460 VASurfaceID surface, in psb_PutSurface() argument
484 obj_surface = SURFACE(surface); in psb_PutSurface()
533 vaStatus = psb_putsurface_overlay(ctx, surface, in psb_PutSurface()
Dpsb_android_glue.h35 unsigned char* psb_android_registerBuffers(void** surface, int pid, int width, int height);
41 …int psb_android_surfaceflinger_status(void** surface, int *sf_compostion, int *rotation, int *widi…
/hardware/intel/img/psb_video/src/x11/
Dpsb_x11.h111 VASurfaceID surface,
129 VASurfaceID surface,
146 VASurfaceID surface,
Dpsb_ctexture.c221 VASurfaceID surface, in psb_putsurface_ctexture() argument
242 object_surface_p obj_surface = SURFACE(surface); in psb_putsurface_ctexture()
251 obj_surface = SURFACE(surface); in psb_putsurface_ctexture()
253 drv_debug_msg(VIDEO_DEBUG_ERROR, "%s: Invalid surface ID 0x%08x.\n", __func__, surface); in psb_putsurface_ctexture()
409 …xture_priv->extend_blt_meminfo[texture_priv->extend_current_blt_buffer], surface, srcx, srcy, srcw… in psb_putsurface_ctexture()
415 …xture_priv->extend_blt_meminfo[texture_priv->extend_current_blt_buffer], surface, srcx, srcy, srcw… in psb_putsurface_ctexture()
468 …face_textureblit(ctx, (unsigned char *)texture_priv->blt_meminfo_pixmap, surface, srcx, srcy, srcw… in psb_putsurface_ctexture()
473 …face_textureblit(ctx, (unsigned char *)texture_priv->blt_meminfo_pixmap, surface, srcx, srcy, srcw… in psb_putsurface_ctexture()
487 …gned char *)texture_priv->blt_meminfo[texture_priv->current_blt_buffer], surface, srcx, srcy, srcw… in psb_putsurface_ctexture()
492 …gned char *)texture_priv->blt_meminfo[texture_priv->current_blt_buffer], surface, srcx, srcy, srcw… in psb_putsurface_ctexture()
[all …]
Dpsb_x11.c106 VASurfaceID surface, in psb_putsurface_x11() argument
149 object_surface_p obj_surface = SURFACE(surface); in psb_putsurface_x11()
457 VASurfaceID surface, in psb_PutSurface() argument
476 obj_surface = SURFACE(surface); in psb_PutSurface()
490 psb_putsurface_x11(ctx, surface, draw, srcx, srcy, srcw, srch, in psb_PutSurface()
509 psb_putsurface_ctexture(ctx, surface, draw, in psb_PutSurface()
525 ctx, surface, draw, in psb_PutSurface()
531 ctx, surface, draw, in psb_PutSurface()
/hardware/intel/common/libva/va/egl/
Dva_egl.c66 VASurfaceID surface, in vaGetEGLClientBufferFromSurface() argument
77 return va_egl->vaGetEGLClientBufferFromSurface(ctx, surface, buffer); in vaGetEGLClientBufferFromSurface()
/hardware/intel/common/libva/va/android/
Dva_android.cpp189 VASurfaceID surface,
207 VASurfaceID surface, in vaPutSurface() argument
233 … VA_TRACE_LOG(va_TracePutSurface, dpy, surface, static_cast<void*>(&draw), srcx, srcy, srcw, srch, in vaPutSurface()
237 …return ctx->vtable->vaPutSurface( ctx, surface, static_cast<void*>(&draw), srcx, srcy, srcw, srch, in vaPutSurface()
/hardware/intel/common/libmix/videodecoder/
DVideoDecoderMPEG4.cpp234 mAcquiredBuffer->renderBuffer.surface = mLastReference->renderBuffer.surface; in beginDecodingFrame()
407 … vaStatus = vaBeginPicture(mVADisplay, mVAContext, mAcquiredBuffer->renderBuffer.surface); in continueDecodingFrame()
516 picParam->forward_reference_picture = mLastReference->renderBuffer.surface; in setReference()
528 picParam->forward_reference_picture = mLastReference->renderBuffer.surface; in setReference()
534 picParam->backward_reference_picture = mForwardReference->renderBuffer.surface; in setReference()
542 picParam->forward_reference_picture = mLastReference->renderBuffer.surface; in setReference()
543 picParam->backward_reference_picture = mForwardReference->renderBuffer.surface; in setReference()
551 picParam->forward_reference_picture = mLastReference->renderBuffer.surface; in setReference()
DVideoDecoderVP8.cpp236 vaStatus = vaBeginPicture(mVADisplay, mVAContext, mAcquiredBuffer->renderBuffer.surface); in decodePicture()
330 picParam->last_ref_frame = mRFBs[0][VP8_LAST_REF_PIC].surfaceBuffer->renderBuffer.surface; in setReference()
331 picParam->alt_ref_frame = mRFBs[0][VP8_ALT_REF_PIC].surfaceBuffer->renderBuffer.surface; in setReference()
332 … picParam->golden_ref_frame = mRFBs[0][VP8_GOLDEN_REF_PIC].surfaceBuffer->renderBuffer.surface; in setReference()
377 mRFBs[0][VP8_LAST_REF_PIC].index = mAcquiredBuffer->renderBuffer.surface; in refreshLastReference()
402 mRFBs[0][VP8_GOLDEN_REF_PIC].index = mAcquiredBuffer->renderBuffer.surface; in refreshGoldenReference()
427 mRFBs[0][VP8_ALT_REF_PIC].index = mAcquiredBuffer->renderBuffer.surface; in refreshAltReference()
DVideoDecoderBase.cpp285 …vaStatus = vaSetTimestampForSurface(mVADisplay, outputByPos->renderBuffer.surface, outputByPos->re… in getOutput()
287 vaSyncSurface(mVADisplay, outputByPos->renderBuffer.surface); in getOutput()
330 …vaStatus = vaSetTimestampForSurface(mVADisplay, output->renderBuffer.surface, output->renderBuffer… in getOutput()
333 vaSyncSurface(mVADisplay, output->renderBuffer.surface); in getOutput()
589 if (temp->renderBuffer.surface == mSurfaces[nextAcquire] && in acquireSurfaceBuffer()
618 mAcquiredBuffer->renderBuffer.surface = mSurfaces[mSurfaceAcquirePos]; in acquireSurfaceBuffer()
745 vaStatus = vaSyncSurface(mVADisplay, mAcquiredBuffer->renderBuffer.surface); in endDecodingFrame()
1142 vaStatus = vaSyncSurface(renderBuffer->display, renderBuffer->surface); in getRawDataFromSurface()
1145 vaStatus = vaDeriveImage(renderBuffer->display, renderBuffer->surface, &vaImage); in getRawDataFromSurface()
1249 … mSurfaceBuffers[i].renderBuffer.surface = VA_INVALID_SURFACE; // set in acquireSurfaceBuffer in initSurfaceBuffer()
[all …]
DVideoDecoderWMV.cpp158 mAcquiredBuffer->renderBuffer.surface = mLastReference->renderBuffer.surface; in decodeFrame()
233 status = setReference(picParams, picIndex, mAcquiredBuffer->renderBuffer.surface); in decodePicture()
243 vaStatus = vaBeginPicture(mVADisplay, mVAContext, mAcquiredBuffer->renderBuffer.surface); in decodePicture()
357 params->forward_reference_picture = mLastReference->renderBuffer.surface; in setReference()
365 params->forward_reference_picture = mForwardReference->renderBuffer.surface; in setReference()
366 params->backward_reference_picture = mLastReference->renderBuffer.surface; in setReference()
/hardware/intel/common/libva/va/x11/
Dva_x11.c218 VASurfaceID surface,
236 VASurfaceID surface, in vaPutSurface() argument
259 VA_TRACE_LOG(va_TracePutSurface, dpy, surface, (void *)draw, srcx, srcy, srcw, srch, in vaPutSurface()
263 return ctx->vtable->vaPutSurface( ctx, surface, (void *)draw, srcx, srcy, srcw, srch, in vaPutSurface()
/hardware/libhardware/tests/camera2/
DCameraMultiStreamTests.cpp95 void CreateOnScreenSurface(sp<ANativeWindow>& surface) { in CreateOnScreenSurface() argument
112 surface = mSurfaceControl->getSurface(); in CreateOnScreenSurface()
114 ASSERT_NE((void*)NULL, surface.get()); in CreateOnScreenSurface()
178 CameraStreamParams param, sp<ANativeWindow> surface, in CameraStream()
195 mNativeWindow = surface; in CameraStream()
337 sp<ANativeWindow> surface = NULL, in CreateStream() argument
341 param, surface, useCpuConsumer); in CreateStream()
585 sp<ANativeWindow> surface; in TEST_F() local
586 ASSERT_NO_FATAL_FAILURE(CreateOnScreenSurface(/*out*/surface)); in TEST_F()
592 surface, in TEST_F()

1234