Lines Matching defs:pPathInfoArray

72     LONG (WINAPI * pfnQueryDisplayConfig)(UINT Flags,UINT *pNumPathArrayElements, DISPLAYCONFIG_PATH_INFO *pPathInfoArray,
83 DISPLAYCONFIG_PATH_INFO *pPathInfoArray;
92 DISPLAYCONFIG_PATH_INFO *pPathInfoArray;
101 pPathInfoArray = (DISPLAYCONFIG_PATH_INFO *)malloc(cPathInfoArray * sizeof(DISPLAYCONFIG_PATH_INFO));
102 if (!pPathInfoArray)
111 free(pPathInfoArray);
115 winEr = gCtx.pfnQueryDisplayConfig(fFlags, &cPathInfoArray, pPathInfoArray, &cModeInfoArray, pModeInfoArray, NULL);
119 free(pPathInfoArray);
125 pCfg->pPathInfoArray = pPathInfoArray;
137 pCfgDst->pPathInfoArray = (DISPLAYCONFIG_PATH_INFO *)malloc(pCfg->cPathInfoArray * sizeof (DISPLAYCONFIG_PATH_INFO));
138 if (!pCfgDst->pPathInfoArray)
144 memcpy(pCfgDst->pPathInfoArray, pCfg->pPathInfoArray, pCfg->cPathInfoArray * sizeof (DISPLAYCONFIG_PATH_INFO));
155 if (pCfgDst->pPathInfoArray)
157 free(pCfgDst->pPathInfoArray);
158 pCfgDst->pPathInfoArray = NULL;
174 if (pCfg->pPathInfoArray)
175 free(pCfg->pPathInfoArray);
200 if (cDisplays < (int)(DispCfg.pPathInfoArray[iter].sourceInfo.id))
201 cDisplays = (int)(DispCfg.pPathInfoArray[iter].sourceInfo.id);
220 if ((srcId == ~0UL || pCfg->pPathInfoArray[iter].sourceInfo.id == srcId)
221 && (trgId == ~0UL || pCfg->pPathInfoArray[iter].targetInfo.id == trgId))
235 if (!(pCfg->pPathInfoArray[idx].flags & DISPLAYCONFIG_PATH_ACTIVE))
243 pCfg->pPathInfoArray[idx].sourceInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
244 pCfg->pPathInfoArray[idx].targetInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
283 UINT Id = pCfg->pPathInfoArray[idx].sourceInfo.id;
286 pCfg->pPathInfoArray[idx].sourceInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
289 UINT iSrcMode = pCfg->pPathInfoArray[idx].sourceInfo.modeInfoIdx;
300 pCfg->pPathInfoArray[idx].sourceInfo.modeInfoIdx = iSrcMode;
308 if (pCfg->pPathInfoArray[i].sourceInfo.modeInfoIdx == iSrcMode)
353 pCfg->pPathInfoArray[idx].targetInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
356 pCfg->pPathInfoArray[idx].flags |= DISPLAYCONFIG_PATH_ACTIVE;
358 pCfg->pPathInfoArray[idx].flags &= ~DISPLAYCONFIG_PATH_ACTIVE;
365 DWORD winEr = gCtx.pfnSetDisplayConfig(pCfg->cPathInfoArray, pCfg->pPathInfoArray, pCfg->cModeInfoArray, pCfg->pModeInfoArray, fFlags);
376 if (pCfg->pPathInfoArray[iter].sourceInfo.id == pCfg->pPathInfoArray[iter].targetInfo.id)
379 if (!(pCfg->pPathInfoArray[iter].flags & DISPLAYCONFIG_PATH_ACTIVE))
382 pCfg->pPathInfoArray[iter].flags &= ~DISPLAYCONFIG_PATH_ACTIVE;
393 if ((pCfg->pPathInfoArray[iter].flags & DISPLAYCONFIG_PATH_ACTIVE))
396 pCfg->pPathInfoArray[iter].sourceInfo.id = 0;
397 pCfg->pPathInfoArray[iter].sourceInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
398 pCfg->pPathInfoArray[iter].targetInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
415 DISPLAYCONFIG_PATH_INFO *pPathInfoArray = (DISPLAYCONFIG_PATH_INFO *)malloc(cDisplays * sizeof(DISPLAYCONFIG_PATH_INFO));
416 if (!pPathInfoArray)
435 pPathInfoArray[i] = pCfg->pPathInfoArray[idx];
444 free(pPathInfoArray);
463 pPathInfoArray[i] = AllCfg.pPathInfoArray[idx];
465 if (pPathInfoArray[i].flags & DISPLAYCONFIG_PATH_ACTIVE)
468 pPathInfoArray[i].sourceInfo.id, pPathInfoArray[i].targetInfo.id));
469 pPathInfoArray[i].flags &= ~DISPLAYCONFIG_PATH_ACTIVE;
472 Assert(pPathInfoArray[i].sourceInfo.modeInfoIdx == DISPLAYCONFIG_PATH_MODE_IDX_INVALID);
473 Assert(pPathInfoArray[i].sourceInfo.statusFlags == 0);
475 Assert(pPathInfoArray[i].targetInfo.modeInfoIdx == DISPLAYCONFIG_PATH_MODE_IDX_INVALID);
476 Assert(pPathInfoArray[i].targetInfo.outputTechnology == DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15);
477 Assert(pPathInfoArray[i].targetInfo.rotation == DISPLAYCONFIG_ROTATION_IDENTITY);
478 Assert(pPathInfoArray[i].targetInfo.scaling == DISPLAYCONFIG_SCALING_PREFERRED);
479 Assert(pPathInfoArray[i].targetInfo.refreshRate.Numerator == 0);
480 Assert(pPathInfoArray[i].targetInfo.refreshRate.Denominator == 0);
481 Assert(pPathInfoArray[i].targetInfo.scanLineOrdering == DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED);
482 Assert(pPathInfoArray[i].targetInfo.targetAvailable == TRUE);
483 Assert(pPathInfoArray[i].targetInfo.statusFlags == DISPLAYCONFIG_TARGET_FORCIBLE);
485 Assert(pPathInfoArray[i].flags == 0);
489 pPathInfoArray[i].sourceInfo.adapterId = pCfg->pPathInfoArray[0].sourceInfo.adapterId;
490 pPathInfoArray[i].sourceInfo.id = i;
491 pPathInfoArray[i].sourceInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
492 pPathInfoArray[i].sourceInfo.statusFlags = 0;
494 pPathInfoArray[i].targetInfo.adapterId = pPathInfoArray[i].sourceInfo.adapterId;
495 pPathInfoArray[i].targetInfo.id = i;
496 pPathInfoArray[i].targetInfo.modeInfoIdx = DISPLAYCONFIG_PATH_MODE_IDX_INVALID;
497 pPathInfoArray[i].targetInfo.outputTechnology = DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15;
498 pPathInfoArray[i].targetInfo.rotation = DISPLAYCONFIG_ROTATION_IDENTITY;
499 pPathInfoArray[i].targetInfo.scaling = DISPLAYCONFIG_SCALING_PREFERRED;
500 pPathInfoArray[i].targetInfo.refreshRate.Numerator = 0;
501 pPathInfoArray[i].targetInfo.refreshRate.Denominator = 0;
502 pPathInfoArray[i].targetInfo.scanLineOrdering = DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED;
503 pPathInfoArray[i].targetInfo.targetAvailable = TRUE;
504 pPathInfoArray[i].targetInfo.statusFlags = DISPLAYCONFIG_TARGET_FORCIBLE;
506 pPathInfoArray[i].flags = 0;
511 free(pCfg->pPathInfoArray);
512 pCfg->pPathInfoArray = pPathInfoArray;
1514 if (!((iPath >= 0) && (DispCfg.pPathInfoArray[iPath].flags & DISPLAYCONFIG_PATH_ACTIVE)) != !fEnabled)