|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区
您需要 登录 才可以下载或查看,没有账号?立即注册
×
/****************************************************************************
*
* Copyright (c) 2005 - 2011 by Vivante Corp. All rights reserved.
*
* The material in this file is confidential and contains trade secrets
* of Vivante Corporation. This is proprietary information owned by
* Vivante Corporation. No part of this work may be disclosed,
* reproduced, copied, transmitted, or used in any way for any purpose,
* without the express written permission of Vivante Corporation.
*
*****************************************************************************
*
* Auto-generated file on 12/13/2011. Do not edit!!!
*
*****************************************************************************/
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include "rk_hwcomposer.h"
#include <hardware/hardware.h>
#include <stdlib.h>
#include <errno.h>
#include <cutils/properties.h>
#include <fcntl.h>
#include <sync/sync.h>
#include "../libgralloc_ump/gralloc_priv.h"
#include <time.h>
#include <poll.h>
#include "rk_hwcomposer_hdmi.h"
#include <ui/PixelFormat.h>
#include <sys/stat.h>
//#include "hwc_ipp.h"
#include "hwc_rga.h"
#include <hardware/rk_fh.h>
#include <linux/ion.h>
#include <ion/ion.h>
#include <ion/rockchip_ion.h>
#define MAX_DO_SPECIAL_COUNT 8
#define RK_FBIOSET_ROTATE 0x5003
#define FPS_NAME "com.aatt.fpsm"
#define BOTTOM_LAYER_NAME "NavigationBar"
#define TOP_LAYER_NAME "StatusBar"
#define WALLPAPER "ImageWallpaper"
#define VIDEO_PLAY_ACTIVITY_LAYER_NAME "android.rk.RockVideoPlayer/android.rk.RockVideoPlayer.VideoP"
#define RK_QUEDDR_FREQ 0x8000
//#define ENABLE_HDMI_APP_LANDSCAP_TO_PORTRAIT
static int SkipFrameCount = 0;
static int SkipFrameCount1 = 0;
static hwcContext * _contextAnchor = NULL;
static hwcContext * _contextAnchor1 = NULL;
#ifdef ENABLE_HDMI_APP_LANDSCAP_TO_PORTRAIT
static int bootanimFinish = 0;
#endif
//#if (ENABLE_TRANSFORM_BY_RGA | ENABLE_LCDC_IN_NV12_TRANSFORM | USE_SPECIAL_COMPOSER)
static hwbkupmanage bkupmanage;
//#endif
static PFNEGLRENDERBUFFERMODIFYEDANDROIDPROC _eglRenderBufferModifiedANDROID;
static mix_info gmixinfo;
static mix_info gmixinfo1;
int flag_blank = 0;
int flag_external = 0;
int flag_hwcup_external = 0;
int gwin_tab[MaxZones] = {win0,win1,win2_0,win2_1,win2_2,win2_3,win3_0,win3_1,win3_2,win3_3};
#undef LOGV
#define LOGV(...)
static int
hwc_blank(
struct hwc_composer_device_1 *dev,
int dpy,
int blank);
static int
hwc_query(
struct hwc_composer_device_1* dev,
int what,
int* value);
static int hwc_event_control(
struct hwc_composer_device_1* dev,
int dpy,
int event,
int enabled);
static int
hwc_prepare(
hwc_composer_device_1_t * dev,
size_t numDisplays,
hwc_display_contents_1_t** displays
);
static int
hwc_set(
hwc_composer_device_1_t * dev,
size_t numDisplays,
hwc_display_content |
|