Lines Matching refs:LayerCfg
1048 hltdc->LayerCfg[LayerIdx] = *pLayerCfg; in HAL_LTDC_ConfigLayer()
1139 if (hltdc->LayerCfg[LayerIdx].PixelFormat == LTDC_PIXEL_FORMAT_AL44) in HAL_LTDC_ConfigCLUT()
1617 hltdc->LayerCfg[LayerIdx].WindowX1 = XSize + hltdc->LayerCfg[LayerIdx].WindowX0; in HAL_LTDC_SetWindowSize()
1620 hltdc->LayerCfg[LayerIdx].WindowY1 = YSize + hltdc->LayerCfg[LayerIdx].WindowY0; in HAL_LTDC_SetWindowSize()
1623 hltdc->LayerCfg[LayerIdx].ImageWidth = XSize; in HAL_LTDC_SetWindowSize()
1626 hltdc->LayerCfg[LayerIdx].ImageHeight = YSize; in HAL_LTDC_SetWindowSize()
1675 hltdc->LayerCfg[LayerIdx].WindowX0 = X0; in HAL_LTDC_SetWindowPosition()
1676 hltdc->LayerCfg[LayerIdx].WindowX1 = X0 + hltdc->LayerCfg[LayerIdx].ImageWidth; in HAL_LTDC_SetWindowPosition()
1679 hltdc->LayerCfg[LayerIdx].WindowY0 = Y0; in HAL_LTDC_SetWindowPosition()
1680 hltdc->LayerCfg[LayerIdx].WindowY1 = Y0 + hltdc->LayerCfg[LayerIdx].ImageHeight; in HAL_LTDC_SetWindowPosition()
1727 hltdc->LayerCfg[LayerIdx].PixelFormat = Pixelformat; in HAL_LTDC_SetPixelFormat()
1818 hltdc->LayerCfg[LayerIdx].FBStartAdress = Address; in HAL_LTDC_SetAddress()
1866 pixelFormat = hltdc->LayerCfg[LayerIdx].PixelFormat; in HAL_LTDC_SetPitch()
2174 hltdc->LayerCfg[LayerIdx] = *pLayerCfg; in HAL_LTDC_ConfigLayer_NoReload()
2228 hltdc->LayerCfg[LayerIdx].WindowX1 = XSize + hltdc->LayerCfg[LayerIdx].WindowX0; in HAL_LTDC_SetWindowSize_NoReload()
2231 hltdc->LayerCfg[LayerIdx].WindowY1 = YSize + hltdc->LayerCfg[LayerIdx].WindowY0; in HAL_LTDC_SetWindowSize_NoReload()
2234 hltdc->LayerCfg[LayerIdx].ImageWidth = XSize; in HAL_LTDC_SetWindowSize_NoReload()
2237 hltdc->LayerCfg[LayerIdx].ImageHeight = YSize; in HAL_LTDC_SetWindowSize_NoReload()
2285 hltdc->LayerCfg[LayerIdx].WindowX0 = X0; in HAL_LTDC_SetWindowPosition_NoReload()
2286 hltdc->LayerCfg[LayerIdx].WindowX1 = X0 + hltdc->LayerCfg[LayerIdx].ImageWidth; in HAL_LTDC_SetWindowPosition_NoReload()
2289 hltdc->LayerCfg[LayerIdx].WindowY0 = Y0; in HAL_LTDC_SetWindowPosition_NoReload()
2290 hltdc->LayerCfg[LayerIdx].WindowY1 = Y0 + hltdc->LayerCfg[LayerIdx].ImageHeight; in HAL_LTDC_SetWindowPosition_NoReload()
2335 hltdc->LayerCfg[LayerIdx].PixelFormat = Pixelformat; in HAL_LTDC_SetPixelFormat_NoReload()
2417 hltdc->LayerCfg[LayerIdx].FBStartAdress = Address; in HAL_LTDC_SetAddress_NoReload()
2463 pixelFormat = hltdc->LayerCfg[LayerIdx].PixelFormat; in HAL_LTDC_SetPitch_NoReload()
2726 hltdc->LayerCfg[LayerIdx].FBStartAdress = pYUVFullPlanarAddress->YUVFullPlanarAddress.YAddress; in HAL_LTDC_SetFullPlanarAddress()
2782 hltdc->LayerCfg[LayerIdx].FBStartAdress = pYUVSemiPlanarAddress->YUVSemiPlanarAddress.YAddress; in HAL_LTDC_SetSemiPlanarAddress()
2836 hltdc->LayerCfg[LayerIdx].FBStartAdress = pYUVFullPlanarAddress->YUVFullPlanarAddress.YAddress; in HAL_LTDC_SetFullPlanarAddress_NoReload()
2889 hltdc->LayerCfg[LayerIdx].FBStartAdress = pYUVSemiPlanarAddress->YUVSemiPlanarAddress.YAddress; in HAL_LTDC_SetSemiPlanarAddress_NoReload()
2992 hltdc->LayerCfg[LayerIdx].WindowX0 = pLayerFlexARGB->Layer.WindowX0; in HAL_LTDC_ConfigLayerFlexARGB()
2993 hltdc->LayerCfg[LayerIdx].WindowX1 = pLayerFlexARGB->Layer.WindowX1; in HAL_LTDC_ConfigLayerFlexARGB()
2994 hltdc->LayerCfg[LayerIdx].WindowY0 = pLayerFlexARGB->Layer.WindowY0; in HAL_LTDC_ConfigLayerFlexARGB()
2995 hltdc->LayerCfg[LayerIdx].WindowY1 = pLayerFlexARGB->Layer.WindowY1; in HAL_LTDC_ConfigLayerFlexARGB()
2996 hltdc->LayerCfg[LayerIdx].PixelFormat = LTDC_PIXEL_FORMAT_FLEX_ARGB; in HAL_LTDC_ConfigLayerFlexARGB()
2997 hltdc->LayerCfg[LayerIdx].Alpha = pLayerFlexARGB->Layer.Alpha; in HAL_LTDC_ConfigLayerFlexARGB()
2998 hltdc->LayerCfg[LayerIdx].Alpha0 = pLayerFlexARGB->Layer.Alpha0; in HAL_LTDC_ConfigLayerFlexARGB()
2999 hltdc->LayerCfg[LayerIdx].BlendingFactor1 = pLayerFlexARGB->Layer.BlendingFactor1; in HAL_LTDC_ConfigLayerFlexARGB()
3000 hltdc->LayerCfg[LayerIdx].BlendingFactor2 = pLayerFlexARGB->Layer.BlendingFactor2; in HAL_LTDC_ConfigLayerFlexARGB()
3001 hltdc->LayerCfg[LayerIdx].FBStartAdress = pLayerFlexARGB->ARGBAddress; in HAL_LTDC_ConfigLayerFlexARGB()
3002 hltdc->LayerCfg[LayerIdx].ImageWidth = pLayerFlexARGB->Layer.ImageWidth; in HAL_LTDC_ConfigLayerFlexARGB()
3003 hltdc->LayerCfg[LayerIdx].ImageHeight = pLayerFlexARGB->Layer.ImageHeight; in HAL_LTDC_ConfigLayerFlexARGB()
3077 hltdc->LayerCfg[LayerIdx].WindowX0 = pLayerFlexYUVCoPlanar->Layer.WindowX0; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3078 hltdc->LayerCfg[LayerIdx].WindowX1 = pLayerFlexYUVCoPlanar->Layer.WindowX1; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3079 hltdc->LayerCfg[LayerIdx].WindowY0 = pLayerFlexYUVCoPlanar->Layer.WindowY0; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3080 hltdc->LayerCfg[LayerIdx].WindowY1 = pLayerFlexYUVCoPlanar->Layer.WindowY1; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3081 hltdc->LayerCfg[LayerIdx].PixelFormat = LTDC_PIXEL_FORMAT_FLEX_YUV_COPLANAR; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3082 hltdc->LayerCfg[LayerIdx].Alpha = pLayerFlexYUVCoPlanar->Layer.Alpha; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3083 hltdc->LayerCfg[LayerIdx].Alpha0 = pLayerFlexYUVCoPlanar->Layer.Alpha0; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3084 hltdc->LayerCfg[LayerIdx].BlendingFactor1 = pLayerFlexYUVCoPlanar->Layer.BlendingFactor1; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3085 hltdc->LayerCfg[LayerIdx].BlendingFactor2 = pLayerFlexYUVCoPlanar->Layer.BlendingFactor2; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3086 hltdc->LayerCfg[LayerIdx].FBStartAdress = pLayerFlexYUVCoPlanar->YUVAddress; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3087 hltdc->LayerCfg[LayerIdx].ImageWidth = pLayerFlexYUVCoPlanar->Layer.ImageWidth; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3088 hltdc->LayerCfg[LayerIdx].ImageHeight = pLayerFlexYUVCoPlanar->Layer.ImageHeight; in HAL_LTDC_ConfigLayerFlexYUVCoPlanar()
3159 hltdc->LayerCfg[LayerIdx].WindowX0 = pLayerFlexYUVSemiPlanar->Layer.WindowX0; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3160 hltdc->LayerCfg[LayerIdx].WindowX1 = pLayerFlexYUVSemiPlanar->Layer.WindowX1; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3161 hltdc->LayerCfg[LayerIdx].WindowY0 = pLayerFlexYUVSemiPlanar->Layer.WindowY0; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3162 hltdc->LayerCfg[LayerIdx].WindowY1 = pLayerFlexYUVSemiPlanar->Layer.WindowY1; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3163 hltdc->LayerCfg[LayerIdx].PixelFormat = LTDC_PIXEL_FORMAT_FLEX_YUV_SEMIPLANAR; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3164 hltdc->LayerCfg[LayerIdx].Alpha = pLayerFlexYUVSemiPlanar->Layer.Alpha; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3165 hltdc->LayerCfg[LayerIdx].Alpha0 = pLayerFlexYUVSemiPlanar->Layer.Alpha0; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3166 hltdc->LayerCfg[LayerIdx].BlendingFactor1 = pLayerFlexYUVSemiPlanar->Layer.BlendingFactor1; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3167 hltdc->LayerCfg[LayerIdx].BlendingFactor2 = pLayerFlexYUVSemiPlanar->Layer.BlendingFactor2; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3168 hltdc->LayerCfg[LayerIdx].FBStartAdress = pLayerFlexYUVSemiPlanar->YUVSemiPlanarAddress.YAddress; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3169 hltdc->LayerCfg[LayerIdx].ImageWidth = pLayerFlexYUVSemiPlanar->Layer.ImageWidth; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3170 hltdc->LayerCfg[LayerIdx].ImageHeight = pLayerFlexYUVSemiPlanar->Layer.ImageHeight; in HAL_LTDC_ConfigLayerFlexYUVSemiPlanar()
3242 hltdc->LayerCfg[LayerIdx].WindowX0 = pLayerFlexYUVFullPlanar->Layer.WindowX0; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3243 hltdc->LayerCfg[LayerIdx].WindowX1 = pLayerFlexYUVFullPlanar->Layer.WindowX1; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3244 hltdc->LayerCfg[LayerIdx].WindowY0 = pLayerFlexYUVFullPlanar->Layer.WindowY0; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3245 hltdc->LayerCfg[LayerIdx].WindowY1 = pLayerFlexYUVFullPlanar->Layer.WindowY1; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3246 hltdc->LayerCfg[LayerIdx].PixelFormat = LTDC_PIXEL_FORMAT_FLEX_YUV_FULLPLANAR; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3247 hltdc->LayerCfg[LayerIdx].Alpha = pLayerFlexYUVFullPlanar->Layer.Alpha; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3248 hltdc->LayerCfg[LayerIdx].Alpha0 = pLayerFlexYUVFullPlanar->Layer.Alpha0; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3249 hltdc->LayerCfg[LayerIdx].BlendingFactor1 = pLayerFlexYUVFullPlanar->Layer.BlendingFactor1; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3250 hltdc->LayerCfg[LayerIdx].BlendingFactor2 = pLayerFlexYUVFullPlanar->Layer.BlendingFactor2; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3251 hltdc->LayerCfg[LayerIdx].FBStartAdress = pLayerFlexYUVFullPlanar->YUVFullPlanarAddress.YAddress; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3252 hltdc->LayerCfg[LayerIdx].ImageWidth = pLayerFlexYUVFullPlanar->Layer.ImageWidth; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3253 hltdc->LayerCfg[LayerIdx].ImageHeight = pLayerFlexYUVFullPlanar->Layer.ImageHeight; in HAL_LTDC_ConfigLayerFlexYUVFullPlanar()
3443 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_RetrieveUserConfig()
3476 hltdc->LayerCfg[LayerIdx].FBStartAdress = LTDC_LAYER(hltdc, LayerIdx)->CFBAR; in LTDC_RetrieveUserConfig()
3483 hltdc->LayerCfg[LayerIdx].FBStartAdress = LTDC_LAYER(hltdc, LayerIdx)->CFBAR - \ in LTDC_RetrieveUserConfig()
3484 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3485 hltdc->LayerCfg[LayerIdx].WindowX0)) + 1U; in LTDC_RetrieveUserConfig()
3486 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_RetrieveUserConfig()
3490 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3491 hltdc->LayerCfg[LayerIdx].WindowX0)) + 1U; in LTDC_RetrieveUserConfig()
3495 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3496 hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U)) + 1U; in LTDC_RetrieveUserConfig()
3498 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3499 hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U)) + 1U; in LTDC_RetrieveUserConfig()
3510 hltdc->LayerCfg[LayerIdx].FBStartAdress = LTDC_LAYER(hltdc, LayerIdx)->CFBAR - \ in LTDC_RetrieveUserConfig()
3511 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3512 hltdc->LayerCfg[LayerIdx].WindowX0) * \ in LTDC_RetrieveUserConfig()
3513 ((hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3514 hltdc->LayerCfg[LayerIdx].WindowY0) - 1U)); in LTDC_RetrieveUserConfig()
3515 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_RetrieveUserConfig()
3519 (hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3520 hltdc->LayerCfg[LayerIdx].WindowX0) * \ in LTDC_RetrieveUserConfig()
3521 (((hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3522 … hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U) - 1U)); in LTDC_RetrieveUserConfig()
3526 ((hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3527 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * \ in LTDC_RetrieveUserConfig()
3528 (((hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3529 … hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U) - 1U)); in LTDC_RetrieveUserConfig()
3531 ((hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3532 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * \ in LTDC_RetrieveUserConfig()
3533 (((hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3534 … hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U) - 1U)); in LTDC_RetrieveUserConfig()
3545 hltdc->LayerCfg[LayerIdx].FBStartAdress = LTDC_LAYER(hltdc, LayerIdx)->CFBAR - \ in LTDC_RetrieveUserConfig()
3546 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3547 hltdc->LayerCfg[LayerIdx].WindowX0) * \ in LTDC_RetrieveUserConfig()
3548 (hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3549 hltdc->LayerCfg[LayerIdx].WindowY0)) + 1U; in LTDC_RetrieveUserConfig()
3550 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_RetrieveUserConfig()
3554 (hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3555 hltdc->LayerCfg[LayerIdx].WindowX0) * \ in LTDC_RetrieveUserConfig()
3556 ((hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3557 … hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U)) + 1U; in LTDC_RetrieveUserConfig()
3561 ((hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3562 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * \ in LTDC_RetrieveUserConfig()
3563 ((hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3564 … hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U)) + 1U; in LTDC_RetrieveUserConfig()
3566 ((hltdc->LayerCfg[LayerIdx].WindowX1 - \ in LTDC_RetrieveUserConfig()
3567 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * \ in LTDC_RetrieveUserConfig()
3568 ((hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_RetrieveUserConfig()
3569 … hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U)) + 1U; in LTDC_RetrieveUserConfig()
3620 LTDC_LAYER(hltdc, LayerIdx)->CFBLNR = (hltdc->LayerCfg[LayerIdx].ImageHeight); in LTDC_SetConfig()
3622 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_SetConfig()
3653 …tmp = ((hltdc->LayerCfg[LayerIdx].WindowX1 + ((hltdc->Instance->BPCR & LTDC_BPCR_AHBP) >> 16U)) <<… in LTDC_SetConfig()
3654 LTDC_LAYER(hltdc, LayerIdx)->WHPCR = ((hltdc->LayerCfg[LayerIdx].WindowX0 + in LTDC_SetConfig()
3658 tmp = ((hltdc->LayerCfg[LayerIdx].WindowY1 + (hltdc->Instance->BPCR & LTDC_BPCR_AVBP)) << 16U); in LTDC_SetConfig()
3659 LTDC_LAYER(hltdc, LayerIdx)->WVPCR = ((hltdc->LayerCfg[LayerIdx].WindowY0 + in LTDC_SetConfig()
3664 LTDC_LAYER(hltdc, LayerIdx)->CFBAR = (hltdc->LayerCfg[LayerIdx].FBStartAdress); in LTDC_SetConfig()
3666 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_SetConfig()
3673 LTDC_LAYER(hltdc, LayerIdx)->AFBLR = (hltdc->LayerCfg[LayerIdx].ImageWidth << 16U) | in LTDC_SetConfig()
3674 (hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3675 hltdc->LayerCfg[LayerIdx].WindowX0 + 7U); in LTDC_SetConfig()
3677 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = (hltdc->LayerCfg[LayerIdx].ImageHeight) >> 1U; in LTDC_SetConfig()
3687 LTDC_LAYER(hltdc, LayerIdx)->AFBLR = ((hltdc->LayerCfg[LayerIdx].ImageWidth >> 1U) << 16U) | in LTDC_SetConfig()
3688 (((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3689 hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) + 7U); in LTDC_SetConfig()
3692 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = (hltdc->LayerCfg[LayerIdx].ImageHeight) >> 1U; in LTDC_SetConfig()
3700 LTDC_LAYER(hltdc, LayerIdx)->CFBLR = (((hltdc->LayerCfg[LayerIdx].ImageWidth * stride) << 16U) | in LTDC_SetConfig()
3701 … (((hltdc->LayerCfg[LayerIdx].WindowX1 - hltdc->LayerCfg[LayerIdx].WindowX0) * in LTDC_SetConfig()
3711 LTDC_LAYER(hltdc, LayerIdx)->CFBAR = hltdc->LayerCfg[LayerIdx].FBStartAdress + in LTDC_SetConfig()
3712 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3713 hltdc->LayerCfg[LayerIdx].WindowX0)) - 1U; in LTDC_SetConfig()
3715 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_SetConfig()
3720 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3721 hltdc->LayerCfg[LayerIdx].WindowX0)) - 1U; in LTDC_SetConfig()
3724 LTDC_LAYER(hltdc, LayerIdx)->AFBLR = (hltdc->LayerCfg[LayerIdx].ImageWidth << 16U) | in LTDC_SetConfig()
3725 … (hltdc->LayerCfg[LayerIdx].WindowX1 - hltdc->LayerCfg[LayerIdx].WindowX0 + in LTDC_SetConfig()
3729 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = hltdc->LayerCfg[LayerIdx].ImageHeight >> 1U ; in LTDC_SetConfig()
3734 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3735 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U)) - 1U; in LTDC_SetConfig()
3739 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3740 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U)) - 1U; in LTDC_SetConfig()
3743 LTDC_LAYER(hltdc, LayerIdx)->AFBLR = ((hltdc->LayerCfg[LayerIdx].ImageWidth >> 1U) << 16U) | in LTDC_SetConfig()
3744 (((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3745 hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) + 7U); in LTDC_SetConfig()
3748 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = hltdc->LayerCfg[LayerIdx].ImageHeight >> 1U; in LTDC_SetConfig()
3756 LTDC_LAYER(hltdc, LayerIdx)->CFBLR = (((hltdc->LayerCfg[LayerIdx].ImageWidth * stride) << 16U) | in LTDC_SetConfig()
3757 (((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3758 hltdc->LayerCfg[LayerIdx].WindowX0) * stride) + 7U)); in LTDC_SetConfig()
3767 LTDC_LAYER(hltdc, LayerIdx)->CFBAR = hltdc->LayerCfg[LayerIdx].FBStartAdress + in LTDC_SetConfig()
3768 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3769 hltdc->LayerCfg[LayerIdx].WindowX0) * in LTDC_SetConfig()
3770 ((hltdc->LayerCfg[LayerIdx].WindowY1 - in LTDC_SetConfig()
3771 hltdc->LayerCfg[LayerIdx].WindowY0) - 1U)); in LTDC_SetConfig()
3773 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_SetConfig()
3778 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3779 hltdc->LayerCfg[LayerIdx].WindowX0) * in LTDC_SetConfig()
3780 (((hltdc->LayerCfg[LayerIdx].WindowY1 - in LTDC_SetConfig()
3781 hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U) - 1U)); in LTDC_SetConfig()
3784 …LTDC_LAYER(hltdc, LayerIdx)->AFBLR = ((0x8000U - (hltdc->LayerCfg[LayerIdx].ImageWidth * stride)) … in LTDC_SetConfig()
3785 (((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3786 … hltdc->LayerCfg[LayerIdx].WindowX0) * stride) + 7U); in LTDC_SetConfig()
3789 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = hltdc->LayerCfg[LayerIdx].ImageHeight >> 1U; in LTDC_SetConfig()
3794 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3795 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * in LTDC_SetConfig()
3796 (((hltdc->LayerCfg[LayerIdx].WindowY1 - in LTDC_SetConfig()
3797 hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U) - 1U)); in LTDC_SetConfig()
3801 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3802 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * in LTDC_SetConfig()
3803 (((hltdc->LayerCfg[LayerIdx].WindowY1 - in LTDC_SetConfig()
3804 hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U) - 1U)); in LTDC_SetConfig()
3807 … LTDC_LAYER(hltdc, LayerIdx)->AFBLR = (((0x8000U - (hltdc->LayerCfg[LayerIdx].ImageWidth >> 1U)) * in LTDC_SetConfig()
3809 ((((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3810 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * stride) + 7U); in LTDC_SetConfig()
3813 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = hltdc->LayerCfg[LayerIdx].ImageHeight >> 1U; in LTDC_SetConfig()
3821 …LTDC_LAYER(hltdc, LayerIdx)->CFBLR = ((((0x8000U - (hltdc->LayerCfg[LayerIdx].ImageWidth * stride… in LTDC_SetConfig()
3822 (((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3823 hltdc->LayerCfg[LayerIdx].WindowX0) * stride) + 7U)); in LTDC_SetConfig()
3833 LTDC_LAYER(hltdc, LayerIdx)->CFBAR = hltdc->LayerCfg[LayerIdx].FBStartAdress + in LTDC_SetConfig()
3834 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3835 hltdc->LayerCfg[LayerIdx].WindowX0) * in LTDC_SetConfig()
3836 (hltdc->LayerCfg[LayerIdx].WindowY1 - \ in LTDC_SetConfig()
3837 hltdc->LayerCfg[LayerIdx].WindowY0)) - 1U; in LTDC_SetConfig()
3839 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_SetConfig()
3844 (stride * (hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3845 hltdc->LayerCfg[LayerIdx].WindowX0) * in LTDC_SetConfig()
3846 ((hltdc->LayerCfg[LayerIdx].WindowY1 - in LTDC_SetConfig()
3847 hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U)) - 1U; in LTDC_SetConfig()
3850 …LTDC_LAYER(hltdc, LayerIdx)->AFBLR = ((0x8000U - (hltdc->LayerCfg[LayerIdx].ImageWidth * stride)) … in LTDC_SetConfig()
3851 (((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3852 hltdc->LayerCfg[LayerIdx].WindowX0) * stride) + 7U); in LTDC_SetConfig()
3855 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = hltdc->LayerCfg[LayerIdx].ImageHeight >> 1U; in LTDC_SetConfig()
3860 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3861 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * in LTDC_SetConfig()
3862 ((hltdc->LayerCfg[LayerIdx].WindowY1 - in LTDC_SetConfig()
3863 hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U)) - 1U; in LTDC_SetConfig()
3867 (stride * ((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3868 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * in LTDC_SetConfig()
3869 ((hltdc->LayerCfg[LayerIdx].WindowY1 - in LTDC_SetConfig()
3870 hltdc->LayerCfg[LayerIdx].WindowY0) >> 1U)) - 1U; in LTDC_SetConfig()
3873 …LTDC_LAYER(hltdc, LayerIdx)->AFBLR = (((0x8000U - (hltdc->LayerCfg[LayerIdx].ImageWidth >> 1U)) * … in LTDC_SetConfig()
3875 ((((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3876 … hltdc->LayerCfg[LayerIdx].WindowX0) >> 1U) * stride) + 7U); in LTDC_SetConfig()
3880 LTDC_LAYER(hltdc, LayerIdx)->AFBLNR = hltdc->LayerCfg[LayerIdx].ImageHeight >> 1U; in LTDC_SetConfig()
3887 …LTDC_LAYER(hltdc, LayerIdx)->CFBLR = ((((0x8000U - (hltdc->LayerCfg[LayerIdx].ImageWidth * stride… in LTDC_SetConfig()
3888 (((hltdc->LayerCfg[LayerIdx].WindowX1 - in LTDC_SetConfig()
3889 hltdc->LayerCfg[LayerIdx].WindowX0) * stride) + 7U)); in LTDC_SetConfig()
3920 tmp = ((uint32_t)(hltdc->LayerCfg[LayerIdx].Backcolor.Green) << 8U); in LTDC_SetCompositionConfig()
3921 tmp1 = ((uint32_t)(hltdc->LayerCfg[LayerIdx].Backcolor.Red) << 16U); in LTDC_SetCompositionConfig()
3922 tmp2 = (hltdc->LayerCfg[LayerIdx].Alpha0 << 24U); in LTDC_SetCompositionConfig()
3923 …WRITE_REG(LTDC_LAYER(hltdc, LayerIdx)->DCCR, (hltdc->LayerCfg[LayerIdx].Backcolor.Blue | tmp | tmp… in LTDC_SetCompositionConfig()
3927 LTDC_LAYER(hltdc, LayerIdx)->CACR = (hltdc->LayerCfg[LayerIdx].Alpha); in LTDC_SetCompositionConfig()
3932 LTDC_LAYER(hltdc, LayerIdx)->BFCR = (hltdc->LayerCfg[LayerIdx].BlendingFactor1 | in LTDC_SetCompositionConfig()
3933 hltdc->LayerCfg[LayerIdx].BlendingFactor2 | tmp); in LTDC_SetCompositionConfig()
3963 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_SetPredefFormat()
4024 switch (hltdc->LayerCfg[LayerIdx].PixelFormat) in LTDC_SetPredefFormat()
4033 LTDC_LAYER(hltdc, LayerIdx)->PFCR = (hltdc->LayerCfg[LayerIdx].PixelFormat); in LTDC_SetPredefFormat()