gboolean gst_imx_egl_viv_trans_egl_platform_shutdown_window(GstImxEglVivTransEGLPlatform *platform)
{
	if(platform == NULL){
		GST_ERROR("No platform set !!! %s:%d",__func__,__LINE__);
		return TRUE;
	}
	if (platform->native_window == 0)
		return TRUE;

	eglMakeCurrent(platform->egl_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);

	if (platform->egl_context != EGL_NO_CONTEXT)
		eglDestroyContext(platform->egl_display, platform->egl_context);

	if (platform->egl_surface != EGL_NO_SURFACE)
		eglDestroySurface(platform->egl_display, platform->egl_surface);

	if (platform->egl_display != EGL_NO_DISPLAY)
		eglTerminate(platform->egl_display);

	platform->egl_display = EGL_NO_DISPLAY;
	platform->egl_context = EGL_NO_CONTEXT;
	platform->egl_surface = EGL_NO_SURFACE;
	fbDestroyWindow(platform->native_window);
	platform->native_window = 0;

	return TRUE;
}
Beispiel #2
0
bool CEGLNativeTypeIMX::DestroyNativeWindow()
{
  if (m_window)
    fbDestroyWindow(m_window);
  m_window =  NULL;
  return true;
}
Beispiel #3
0
int call_fbDestroyWindow(int *pDatabuf)
{
	str_fbDestroyWindow *function;
	
	function = (str_fbDestroyWindow *)pDatabuf;

	fbDestroyWindow(function->Window);

	return 0;
}
Beispiel #4
0
bool CEGLNativeTypeIMX::DestroyNativeWindow()
{
#ifdef HAS_IMXVPU
  if (m_window)
    fbDestroyWindow(m_window);
  m_window =  NULL;
  return true;
#else
  return false;
#endif
}
Beispiel #5
0
GLUSvoid _glusOsDestroyNativeWindowDisplay()
{
	if (g_nativeWindow)
	{
		fbDestroyWindow(g_nativeWindow);

		g_nativeWindow = 0;
	}

	if (g_nativeDisplay)
	{
		fbDestroyDisplay(g_nativeDisplay);

		g_nativeDisplay = 0;
	}

	if (g_keyFileDescriptor >= 0)
	{
		close(g_keyFileDescriptor);

		g_keyFileDescriptor = -1;

		// Enable echo.
        system("stty echo");
	}

	if (g_touchFileDescriptor >= 0)
	{
		close(g_touchFileDescriptor);

		g_touchFileDescriptor = -1;

		g_displayWidth = -1;

		g_displayHeight = -1;

		g_currentX = -1;

		g_currentY = -1;

		g_pressed = 0;
	}


	if (g_powermateFileDescriptor >= 0)
	{
		close(g_powermateFileDescriptor);

		g_powermateFileDescriptor = -1;
	}
}
void
native_gfx_destroy_window(native_gfx_t *gfx)
{
  fbDestroyWindow(gfx->win);
  gfx->win = NULL;
}
Beispiel #7
0
void QEglFSImx6Hooks::destroyNativeWindow(EGLNativeWindowType window)
{
    fbDestroyWindow(window);
}