Lines Matching refs:dpyAttr
118 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres_new = xres_orig; in changeResolution()
119 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres_new = yres_orig; in changeResolution()
120 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].customFBSize = false; in changeResolution()
130 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres_new = xres_new; in changeResolution()
131 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres_new = yres_new; in changeResolution()
132 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].customFBSize = true; in changeResolution()
137 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; in changeResolution()
138 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; in changeResolution()
154 ctx->dpyAttr[dpy].fbformat = getFBformat(info); in updateDisplayInfo()
155 ctx->dpyAttr[dpy].fd = ctx->mHDMIDisplay->getFd(); in updateDisplayInfo()
156 ctx->dpyAttr[dpy].xres = ctx->mHDMIDisplay->getWidth(); in updateDisplayInfo()
157 ctx->dpyAttr[dpy].yres = ctx->mHDMIDisplay->getHeight(); in updateDisplayInfo()
158 ctx->dpyAttr[dpy].mMDPScalingMode = ctx->mHDMIDisplay->getMDPScalingMode(); in updateDisplayInfo()
159 ctx->dpyAttr[dpy].vsync_period = ctx->mHDMIDisplay->getVsyncPeriod(); in updateDisplayInfo()
162 ctx->mViewFrame[dpy].right = ctx->dpyAttr[dpy].xres; in updateDisplayInfo()
163 ctx->mViewFrame[dpy].bottom = ctx->dpyAttr[dpy].yres; in updateDisplayInfo()
168 memset(&(ctx->dpyAttr[dpy]), 0, sizeof(ctx->dpyAttr[dpy])); in resetDisplayInfo()
173 ctx->dpyAttr[dpy].fd = -1; in resetDisplayInfo()
247 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = fb_fd; in openFramebufferDevice()
249 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].stride = finfo.line_length /(info.xres/8); in openFramebufferDevice()
250 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres = info.xres; in openFramebufferDevice()
251 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres = info.yres; in openFramebufferDevice()
252 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; in openFramebufferDevice()
253 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; in openFramebufferDevice()
254 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].refreshRate = (uint32_t)fps; in openFramebufferDevice()
255 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].dynRefreshRate = (uint32_t)fps; in openFramebufferDevice()
256 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period = in openFramebufferDevice()
258 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fbformat = getFBformat(info); in openFramebufferDevice()
268 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isActive = true; in openFramebufferDevice()
308 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].connected = true; in initContext()
311 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].connected = false; in initContext()
315 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].connected = true; in initContext()
318 priW = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in initContext()
319 priH = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in initContext()
354 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive = false; in initContext()
355 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].connected = false; in initContext()
356 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isActive = false; in initContext()
357 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].connected = false; in initContext()
358 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].mMDPScalingMode= false; in initContext()
359 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].mMDPScalingMode = false; in initContext()
360 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].mMDPScalingMode = false; in initContext()
366 (int)ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in initContext()
368 (int)ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in initContext()
374 ctx->dpyAttr[i].mActionSafePresent = false; in initContext()
375 ctx->dpyAttr[i].mAsWidthRatio = 0; in initContext()
376 ctx->dpyAttr[i].mAsHeightRatio = 0; in initContext()
481 if(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd) { in closeContext()
482 close(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd); in closeContext()
483 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = -1; in closeContext()
527 uint32_t defaultRefreshRate = ctx->dpyAttr[dpy].refreshRate; in getRefreshRate()
571 if(!ctx || refreshRate == ctx->dpyAttr[dpy].dynRefreshRate) in setRefreshRate()
587 ctx->dpyAttr[dpy].dynRefreshRate = refreshRate; in setRefreshRate()
620 if(!ctx->dpyAttr[dpy].mActionSafePresent) in getActionSafePosition()
623 int asWidthRatio = ctx->dpyAttr[dpy].mAsWidthRatio; in getActionSafePosition()
624 int asHeightRatio = ctx->dpyAttr[dpy].mAsHeightRatio; in getActionSafePosition()
631 uint32_t fbWidth = ctx->dpyAttr[dpy].xres; in getActionSafePosition()
632 uint32_t fbHeight = ctx->dpyAttr[dpy].yres; in getActionSafePosition()
633 if(ctx->dpyAttr[dpy].mMDPScalingMode) { in getActionSafePosition()
683 float fbWidth = (float)ctx->dpyAttr[dpy].xres; in getAspectRatioPosition()
684 float fbHeight = (float)ctx->dpyAttr[dpy].yres; in getAspectRatioPosition()
765 if(ctx->dpyAttr[dpy].mMDPScalingMode) { in getAspectRatioPosition()
776 fbWidth = (float)ctx->dpyAttr[dpy].xres; in getAspectRatioPosition()
777 fbHeight = (float)ctx->dpyAttr[dpy].yres; in getAspectRatioPosition()
799 int fbWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in isPrimaryPortrait()
800 int fbHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in isPrimaryPortrait()
826 int dstWidth = ctx->dpyAttr[dpy].xres; in calcExtDisplayPosition()
827 int dstHeight = ctx->dpyAttr[dpy].yres;; in calcExtDisplayPosition()
828 int srcWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in calcExtDisplayPosition()
829 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in calcExtDisplayPosition()
846 if(ctx->dpyAttr[dpy].mMDPScalingMode) { in calcExtDisplayPosition()
850 float fbWidth = (float)ctx->dpyAttr[dpy].xres; in calcExtDisplayPosition()
851 float fbHeight = (float)ctx->dpyAttr[dpy].yres; in calcExtDisplayPosition()
877 if(extOrient || ctx->dpyAttr[dpy].mMDPScalingMode) { in calcExtDisplayPosition()
965 int hw_w = ctx->dpyAttr[dpy].xres; in needsScalingWithSplit()
966 int hw_h = ctx->dpyAttr[dpy].yres; in needsScalingWithSplit()
1034 switch(ctx->dpyAttr[dpy].fbformat) { in isAlphaPresentinFB()
1045 int hw_w = ctx->dpyAttr[dpy].xres; in trimLayer()
1046 int hw_h = ctx->dpyAttr[dpy].yres; in trimLayer()
1087 ctx->dpyAttr[dpy].mActionSafePresent = isActionSafePresent(ctx, dpy); in setListStats()
1090 ctx->listStats[dpy].refreshRateRequest = ctx->dpyAttr[dpy].refreshRate; in setListStats()
1165 refreshRate = ctx->dpyAttr[dpy].refreshRate; in setListStats()
1195 refreshRate : ctx->dpyAttr[dpy].refreshRate; in setListStats()
1292 ctx->dpyAttr[dpy].mAsWidthRatio = atoi(value); in isActionSafePresent()
1294 ctx->dpyAttr[dpy].mAsHeightRatio = atoi(value); in isActionSafePresent()
1296 if(!ctx->dpyAttr[dpy].mAsWidthRatio && !ctx->dpyAttr[dpy].mAsHeightRatio) { in isActionSafePresent()
1564 return ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive; in isExternalActive()
1696 fbFd = ctx->dpyAttr[dpy].fd; in hwc_sync()
1889 int w = ctx->dpyAttr[dpy].xres; in configColorLayer()
1890 int h = ctx->dpyAttr[dpy].yres; in configColorLayer()
1996 int extW = ctx->dpyAttr[dpy].xres; in updateCropAIVVideoMode()
1997 int extH = ctx->dpyAttr[dpy].yres; in updateCropAIVVideoMode()
2021 int extW = ctx->dpyAttr[dpy].xres; in updateDestAIVVideoMode()
2022 int extH = ctx->dpyAttr[dpy].yres; in updateDestAIVVideoMode()
2161 int hw_w = ctx->dpyAttr[dpy].xres; in configureSplit()
2162 int hw_h = ctx->dpyAttr[dpy].yres; in configureSplit()
2431 !ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isPause) { in canUseRotator()
2446 int lSplit = ctx->dpyAttr[dpy].xres / 2; in getLeftSplit()
2457 if(ctx->dpyAttr[dpy].xres > mdpHw.getMaxMixerWidth()) { in isDisplaySplit()
2698 const int fbXRes = (int)ctx->dpyAttr[dpy].xres; in resetROI()
2699 const int fbYRes = (int)ctx->dpyAttr[dpy].yres; in resetROI()
2782 if(ctx->dpyAttr[dpy].connected) { in handle_pause()
2784 ctx->dpyAttr[dpy].isActive = true; in handle_pause()
2785 ctx->dpyAttr[dpy].isPause = true; in handle_pause()
2789 usleep(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period in handle_pause()
2796 if (!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in handle_pause()
2807 if(ctx->dpyAttr[dpy].connected) { in handle_resume()
2809 ctx->dpyAttr[dpy].isConfiguring = true; in handle_resume()
2810 ctx->dpyAttr[dpy].isActive = true; in handle_resume()
2814 usleep(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period in handle_resume()
2819 ctx->dpyAttr[dpy].isPause = false; in handle_resume()
2836 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in clearPipeResources()
2846 if (ctx->dpyAttr[dpy].fd >= 0) { in handle_online()
2847 close(ctx->dpyAttr[dpy].fd); in handle_online()
2848 ctx->dpyAttr[dpy].fd = -1; in handle_online()
2856 ctx->dpyAttr[dpy].connected = true; in handle_online()
2872 ctx->dpyAttr[dpy].connected = false; in handle_offline()
2873 ctx->dpyAttr[dpy].isActive = false; in handle_offline()