Lines Matching refs:dpyAttr
98 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres_new = xres_orig; in changeResolution()
99 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres_new = yres_orig; in changeResolution()
100 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].customFBSize = false; in changeResolution()
110 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres_new = xres_new; in changeResolution()
111 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres_new = yres_new; in changeResolution()
112 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].customFBSize = true; in changeResolution()
117 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; in changeResolution()
118 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; in changeResolution()
127 ctx->dpyAttr[dpy].fd = ctx->mHDMIDisplay->getFd(); in updateDisplayInfo()
128 ctx->dpyAttr[dpy].xres = ctx->mHDMIDisplay->getWidth(); in updateDisplayInfo()
129 ctx->dpyAttr[dpy].yres = ctx->mHDMIDisplay->getHeight(); in updateDisplayInfo()
130 ctx->dpyAttr[dpy].mMDPScalingMode = ctx->mHDMIDisplay->getMDPScalingMode(); in updateDisplayInfo()
131 ctx->dpyAttr[dpy].vsync_period = ctx->mHDMIDisplay->getVsyncPeriod(); in updateDisplayInfo()
135 ctx->dpyAttr[dpy].secure = true; in updateDisplayInfo()
138 ctx->mViewFrame[dpy].right = ctx->dpyAttr[dpy].xres; in updateDisplayInfo()
139 ctx->mViewFrame[dpy].bottom = ctx->dpyAttr[dpy].yres; in updateDisplayInfo()
144 memset(&(ctx->dpyAttr[dpy]), 0, sizeof(ctx->dpyAttr[dpy])); in resetDisplayInfo()
149 ctx->dpyAttr[dpy].fd = -1; in resetDisplayInfo()
223 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = fb_fd; in openFramebufferDevice()
225 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].stride = finfo.line_length /(info.xres/8); in openFramebufferDevice()
226 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres = info.xres; in openFramebufferDevice()
227 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres = info.yres; in openFramebufferDevice()
228 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xdpi = xdpi; in openFramebufferDevice()
229 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].ydpi = ydpi; in openFramebufferDevice()
230 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].refreshRate = (uint32_t)fps; in openFramebufferDevice()
231 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].dynRefreshRate = (uint32_t)fps; in openFramebufferDevice()
232 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].secure = true; in openFramebufferDevice()
233 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period = in openFramebufferDevice()
244 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isActive = true; in openFramebufferDevice()
284 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].connected = true; in initContext()
287 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].connected = false; in initContext()
291 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].connected = true; in initContext()
294 priW = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in initContext()
295 priH = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in initContext()
331 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive = false; in initContext()
332 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].connected = false; in initContext()
333 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isActive = false; in initContext()
334 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].connected = false; in initContext()
335 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].mMDPScalingMode= false; in initContext()
336 ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].mMDPScalingMode = false; in initContext()
337 ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].mMDPScalingMode = false; in initContext()
343 (int)ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in initContext()
345 (int)ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in initContext()
351 ctx->dpyAttr[i].mActionSafePresent = false; in initContext()
352 ctx->dpyAttr[i].mAsWidthRatio = 0; in initContext()
353 ctx->dpyAttr[i].mAsHeightRatio = 0; in initContext()
448 if(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd) { in closeContext()
449 close(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd); in closeContext()
450 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = -1; in closeContext()
504 if(!ctx || refreshRate == ctx->dpyAttr[dpy].dynRefreshRate) in setRefreshRate()
520 ctx->dpyAttr[dpy].dynRefreshRate = refreshRate; in setRefreshRate()
553 if(!ctx->dpyAttr[dpy].mActionSafePresent) in getActionSafePosition()
556 int asWidthRatio = ctx->dpyAttr[dpy].mAsWidthRatio; in getActionSafePosition()
557 int asHeightRatio = ctx->dpyAttr[dpy].mAsHeightRatio; in getActionSafePosition()
564 uint32_t fbWidth = ctx->dpyAttr[dpy].xres; in getActionSafePosition()
565 uint32_t fbHeight = ctx->dpyAttr[dpy].yres; in getActionSafePosition()
566 if(ctx->dpyAttr[dpy].mMDPScalingMode) { in getActionSafePosition()
616 float fbWidth = (float)ctx->dpyAttr[dpy].xres; in getAspectRatioPosition()
617 float fbHeight = (float)ctx->dpyAttr[dpy].yres; in getAspectRatioPosition()
698 if(ctx->dpyAttr[dpy].mMDPScalingMode) { in getAspectRatioPosition()
709 fbWidth = (float)ctx->dpyAttr[dpy].xres; in getAspectRatioPosition()
710 fbHeight = (float)ctx->dpyAttr[dpy].yres; in getAspectRatioPosition()
732 int fbWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in isPrimaryPortrait()
733 int fbHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in isPrimaryPortrait()
759 int dstWidth = ctx->dpyAttr[dpy].xres; in calcExtDisplayPosition()
760 int dstHeight = ctx->dpyAttr[dpy].yres;; in calcExtDisplayPosition()
761 int srcWidth = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].xres; in calcExtDisplayPosition()
762 int srcHeight = ctx->dpyAttr[HWC_DISPLAY_PRIMARY].yres; in calcExtDisplayPosition()
779 if(ctx->dpyAttr[dpy].mMDPScalingMode) { in calcExtDisplayPosition()
783 float fbWidth = (float)ctx->dpyAttr[dpy].xres; in calcExtDisplayPosition()
784 float fbHeight = (float)ctx->dpyAttr[dpy].yres; in calcExtDisplayPosition()
810 if(extOrient || ctx->dpyAttr[dpy].mMDPScalingMode) { in calcExtDisplayPosition()
901 int hw_w = ctx->dpyAttr[dpy].xres; in needsScalingWithSplit()
902 int hw_h = ctx->dpyAttr[dpy].yres; in needsScalingWithSplit()
971 int hw_w = ctx->dpyAttr[dpy].xres; in trimLayer()
972 int hw_h = ctx->dpyAttr[dpy].yres; in trimLayer()
1013 ctx->dpyAttr[dpy].mActionSafePresent = isActionSafePresent(ctx, dpy); in setListStats()
1016 ctx->listStats[dpy].refreshRateRequest = ctx->dpyAttr[dpy].refreshRate; in setListStats()
1093 refreshRate = ctx->dpyAttr[dpy].refreshRate; in setListStats()
1124 refreshRate : ctx->dpyAttr[dpy].refreshRate; in setListStats()
1225 ctx->dpyAttr[dpy].mAsWidthRatio = atoi(value); in isActionSafePresent()
1227 ctx->dpyAttr[dpy].mAsHeightRatio = atoi(value); in isActionSafePresent()
1229 if(!ctx->dpyAttr[dpy].mAsWidthRatio && !ctx->dpyAttr[dpy].mAsHeightRatio) { in isActionSafePresent()
1477 return ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].isActive; in isExternalActive()
1611 fbFd = ctx->dpyAttr[dpy].fd; in hwc_sync()
1811 int w = ctx->dpyAttr[dpy].xres; in configColorLayer()
1812 int h = ctx->dpyAttr[dpy].yres; in configColorLayer()
1918 int extW = ctx->dpyAttr[dpy].xres; in updateCropAIVVideoMode()
1919 int extH = ctx->dpyAttr[dpy].yres; in updateCropAIVVideoMode()
1943 int extW = ctx->dpyAttr[dpy].xres; in updateDestAIVVideoMode()
1944 int extH = ctx->dpyAttr[dpy].yres; in updateDestAIVVideoMode()
2082 int hw_w = ctx->dpyAttr[dpy].xres; in configureSplit()
2083 int hw_h = ctx->dpyAttr[dpy].yres; in configureSplit()
2349 !ctx->dpyAttr[HWC_DISPLAY_VIRTUAL].isPause) { in canUseRotator()
2364 int lSplit = ctx->dpyAttr[dpy].xres / 2; in getLeftSplit()
2375 if(ctx->dpyAttr[dpy].xres > mdpHw.getMaxPipeWidth()) { in isDisplaySplit()
2651 const int fbXRes = (int)ctx->dpyAttr[dpy].xres; in resetROI()
2652 const int fbYRes = (int)ctx->dpyAttr[dpy].yres; in resetROI()
2749 if(ctx->dpyAttr[dpy].connected) { in handle_pause()
2751 ctx->dpyAttr[dpy].isActive = true; in handle_pause()
2752 ctx->dpyAttr[dpy].isPause = true; in handle_pause()
2756 usleep(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period in handle_pause()
2763 if (!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in handle_pause()
2774 if(ctx->dpyAttr[dpy].connected) { in handle_resume()
2776 ctx->dpyAttr[dpy].isConfiguring = true; in handle_resume()
2777 ctx->dpyAttr[dpy].isActive = true; in handle_resume()
2781 usleep(ctx->dpyAttr[HWC_DISPLAY_PRIMARY].vsync_period in handle_resume()
2786 ctx->dpyAttr[dpy].isPause = false; in handle_resume()
2803 if(!Overlay::displayCommit(ctx->dpyAttr[dpy].fd)) { in clearPipeResources()
2819 if (ctx->dpyAttr[dpy].fd >= 0) { in handle_online()
2820 close(ctx->dpyAttr[dpy].fd); in handle_online()
2821 ctx->dpyAttr[dpy].fd = -1; in handle_online()
2829 ctx->dpyAttr[dpy].connected = true; in handle_online()
2845 ctx->dpyAttr[dpy].connected = false; in handle_offline()
2846 ctx->dpyAttr[dpy].isActive = false; in handle_offline()