Defines | |
| #define | ADL_EXTERNC |
Functions | |
| int | ADL2_Display_DisplayInfo_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumDisplays, ADLDisplayInfo **lppInfo, int iForceDetect) |
| Function to retrieve the adapter display information. | |
| int | ADL_Display_DisplayInfo_Get (int iAdapterIndex, int *lpNumDisplays, ADLDisplayInfo **lppInfo, int iForceDetect) |
| Function to retrieve the adapter display information. | |
| int | ADL2_Display_DpMstInfo_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumDisplays, ADLDisplayDPMSTInfo **lppDisplayDPMstInfo, int iForceDetect) |
| Function to retrieve the Display Port MST information. | |
| int | ADL_Display_DpMstInfo_Get (int iAdapterIndex, int *lpNumDisplays, ADLDisplayDPMSTInfo **lppDisplayDPMstInfo, int iForceDetect) |
| Function to retrieve the Display Port MST information. | |
| int | ADL2_Display_NumberOfDisplays_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumDisplays) |
| Function to retrieve the number of displays supported by an adapter. | |
| int | ADL_Display_NumberOfDisplays_Get (int iAdapterIndex, int *lpNumDisplays) |
| Function to retrieve the number of displays supported by an adapter. | |
| int | ADL2_Display_PreservedAspectRatio_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to retrieve the display perserved aspect ratio of an adapter. | |
| int | ADL_Display_PreservedAspectRatio_Get (int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to retrieve the display perserved aspect ratio of an adapter. | |
| int | ADL2_Display_PreservedAspectRatio_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the display preserved aspect ratio. | |
| int | ADL_Display_PreservedAspectRatio_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the display preserved aspect ratio. | |
| int | ADL2_Display_ImageExpansion_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to retrieve the display image expansion setting. | |
| int | ADL_Display_ImageExpansion_Get (int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to retrieve the display image expansion setting. | |
| int | ADL2_Display_ImageExpansion_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the display image expansion setting. | |
| int | ADL_Display_ImageExpansion_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the display image expansion setting. | |
| int | ADL2_Display_Position_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpX, int *lpY, int *lpXDefault, int *lpYDefault, int *lpMinX, int *lpMinY, int *lpMaxX, int *lpMaxY, int *lpStepX, int *lpStepY) |
| Function to get Device Display Position. | |
| int | ADL_Display_Position_Get (int iAdapterIndex, int iDisplayIndex, int *lpX, int *lpY, int *lpXDefault, int *lpYDefault, int *lpMinX, int *lpMinY, int *lpMaxX, int *lpMaxY, int *lpStepX, int *lpStepY) |
| Function to get Device Display Position. | |
| int | ADL2_Display_Position_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iX, int iY) |
| Function to set the Device Display Position. | |
| int | ADL_Display_Position_Set (int iAdapterIndex, int iDisplayIndex, int iX, int iY) |
| Function to set the Device Display Position. | |
| int | ADL2_Display_Size_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpWidth, int *lpHeight, int *lpDefaultWidth, int *lpDefaultHeight, int *lpMinWidth, int *lpMinHeight, int *lpMaxWidth, int *lpMaxHeight, int *lpStepWidth, int *lpStepHeight) |
| Function to get the Device Display Size. | |
| int | ADL_Display_Size_Get (int iAdapterIndex, int iDisplayIndex, int *lpWidth, int *lpHeight, int *lpDefaultWidth, int *lpDefaultHeight, int *lpMinWidth, int *lpMinHeight, int *lpMaxWidth, int *lpMaxHeight, int *lpStepWidth, int *lpStepHeight) |
| Function to get the Device Display Size. | |
| int | ADL2_Display_Size_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iWidth, int iHeight) |
| Function to set the Device Display Size. | |
| int | ADL_Display_Size_Set (int iAdapterIndex, int iDisplayIndex, int iWidth, int iHeight) |
| Function to set the Device Display Size. | |
| int | ADL2_Display_AdjustCaps_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpInfo) |
| Function to retrieve the adjustment display information. | |
| int | ADL_Display_AdjustCaps_Get (int iAdapterIndex, int iDisplayIndex, int *lpInfo) |
| Function to retrieve the adjustment display information. | |
| int | ADL2_Display_Capabilities_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumberOfControlers, int *lpNumberOfDisplays) |
| Function to get the number of displays and controllers supported by an adapter. | |
| int | ADL_Display_Capabilities_Get (int iAdapterIndex, int *lpNumberOfControlers, int *lpNumberOfDisplays) |
| Function to get the number of displays and controllers supported by an adapter. | |
| int | ADL2_Display_ConnectedDisplays_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpConnections) |
| Function to indicate whether displays are physically connected to an adapter. | |
| int | ADL_Display_ConnectedDisplays_Get (int iAdapterIndex, int *lpConnections) |
| Function to indicate whether displays are physically connected to an adapter. | |
| int | ADL2_Display_DeviceConfig_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDisplayConfig *lpDisplayConfig) |
| Function to get HDTV capability settings. | |
| int | ADL_Display_DeviceConfig_Get (int iAdapterIndex, int iDisplayIndex, ADLDisplayConfig *lpDisplayConfig) |
| Function to get HDTV capability settings. | |
| int | ADL2_Display_Property_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDisplayProperty *lpDisplayProperty) |
| Function to get the current display property value. | |
| int | ADL_Display_Property_Get (int iAdapterIndex, int iDisplayIndex, ADLDisplayProperty *lpDisplayProperty) |
| Function to get the current display property value. | |
| int | ADL2_Display_Property_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDisplayProperty *lpDisplayProperty) |
| Function to set current display property value. | |
| int | ADL_Display_Property_Set (int iAdapterIndex, int iDisplayIndex, ADLDisplayProperty *lpDisplayProperty) |
| Function to set current display property value. | |
| int | ADL2_Display_SwitchingCapability_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpResult) |
| Function to retrieve the Display Switching Flag from the registry. | |
| int | ADL_Display_SwitchingCapability_Get (int iAdapterIndex, int *lpResult) |
| int | ADL2_Display_DitherState_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpDitherState) |
| Function to retrieve the dither state. | |
| int | ADL_Display_DitherState_Get (int iAdapterIndex, int iDisplayIndex, int *lpDitherState) |
| Function to retrieve the dither state. | |
| int | ADL2_Display_DitherState_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iDitherState) |
| Function to set the dither state. | |
| int | ADL_Display_DitherState_Set (int iAdapterIndex, int iDisplayIndex, int iDitherState) |
| Function to set the dither state. | |
| int | ADL2_Display_SupportedPixelFormat_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpPixelFormat) |
| Function to retrieve the supported pixel format. HDMI only. | |
| int | ADL_Display_SupportedPixelFormat_Get (int iAdapterIndex, int iDisplayIndex, int *lpPixelFormat) |
| Function to retrieve the supported pixel format. HDMI only. | |
| int | ADL2_Display_PixelFormat_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpPixelFormat) |
| Function to retrieve the current display pixel format. HDMI only. | |
| int | ADL_Display_PixelFormat_Get (int iAdapterIndex, int iDisplayIndex, int *lpPixelFormat) |
| Function to retrieve the current display pixel format. HDMI only. | |
| int | ADL2_Display_PixelFormatDefault_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpDefPixelFormat) |
| Function to retrieve the current display pixel format. HDMI only. | |
| int | ADL2_Display_PixelFormat_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iPixelFormat) |
| Function to set the current display pixel format. HDMI only. | |
| int | ADL_Display_PixelFormat_Set (int iAdapterIndex, int iDisplayIndex, int iPixelFormat) |
| Function to set the current display pixel format. HDMI only. | |
| int | ADL2_Display_SupportedColorDepth_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpColorDepth) |
| Function to retrieve the supported color depth. HDMI and DPonly. | |
| int | ADL_Display_SupportedColorDepth_Get (int iAdapterIndex, int iDisplayIndex, int *lpColorDepth) |
| Function to retrieve the supported color depth. HDMI and DPonly. | |
| int | ADL2_Display_ColorDepth_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpColorDepth) |
| Function to get color depth. HDMI and DPonly. | |
| int | ADL_Display_ColorDepth_Get (int iAdapterIndex, int iDisplayIndex, int *lpColorDepth) |
| Function to get color depth. HDMI and DPonly. | |
| int | ADL2_Display_ColorDepth_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iColorDepth) |
| Function to set color depth. HDMI and DPonly. | |
| int | ADL_Display_ColorDepth_Set (int iAdapterIndex, int iDisplayIndex, int iColorDepth) |
| Function to set color depth. HDMI and DPonly. | |
| int | ADL2_Display_ODClockInfo_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLAdapterODClockInfo *lpOdClockInfo) |
| Function to retrieve the OD clock information. | |
| int | ADL_Display_ODClockInfo_Get (int iAdapterIndex, ADLAdapterODClockInfo *lpOdClockInfo) |
| Function to retrieve the OD clock information. | |
| int | ADL2_Display_ODClockConfig_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLAdapterODClockConfig *lpOdClockConfig) |
| Function to set the OD clock configuration. | |
| int | ADL_Display_ODClockConfig_Set (int iAdapterIndex, ADLAdapterODClockConfig *lpOdClockConfig) |
| Function to set the OD clock configuration. | |
| int | ADL2_Display_AdjustmentCoherent_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpAdjustmentCoherentCurrent, int *lpAdjustmentCoherentDefault) |
| Function to retrieve the adjustment coherent setting. | |
| int | ADL_Display_AdjustmentCoherent_Get (int iAdapterIndex, int iDisplayIndex, int *lpAdjustmentCoherentCurrent, int *lpAdjustmentCoherentDefault) |
| Function to retrieve the adjustment coherent setting. | |
| int | ADL2_Display_AdjustmentCoherent_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iAdjustmentCoherent) |
| Function to set the adjustment coherent setting. | |
| int | ADL_Display_AdjustmentCoherent_Set (int iAdapterIndex, int iDisplayIndex, int iAdjustmentCoherent) |
| Function to set the adjustment coherent setting. | |
| int | ADL2_Display_ReducedBlanking_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpReducedBlankingCurrent, int *lpReducedBlankingDefault) |
| Function to retrieve the reduced blanking setting. | |
| int | ADL_Display_ReducedBlanking_Get (int iAdapterIndex, int iDisplayIndex, int *lpReducedBlankingCurrent, int *lpReducedBlankingDefault) |
| Function to retrieve the reduced blanking setting. | |
| int | ADL2_Display_ReducedBlanking_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iReducedBlanking) |
| Function to set the reduced blanking setting. | |
| int | ADL_Display_ReducedBlanking_Set (int iAdapterIndex, int iDisplayIndex, int iReducedBlanking) |
| Function to set the reduced blanking setting. | |
| int | ADL2_Display_FormatsOverride_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSettingsSupported, int *lpSettingsSupportedEx, int *lpCurSettings) |
| Function to retrieve the available display formats. | |
| int | ADL_Display_FormatsOverride_Get (int iAdapterIndex, int iDisplayIndex, int *lpSettingsSupported, int *lpSettingsSupportedEx, int *lpCurSettings) |
| Function to retrieve the available display formats. | |
| int | ADL2_Display_FormatsOverride_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iOverrideSettings) |
| Function to overide the display formats. | |
| int | ADL_Display_FormatsOverride_Set (int iAdapterIndex, int iDisplayIndex, int iOverrideSettings) |
| Function to overide the display formats. | |
| int | ADL2_Display_MVPUCaps_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLMVPUCaps *lpMvpuCaps) |
| Function to retrieve the information about MultiVPU capabilities. | |
| int | ADL_Display_MVPUCaps_Get (int iAdapterIndex, ADLMVPUCaps *lpMvpuCaps) |
| Function to retrieve the information about MultiVPU capabilities. | |
| int | ADL2_Display_MVPUStatus_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLMVPUStatus *lpMvpuStatus) |
| Function to retrieve information about MultiVPU status. | |
| int | ADL_Display_MVPUStatus_Get (int iAdapterIndex, ADLMVPUStatus *lpMvpuStatus) |
| Function to retrieve information about MultiVPU status. | |
| int | ADL2_Display_ControllerOverlayAdjustmentCaps_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLControllerOverlayInput *lpOverlayInput, ADLControllerOverlayInfo *lpCapsInfo) |
| Function to get the minimum, maximum, and default values of an overlay adjustment. | |
| int | ADL_Display_ControllerOverlayAdjustmentCaps_Get (int iAdapterIndex, ADLControllerOverlayInput *lpOverlayInput, ADLControllerOverlayInfo *lpCapsInfo) |
| Function to get the minimum, maximum, and default values of an overlay adjustment. | |
| int | ADL2_Display_ControllerOverlayAdjustmentData_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLControllerOverlayInput *lpOverlay) |
| Function to retrieve the current setting of an overlay adjustment. | |
| int | ADL_Display_ControllerOverlayAdjustmentData_Get (int iAdapterIndex, ADLControllerOverlayInput *lpOverlay) |
| Function to retrieve the current setting of an overlay adjustment. | |
| int | ADL2_Display_ControllerOverlayAdjustmentData_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLControllerOverlayInput *lpOverlay) |
| Function to set the current setting of an overlay adjustment. | |
| int | ADL_Display_ControllerOverlayAdjustmentData_Set (int iAdapterIndex, ADLControllerOverlayInput *lpOverlay) |
| Function to set the current setting of an overlay adjustment. | |
| int | ADL2_Display_ViewPort_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLControllerMode *lpControllerMode) |
| Function to change the view position, view size or view pan lock of a selected display. | |
| int | ADL_Display_ViewPort_Set (int iAdapterIndex, int iDisplayIndex, ADLControllerMode *lpControllerMode) |
| Function to change the view position, view size or view pan lock of a selected display. | |
| int | ADL2_Display_ViewPort_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLControllerMode *lpControllerMode) |
| Function to get the view position, view size or view pan lock of a selected display. | |
| int | ADL_Display_ViewPort_Get (int iAdapterIndex, int iDisplayIndex, ADLControllerMode *lpControllerMode) |
| Function to get the view position, view size or view pan lock of a selected display. | |
| int | ADL2_Display_ViewPort_Cap (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpSupported) |
| Function to check if the selected adapter supports the view port control. | |
| int | ADL_Display_ViewPort_Cap (int iAdapterIndex, int *lpSupported) |
| Function to check if the selected adapter supports the view port control. | |
| int | ADL2_Display_WriteAndReadI2CRev_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpMajor, int *lpMinor) |
| Function to retrieve the I2C API revision. | |
| int | ADL_Display_WriteAndReadI2CRev_Get (int iAdapterIndex, int *lpMajor, int *lpMinor) |
| Function to retrieve the I2C API revision. | |
| int | ADL2_Display_WriteAndReadI2C (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLI2C *plI2C) |
| Function to write and read I2C. | |
| int | ADL_Display_WriteAndReadI2C (int iAdapterIndex, ADLI2C *plI2C) |
| Function to write and read I2C. | |
| int | ADL2_Display_DDCBlockAccess_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iOption, int iCommandIndex, int iSendMsgLen, char *lpucSendMsgBuf, int *lpulRecvMsgLen, char *lpucRecvMsgBuf) |
| Function to get Display DDC block access. | |
| int | ADL_Display_DDCBlockAccess_Get (int iAdapterIndex, int iDisplayIndex, int iOption, int iCommandIndex, int iSendMsgLen, char *lpucSendMsgBuf, int *lpulRecvMsgLen, char *lpucRecvMsgBuf) |
| Function to get Display DDC block access. | |
| int | ADL2_Display_DDCInfo_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDDCInfo *lpInfo) |
| Function to get the DDC info. | |
| int | ADL_Display_DDCInfo_Get (int iAdapterIndex, int iDisplayIndex, ADLDDCInfo *lpInfo) |
| Function to get the DDC info. | |
| int | ADL2_Display_DDCInfo2_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDDCInfo2 *lpInfo) |
| Function to get the DDC info. | |
| int | ADL_Display_DDCInfo2_Get (int iAdapterIndex, int iDisplayIndex, ADLDDCInfo2 *lpInfo) |
| Function to get the DDC info. | |
| int | ADL2_Display_EdidData_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDisplayEDIDData *lpEDIDData) |
| Function to get the EDID data. | |
| int | ADL_Display_EdidData_Get (int iAdapterIndex, int iDisplayIndex, ADLDisplayEDIDData *lpEDIDData) |
| Function to get the EDID data. | |
| int | ADL2_Display_ColorCaps_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCaps, int *lpValids) |
| Function to get the Color Caps display information. | |
| int | ADL_Display_ColorCaps_Get (int iAdapterIndex, int iDisplayIndex, int *lpCaps, int *lpValids) |
| Function to get the Color Caps display information. | |
| int | ADL2_Display_Color_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iColorType, int iCurrent) |
| Function to set the current value of a specific color and type. | |
| int | ADL_Display_Color_Set (int iAdapterIndex, int iDisplayIndex, int iColorType, int iCurrent) |
| Function to set the current value of a specific color and type. | |
| int | ADL2_Display_Color_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iColorType, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the detailed information a specified display color item. | |
| int | ADL_Display_Color_Get (int iAdapterIndex, int iDisplayIndex, int iColorType, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the detailed information a specified display color item. | |
| int | ADL2_Display_ColorTemperatureSource_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpTempSource) |
| Function to get color temperature source. | |
| int | ADL_Display_ColorTemperatureSource_Get (int iAdapterIndex, int iDisplayIndex, int *lpTempSource) |
| Function to get color temperature source. | |
| int | ADL2_Display_ColorTemperatureSourceDefault_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpTempSourceDefault) |
| Function to get default color temperature source. | |
| int | ADL2_Display_ColorTemperatureSource_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iTempSource) |
| Function to set the color temperature source. | |
| int | ADL_Display_ColorTemperatureSource_Set (int iAdapterIndex, int iDisplayIndex, int iTempSource) |
| Function to set the color temperature source. | |
| int | ADL2_Display_ModeTimingOverride_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDisplayMode *lpModeIn, ADLDisplayModeInfo *lpModeInfoOut) |
| Function to retrieve display mode timing override information. | |
| int | ADL_Display_ModeTimingOverride_Get (int iAdapterIndex, int iDisplayIndex, ADLDisplayMode *lpModeIn, ADLDisplayModeInfo *lpModeInfoOut) |
| Function to retrieve display mode timing override information. | |
| int | ADL2_Display_ModeTimingOverride_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDisplayModeInfo *lpMode, int iForceUpdate) |
| Function to set display mode timing override information. | |
| int | ADL_Display_ModeTimingOverride_Set (int iAdapterIndex, int iDisplayIndex, ADLDisplayModeInfo *lpMode, int iForceUpdate) |
| Function to set display mode timing override information. | |
| int | ADL2_Display_ModeTimingOverrideList_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iMaxNumOfOverrides, ADLDisplayModeInfo *lpModeInfoList, int *lpNumOfOverrides) |
| Function to get the display mode timing override list. | |
| int | ADL_Display_ModeTimingOverrideList_Get (int iAdapterIndex, int iDisplayIndex, int iMaxNumOfOverrides, ADLDisplayModeInfo *lpModeInfoList, int *lpNumOfOverrides) |
| Function to get the display mode timing override list. | |
| int | ADL2_Display_CustomizedModeListNum_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpListNum) |
| Function to retrieve the number of customized modes. | |
| int | ADL_Display_CustomizedModeListNum_Get (int iAdapterIndex, int iDisplayIndex, int *lpListNum) |
| Function to retrieve the number of customized modes. | |
| int | ADL2_Display_CustomizedModeList_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLCustomMode *lpCustomModeList, int iBuffSize) |
| Function to retrieve the customized mode list. | |
| int | ADL_Display_CustomizedModeList_Get (int iAdapterIndex, int iDisplayIndex, ADLCustomMode *lpCustomModeList, int iBuffSize) |
| Function to retrieve the customized mode list. | |
| int | ADL2_Display_CustomizedMode_Add (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLCustomMode customMode) |
| Function to add a customized mode. | |
| int | ADL_Display_CustomizedMode_Add (int iAdapterIndex, int iDisplayIndex, ADLCustomMode customMode) |
| Function to add a customized mode. | |
| int | ADL2_Display_CustomizedMode_Delete (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iIndex) |
| Function to delete a customized mode. | |
| int | ADL_Display_CustomizedMode_Delete (int iAdapterIndex, int iDisplayIndex, int iIndex) |
| Function to delete a customized mode. | |
| int | ADL2_Display_CustomizedMode_Validate (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLCustomMode customMode, int *lpValid) |
| Function to validate a customized mode. | |
| int | ADL_Display_CustomizedMode_Validate (int iAdapterIndex, int iDisplayIndex, ADLCustomMode customMode, int *lpValid) |
| Function to validate a customized mode. | |
| int | ADL2_Display_UnderscanSupport_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the value of under scan support. | |
| int | ADL2_Display_UnderscanState_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault) |
| Function to get the value of under scan enabled. | |
| int | ADL2_Display_UnderscanState_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iUnderscanEnabled) |
| Function to set the value of under scan enabled. | |
| int | ADL2_Display_Underscan_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of underscan. | |
| int | ADL_Display_Underscan_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of underscan. | |
| int | ADL2_Display_Underscan_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the detailed information for underscan. | |
| int | ADL_Display_Underscan_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the detailed information for underscan. | |
| int | ADL2_Display_Overscan_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of gamma for each controller. | |
| int | ADL_Display_Overscan_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current value of gamma for each controller. | |
| int | ADL2_Display_Overscan_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefualt, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the current value of gamma for each controller. | |
| int | ADL_Display_Overscan_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefualt, int *lpMin, int *lpMax, int *lpStep) |
| Function to retrieve the current value of gamma for each controller. | |
| int | ADL2_DFP_BaseAudioSupport_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the display base audio support. | |
| int | ADL_DFP_BaseAudioSupport_Get (int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the display base audio support. | |
| int | ADL2_DFP_HDMISupport_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the display HDMI support. | |
| int | ADL_DFP_HDMISupport_Get (int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the display HDMI support. | |
| int | ADL2_DFP_MVPUAnalogSupport_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the display MVPU analog support. | |
| int | ADL_DFP_MVPUAnalogSupport_Get (int iAdapterIndex, int iDisplayIndex, int *lpSupport) |
| Function to get the display MVPU analog support. | |
| int | ADL2_DFP_PixelFormat_Caps (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpValidBits, int *lpValidCaps) |
| Function to retrieve PixelFormat caps. | |
| int | ADL_DFP_PixelFormat_Caps (int iAdapterIndex, int iDisplayIndex, int *lpValidBits, int *lpValidCaps) |
| Function to retrieve PixelFormat caps. | |
| int | ADL2_DFP_PixelFormat_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurState, int *lpDefault) |
| Function to retrieve current pixel format setting. | |
| int | ADL_DFP_PixelFormat_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurState, int *lpDefault) |
| Function to retrieve current pixel format setting. | |
| int | ADL2_DFP_PixelFormat_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iState) |
| Function to set the current pixel format setting. | |
| int | ADL_DFP_PixelFormat_Set (int iAdapterIndex, int iDisplayIndex, int iState) |
| Function to set the current pixel format setting. | |
| int | ADL2_DFP_GPUScalingEnable_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to get the GPUScalingEnable setting. | |
| int | ADL_DFP_GPUScalingEnable_Get (int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to get the GPUScalingEnable setting. | |
| int | ADL2_DFP_GPUScalingEnable_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the GPUScalingEnable setting. | |
| int | ADL_DFP_GPUScalingEnable_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the GPUScalingEnable setting. | |
| int | ADL2_DFP_AllowOnlyCETimings_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to get the Allow Only CE Timings setting. | |
| int | ADL_DFP_AllowOnlyCETimings_Get (int iAdapterIndex, int iDisplayIndex, int *lpSupport, int *lpCurrent, int *lpDefault) |
| Function to get the Allow Only CE Timings setting. | |
| int | ADL2_DFP_AllowOnlyCETimings_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the Allow Only CE Timings setting. | |
| int | ADL_DFP_AllowOnlyCETimings_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the Allow Only CE Timings setting. | |
| int | ADL2_Display_TVCaps_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpcaps) |
| Function to retrieve the TV Caps display information. | |
| int | ADL_Display_TVCaps_Get (int iAdapterIndex, int iDisplayIndex, int *lpcaps) |
| Function to retrieve the TV Caps display information. | |
| int | ADL2_TV_Standard_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the TV standard. | |
| int | ADL_TV_Standard_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the TV standard. | |
| int | ADL2_TV_Standard_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpSupportedStandards) |
| Function to retrieve the TV standard. | |
| int | ADL_TV_Standard_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpSupportedStandards) |
| Function to retrieve the TV standard. | |
| int | ADL2_CV_DongleSettings_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpDongleSetting, int *lpOverrideSettingsSupported, int *lpCurOverrideSettings) |
| Function to retrieve the settings of the CV dongle. | |
| int | ADL_CV_DongleSettings_Get (int iAdapterIndex, int iDisplayIndex, int *lpDongleSetting, int *lpOverrideSettingsSupported, int *lpCurOverrideSettings) |
| Function to retrieve the settings of the CV dongle. | |
| int | ADL2_CV_DongleSettings_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iOverrideSettings) |
| Function to set the current CV dongle settings. | |
| int | ADL_CV_DongleSettings_Set (int iAdapterIndex, int iDisplayIndex, int iOverrideSettings) |
| Function to set the current CV dongle settings. | |
| int | ADL2_CV_DongleSettings_Reset (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex) |
| Function to reset the CV settings to its default settings. | |
| int | ADL_CV_DongleSettings_Reset (int iAdapterIndex, int iDisplayIndex) |
| Function to reset the CV settings to its default settings. | |
| int | ADL2_Display_UnderScan_Auto_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to get the current UnderScan Auto setting from the display. This function retrieves the UnderScan Auto information for a specified display. | |
| int | ADL_Display_UnderScan_Auto_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to get the current UnderScan Auto setting from the display. This function retrieves the UnderScan Auto information for a specified display. | |
| int | ADL2_Display_UnderScan_Auto_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current UnderScan Auto setting for the display. This function set the UnderScan Auto setting for a specified display. | |
| int | ADL_Display_UnderScan_Auto_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current UnderScan Auto setting for the display. This function set the UnderScan Auto setting for a specified display. | |
| int | ADL2_Display_Deflicker_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to get the current Deflicker setting from the display. This function retrieves the Deflicker information for a specified display. | |
| int | ADL_Display_Deflicker_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to get the current Deflicker setting from the display. This function retrieves the Deflicker information for a specified display. | |
| int | ADL2_Display_Deflicker_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayindex, int iCurrent) |
| Function to set the current Deflicker setting for the display. This function set the Deflicker setting for a specified display. | |
| int | ADL_Display_Deflicker_Set (int iAdapterIndex, int iDisplayindex, int iCurrent) |
| Function to set the current Deflicker setting for the display. This function set the Deflicker setting for a specified display. | |
| int | ADL2_Display_FilterSVideo_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to get the current FilterSVideo setting from the display. This function retrieves the S-Video Sharpness Control information for a specified display. | |
| int | ADL_Display_FilterSVideo_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMin, int *lpMax, int *lpStep) |
| Function to get the current FilterSVideo setting from the display. This function retrieves the S-Video Sharpness Control information for a specified display. | |
| int | ADL2_Display_FilterSVideo_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current FilterSVideo setting for the display. This function set the S-Video Sharpness Control setting for a specified display. | |
| int | ADL_Display_FilterSVideo_Set (int iAdapterIndex, int iDisplayIndex, int iCurrent) |
| Function to set the current FilterSVideo setting for the display. This function set the S-Video Sharpness Control setting for a specified display. | |
| int | ADL2_Display_DisplayContent_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iContent) |
| This function sets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, the ITC display option must be toggled 'ON' (checked) before display content options become available for setting. If the display content is set, but the ITC is toggled 'OFF', the display content options will disable (gray-out), but still show which display content was last 'set'. | |
| int | ADL_Display_DisplayContent_Set (int iAdapterIndex, int iDisplayIndex, int iContent) |
| This function sets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, the ITC display option must be toggled 'ON' (checked) before display content options become available for setting. If the display content is set, but the ITC is toggled 'OFF', the display content options will disable (gray-out), but still show which display content was last 'set'. | |
| int | ADL2_Display_DisplayContent_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *piContent) |
| This function gets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, even if the ITC display option is toggled 'OFF' (unchecked), this function will still return the last display content mode that was set (or initial value of Graphics). | |
| int | ADL_Display_DisplayContent_Get (int iAdapterIndex, int iDisplayIndex, int *piContent) |
| This function gets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, even if the ITC display option is toggled 'OFF' (unchecked), this function will still return the last display content mode that was set (or initial value of Graphics). | |
| int | ADL2_Display_DisplayContent_Cap (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *pCapContent) |
| This function gets the application availability for display content value and ITC flag. | |
| int | ADL_Display_DisplayContent_Cap (int iAdapterIndex, int iDisplayIndex, int *pCapContent) |
| This function gets the application availability for display content value and ITC flag. | |
| int | ADL2_Adapter_ModeTimingOverride_Caps (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpSupported) |
| Function to retrieve Timing Override support. | |
| int | ADL_Adapter_ModeTimingOverride_Caps (int iAdapterIndex, int *lpSupported) |
| Function to retrieve Timing Override support. | |
| int | ADL2_Display_TargetTiming_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLDisplayID displayID, ADLDisplayModeInfo *lpModeInfoOut) |
| Function to retrieve current display mode timing override information. | |
| int | ADL_Display_TargetTiming_Get (int iAdapterIndex, ADLDisplayID displayID, ADLDisplayModeInfo *lpModeInfoOut) |
| Function to retrieve current display mode timing override information. | |
| int | ADL2_Display_ModeTimingOverrideX2_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLDisplayID displayID, ADLDisplayModeX2 *lpModeIn, ADLDisplayModeInfo *lpModeInfoOut) |
| Function to retrieve display mode timing override information. | |
| int | ADL_Display_ModeTimingOverrideX2_Get (int iAdapterIndex, ADLDisplayID displayID, ADLDisplayModeX2 *lpModeIn, ADLDisplayModeInfo *lpModeInfoOut) |
| Function to retrieve display mode timing override information. | |
| int | ADL2_Display_ModeTimingOverrideListX2_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLDisplayID displayID, int *lpNumOfModes, ADLDisplayModeInfo **lpModeInfoList) |
| Function to get the display mode timing override list. | |
| int | ADL_Display_ModeTimingOverrideListX2_Get (int iAdapterIndex, ADLDisplayID displayID, int *lpNumOfModes, ADLDisplayModeInfo **lpModeInfoList) |
| Function to get the display mode timing override list. | |
| int | ADL2_Display_ModeTimingOverride_Delete (ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLDisplayID displayID, ADLDisplayModeX2 *lpMode, int iForceUpdate) |
| Function to delete display mode timing override information. | |
| int | ADL_Display_ModeTimingOverride_Delete (int iAdapterIndex, ADLDisplayID displayID, ADLDisplayModeX2 *lpMode, int iForceUpdate) |
| Function to delete display mode timing override information. | |
| int | ADL_Display_Downscaling_Caps (int iAdapterIndex, int iDisplayID, int *lpCaps) |
| Function to get the Down-scaling Caps display information. | |
| int | ADL2_Display_Downscaling_Caps (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayID, int *lpCaps) |
| Function to get the Down-scaling Caps display information. | |
| int | ADL_Display_FreeSyncState_Get (int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMinRefreshRateInMicroHz, int *lpMaxRefreshRateInMicroHz) |
| Function to get the current state and capability of the FreeSync feature. | |
| int | ADL2_Display_FreeSyncState_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int *lpCurrent, int *lpDefault, int *lpMinRefreshRateInMicroHz, int *lpMaxRefreshRateInMicroHz) |
| Function to get the current state and capability of the FreeSync feature. | |
| int | ADL_Display_FreeSyncState_Set (int iAdapterIndex, int iDisplayIndex, int iSetting, int iRefreshRateInMicroHz) |
| Function to set the current state of the FreeSync feature. | |
| int | ADL2_Display_FreeSyncState_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iSetting, int iRefreshRateInMicroHz) |
| Function to set the current state of the FreeSync feature. | |
| int | ADL2_Display_DCE_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDceSettings *lpADLDceSettings) |
| Function to retrieve per display Display Connectivity Experience information. | |
| int | ADL_Display_DCE_Set (int iAdapterIndex, int iDisplayIndex, ADLDceSettings *lpADLDceSettings) |
| Function to retrieve per display Display Connectivity Experience information. | |
| int | ADL2_Display_DCE_Get (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLDceSettings *lpADLDceSettings) |
| Function to retrieve per display Display Connectivity Experience information. | |
| int | ADL_Display_DCE_Get (int iAdapterIndex, int iDisplayIndex, ADLDceSettings *lpADLDceSettings) |
| Function to retrieve per display Display Connectivity Experience information. | |
| int | ADL2_Display_FreeSync_Cap (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLFreeSyncCap *lpFreeSyncCaps) |
| Function to retrieve per display FreeSync capability information. | |
| int | ADL_Display_FreeSync_Cap (int iAdapterIndex, int iDisplayIndex, ADLFreeSyncCap *lpFreeSyncCaps) |
| Function to retrieve per display FreeSync capability information. | |
| int | ADL_CDS_UnsafeMode_Set (int iAdapterIndex, int unsafeMode) |
| Function to set the current EDS mode enumeration mode. | |
| int | ADL2_CDS_UnsafeMode_Set (ADL_CONTEXT_HANDLE context, int iAdapterIndex, int unsafeMode) |
| Function to set the current EDS mode enumeration mode. |
Copyright (c) 2008 - 2018 Advanced Micro Devices, Inc. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. This file contains all display-related functions exposed by ADL for Linux and Windows(XP, Vista and above); 32bit and 64bit platforms. All functions in this file can be used as a reference to ensure the appropriate function pointers can be used by the appropriate runtime dynamic library loaders.
| #define ADL_EXTERNC |
| int ADL2_Display_UnderScan_Auto_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to get the current UnderScan Auto setting from the display. This function retrieves the UnderScan Auto information for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [out] | lpCurrent | The current underscan auto setting |
| [out] | lpDefault | The default underscan auto setting |
| [out] | lpMin | The current underscan auto setting |
| [out] | lpMax | The default underscan auto setting |
| [out] | lpStep | The current underscan auto setting |
| int ADL_Display_UnderScan_Auto_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to get the current UnderScan Auto setting from the display. This function retrieves the UnderScan Auto information for a specified display.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [out] | lpCurrent | The current underscan auto setting |
| [out] | lpDefault | The default underscan auto setting |
| [out] | lpMin | The current underscan auto setting |
| [out] | lpMax | The default underscan auto setting |
| [out] | lpStep | The current underscan auto setting |
| int ADL2_Display_UnderScan_Auto_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current UnderScan Auto setting for the display. This function set the UnderScan Auto setting for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iCurrent | The new underscan auto setting |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL_Display_UnderScan_Auto_Set | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current UnderScan Auto setting for the display. This function set the UnderScan Auto setting for a specified display.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iCurrent | The new underscan auto setting |
| int ADL2_Display_Deflicker_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to get the current Deflicker setting from the display. This function retrieves the Deflicker information for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [out] | lpCurrent | The current Deflicker setting |
| [out] | lpDefault | The default Deflicker setting |
| [out] | lpMin | The current Deflicker setting |
| [out] | lpMax | The default Deflicker setting |
| [out] | lpStep | The current Deflicker setting |
| int ADL_Display_Deflicker_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to get the current Deflicker setting from the display. This function retrieves the Deflicker information for a specified display.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [out] | lpCurrent | The current Deflicker setting |
| [out] | lpDefault | The default Deflicker setting |
| [out] | lpMin | The current Deflicker setting |
| [out] | lpMax | The default Deflicker setting |
| [out] | lpStep | The current Deflicker setting |
| int ADL2_Display_Deflicker_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayindex, | |||
| int | iCurrent | |||
| ) |
Function to set the current Deflicker setting for the display. This function set the Deflicker setting for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iCurrent | The new Deflicker setting |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL_Display_Deflicker_Set | ( | int | iAdapterIndex, | |
| int | iDisplayindex, | |||
| int | iCurrent | |||
| ) |
Function to set the current Deflicker setting for the display. This function set the Deflicker setting for a specified display.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iCurrent | The new Deflicker setting |
| int ADL2_Display_FilterSVideo_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to get the current FilterSVideo setting from the display. This function retrieves the S-Video Sharpness Control information for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [out] | lpCurrent | The current FilterSVideo setting |
| [out] | lpDefault | The default FilterSVideo setting |
| [out] | lpMin | The current FilterSVideo setting |
| [out] | lpMax | The default FilterSVideo setting |
| [out] | lpStep | The current FilterSVideo setting |
| int ADL_Display_FilterSVideo_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMin, | |||
| int * | lpMax, | |||
| int * | lpStep | |||
| ) |
Function to get the current FilterSVideo setting from the display. This function retrieves the S-Video Sharpness Control information for a specified display.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [out] | lpCurrent | The current FilterSVideo setting |
| [out] | lpDefault | The default FilterSVideo setting |
| [out] | lpMin | The current FilterSVideo setting |
| [out] | lpMax | The default FilterSVideo setting |
| [out] | lpStep | The current FilterSVideo setting |
| int ADL2_Display_FilterSVideo_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current FilterSVideo setting for the display. This function set the S-Video Sharpness Control setting for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iCurrent | The new FilterSVideo setting |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL_Display_FilterSVideo_Set | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int | iCurrent | |||
| ) |
Function to set the current FilterSVideo setting for the display. This function set the S-Video Sharpness Control setting for a specified display.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iCurrent | The new FilterSVideo setting |
| int ADL2_Display_DisplayContent_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int | iContent | |||
| ) |
This function sets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, the ITC display option must be toggled 'ON' (checked) before display content options become available for setting. If the display content is set, but the ITC is toggled 'OFF', the display content options will disable (gray-out), but still show which display content was last 'set'.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iContent | The display content desired to be set; where iContent is one of ADLDisplayContent.iContentType |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL_Display_DisplayContent_Set | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int | iContent | |||
| ) |
This function sets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, the ITC display option must be toggled 'ON' (checked) before display content options become available for setting. If the display content is set, but the ITC is toggled 'OFF', the display content options will disable (gray-out), but still show which display content was last 'set'.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | iContent | The display content desired to be set; where iContent is one of ADLDisplayContent.iContentType |
| int ADL2_Display_DisplayContent_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | piContent | |||
| ) |
This function gets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, even if the ITC display option is toggled 'OFF' (unchecked), this function will still return the last display content mode that was set (or initial value of Graphics).
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | piContent | The current display content setting; where piContent is one of ADLDisplayContent.iContentType |
| int ADL_Display_DisplayContent_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | piContent | |||
| ) |
This function gets the picture setting (Graphics, Photo, Cinema or Gaming) on any HDMI that supports these modes. The application associated with this function is designed such that, even if the ITC display option is toggled 'OFF' (unchecked), this function will still return the last display content mode that was set (or initial value of Graphics).
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | piContent | The current display content setting; where piContent is one of ADLDisplayContent.iContentType |
| int ADL2_Display_DisplayContent_Cap | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | pCapContent | |||
| ) |
This function gets the application availability for display content value and ITC flag.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | pCapContent | The current cap setting(if display content and ITC data are retrievable); where pCapContent returns the bitOR value of all supported ADLDisplayContent.iContentType (i.e. according to definitions of ADLDisplayContent.iContentType, if all content is supported it is expected that pCapContent will return with a value of, Graphics | Photo | Cinema |Game = 15) |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL_Display_DisplayContent_Cap | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | pCapContent | |||
| ) |
This function gets the application availability for display content value and ITC flag.
| [in] | iAdapterIndex | The index of the desired adapter. |
| [in] | iDisplayIndex | The index of the desired display. |
| [in] | pCapContent | The current cap setting(if display content and ITC data are retrievable); where pCapContent returns the bitOR value of all supported ADLDisplayContent.iContentType (i.e. according to definitions of ADLDisplayContent.iContentType, if all content is supported it is expected that pCapContent will return with a value of, Graphics | Photo | Cinema |Game = 15) |
| int ADL2_Adapter_ModeTimingOverride_Caps | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int * | lpSupported | |||
| ) |
Function to retrieve Timing Override support.
This function retrieves Timing Override support for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [out] | lpSupported | If the specified adapter supports Custom Resolutions then returns ADL_TRUE else ADL_FALSE |
| int ADL_Adapter_ModeTimingOverride_Caps | ( | int | iAdapterIndex, | |
| int * | lpSupported | |||
| ) |
Function to retrieve Timing Override support.
This function retrieves Timing Override support for a specified display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [out] | lpSupported | If the specified adapter supports Custom Resolutions then returns ADL_TRUE else ADL_FALSE |
| int ADL2_Display_TargetTiming_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| ADLDisplayID | displayID, | |||
| ADLDisplayModeInfo * | lpModeInfoOut | |||
| ) |
Function to retrieve current display mode timing override information.
This function retrieves current display mode timing override information for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpModeInfoOut | The pointer to the ADLDisplayModeInfo structure storing the retrieved display mode information. |
| int ADL_Display_TargetTiming_Get | ( | int | iAdapterIndex, | |
| ADLDisplayID | displayID, | |||
| ADLDisplayModeInfo * | lpModeInfoOut | |||
| ) |
Function to retrieve current display mode timing override information.
This function retrieves current display mode timing override information for a specified display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpModeInfoOut | The pointer to the ADLDisplayModeInfo structure storing the retrieved display mode information. |
| int ADL2_Display_ModeTimingOverrideX2_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| ADLDisplayID | displayID, | |||
| ADLDisplayModeX2 * | lpModeIn, | |||
| ADLDisplayModeInfo * | lpModeInfoOut | |||
| ) |
Function to retrieve display mode timing override information.
This function retrieves display mode timing override information for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | lpModeIn | The pointer to the ADLDisplayMode structure storing the desired display mode. |
| [out] | lpModeInfoOut | The pointer to the ADLDisplayModeInfo structure storing the retrieved display mode information. |
| int ADL_Display_ModeTimingOverrideX2_Get | ( | int | iAdapterIndex, | |
| ADLDisplayID | displayID, | |||
| ADLDisplayModeX2 * | lpModeIn, | |||
| ADLDisplayModeInfo * | lpModeInfoOut | |||
| ) |
Function to retrieve display mode timing override information.
This function retrieves display mode timing override information for a specified display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | lpModeIn | The pointer to the ADLDisplayMode structure storing the desired display mode. |
| [out] | lpModeInfoOut | The pointer to the ADLDisplayModeInfo structure storing the retrieved display mode information. |
| int ADL2_Display_ModeTimingOverrideListX2_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| ADLDisplayID | displayID, | |||
| int * | lpNumOfModes, | |||
| ADLDisplayModeInfo ** | lpModeInfoList | |||
| ) |
Function to get the display mode timing override list.
This function retrieves display mode timing override list.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpNumOfModes | The pointer to the actual number of the retrieved overridden modes. |
| [out] | lpModeInfoList | The pointer to the retrieved ADLDisplayModeInfo structure. This pointer must be allocated by the user. |
| int ADL_Display_ModeTimingOverrideListX2_Get | ( | int | iAdapterIndex, | |
| ADLDisplayID | displayID, | |||
| int * | lpNumOfModes, | |||
| ADLDisplayModeInfo ** | lpModeInfoList | |||
| ) |
Function to get the display mode timing override list.
This function retrieves display mode timing override list.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpNumOfModes | The pointer to the actual number of the retrieved overridden modes. |
| [out] | lpModeInfoList | The pointer to the retrieved ADLDisplayModeInfo structure. This pointer must be allocated by the user. |
| int ADL2_Display_ModeTimingOverride_Delete | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| ADLDisplayID | displayID, | |||
| ADLDisplayModeX2 * | lpMode, | |||
| int | iForceUpdate | |||
| ) |
Function to delete display mode timing override information.
This function delete display mode timing override information for a specified display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | lpModeIn | The pointer to the ADLDisplayMode structure storing the desired display mode. |
| [in] | iForceUpdate | The value which forces the update of the timing override information. |
| int ADL_Display_ModeTimingOverride_Delete | ( | int | iAdapterIndex, | |
| ADLDisplayID | displayID, | |||
| ADLDisplayModeX2 * | lpMode, | |||
| int | iForceUpdate | |||
| ) |
Function to delete display mode timing override information.
This function delete display mode timing override information for a specified display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | displayID | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | lpModeIn | The pointer to the ADLDisplayMode structure storing the desired display mode. |
| [in] | iForceUpdate | The value which forces the update of the timing override information. |
| int ADL_Display_Downscaling_Caps | ( | int | iAdapterIndex, | |
| int | iDisplayID, | |||
| int * | lpCaps | |||
| ) |
Function to get the Down-scaling Caps display information.
This function retrieves the Down-scaling Caps information for a specified adapter and display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayID | The desired display ID. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCaps | The pointer to the Down-scaling Caps information retrieved from the driver. |
| int ADL2_Display_Downscaling_Caps | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayID, | |||
| int * | lpCaps | |||
| ) |
Function to get the Down-scaling Caps display information.
This function retrieves the Down-scaling Caps information for a specified adapter and display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayID | The desired display ID. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCaps | The pointer to the Down-scaling Caps information retrieved from the driver. |
| int ADL_Display_FreeSyncState_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMinRefreshRateInMicroHz, | |||
| int * | lpMaxRefreshRateInMicroHz | |||
| ) |
Function to get the current state and capability of the FreeSync feature.
This function gets the current and default FreeSync settings for a specified display along with the supported FreeSync refresh rate range.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCurrent | The pointer to the FreeSync setting currently applied. It is a bit vector. Define_freesync_usecase |
| [out] | lpDefault | The pointer to the default FreeSync setting. It is a bit vector. Define_freesync_usecase |
| [out] | lpMinRefreshRateInMicroHz | The pointer to the minimum refresh rate in the range supported by FreeSync in microhertz. |
| [out] | lpMaxRefreshRateInMicroHz | The pointer to the maximum refresh rate in the range supported by FreeSync in microhertz. |
| int ADL2_Display_FreeSyncState_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int * | lpCurrent, | |||
| int * | lpDefault, | |||
| int * | lpMinRefreshRateInMicroHz, | |||
| int * | lpMaxRefreshRateInMicroHz | |||
| ) |
Function to get the current state and capability of the FreeSync feature.
This function gets the current and default FreeSync settings for a specified display along with the supported FreeSync refresh rate range.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpCurrent | The pointer to the FreeSync setting currently applied. It is a bit vector. Define_freesync_usecase |
| [out] | lpDefault | The pointer to the default FreeSync setting. It is a bit vector. Define_freesync_usecase |
| [out] | lpMinRefreshRateInMicroHz | The pointer to the minimum refresh rate in the range supported by FreeSync in microhertz. |
| [out] | lpMaxRefreshRateInMicroHz | The pointer to the maximum refresh rate in the range supported by FreeSync in microhertz. |
| int ADL_Display_FreeSyncState_Set | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| int | iSetting, | |||
| int | iRefreshRateInMicroHz | |||
| ) |
Function to set the current state of the FreeSync feature.
This function sets the FreeSync feature enable state for a specified display. There is a second input parameter that may be used to request a specific refresh rate to be applied.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | iSetting | The desired FreeSync setting to be applied for the specified display. Define_freesync_usecase |
| [in] | iRefreshRateInMicroHz | If non-zero value is specified, this indicates a request to set a specific refresh rate in microhertz. Otherwise, driver default will decide FreeSync refresh rate dynamically. |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL2_Display_FreeSyncState_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| int | iSetting, | |||
| int | iRefreshRateInMicroHz | |||
| ) |
Function to set the current state of the FreeSync feature.
This function sets the FreeSync feature enable state for a specified display. There is a second input parameter that may be used to request a specific refresh rate to be applied.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [in] | iSetting | The desired FreeSync setting to be applied for the specified display. Define_freesync_usecase |
| [in] | iRefreshRateInMicroHz | If non-zero value is specified, this indicates a request to set a specific refresh rate in microhertz. Otherwise, driver default will decide FreeSync refresh rate dynamically. |
Clients can use ADL2 version of the API to assure that there is no interference with other ADL clients that are running in the same process . Such clients have to call ADL2_Main_Control_Create first to obtain ADL_CONTEXT_HANDLE instance that has to be passed to each subsequent ADL2 call and finally destroyed using ADL2_Main_Control_Destroy.
| int ADL2_Display_DCE_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| ADLDceSettings * | lpADLDceSettings | |||
| ) |
Function to retrieve per display Display Connectivity Experience information.
This function sets the Display Connectivity Experience settings of a display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpFreeSyncCaps | The pointer to the ADLDceSettings structure |
| int ADL_Display_DCE_Set | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| ADLDceSettings * | lpADLDceSettings | |||
| ) |
Function to retrieve per display Display Connectivity Experience information.
This function sets the Display Connectivity Experience settings of a display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpFreeSyncCaps | The pointer to the ADLDceSettings structure |
| int ADL2_Display_DCE_Get | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| ADLDceSettings * | lpADLDceSettings | |||
| ) |
Function to retrieve per display Display Connectivity Experience information.
This function retrieves the Display Connectivity Experience settings of a display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpFreeSyncCaps | The pointer to the ADLDceSettings structure |
| int ADL_Display_DCE_Get | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| ADLDceSettings * | lpADLDceSettings | |||
| ) |
Function to retrieve per display Display Connectivity Experience information.
This function retrieves the Display Connectivity Experience settings of a display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpFreeSyncCaps | The pointer to the ADLDceSettings structure |
| int ADL2_Display_FreeSync_Cap | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | iDisplayIndex, | |||
| ADLFreeSyncCap * | lpFreeSyncCaps | |||
| ) |
Function to retrieve per display FreeSync capability information.
This function retrieves the FreeSync capabilities of a display.
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpFreeSyncCaps | The pointer to the ADLFreeSyncCap structure storing the retrieved FreeSync capabilities for the requested display index. |
| int ADL_Display_FreeSync_Cap | ( | int | iAdapterIndex, | |
| int | iDisplayIndex, | |||
| ADLFreeSyncCap * | lpFreeSyncCaps | |||
| ) |
Function to retrieve per display FreeSync capability information.
This function retrieves the FreeSync capabilities of a display.
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | iDisplayIndex | The desired display index. It can be retrieved from the ADLDisplayInfo data structure. |
| [out] | lpFreeSyncCaps | The pointer to the ADLFreeSyncCap structure storing the retrieved FreeSync capabilities for the requested display index. |
| int ADL_CDS_UnsafeMode_Set | ( | int | iAdapterIndex, | |
| int | unsafeMode | |||
| ) |
Function to set the current EDS mode enumeration mode.
This function sets the current EDS mode enumeration mode: Safe or Unsafe(raw modes).
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | unsafeMode | The EDS mode enumeration mode to set (0: Safe mode, 1: Unsafe mode). |
| int ADL2_CDS_UnsafeMode_Set | ( | ADL_CONTEXT_HANDLE | context, | |
| int | iAdapterIndex, | |||
| int | unsafeMode | |||
| ) |
Function to set the current EDS mode enumeration mode.
This function sets the current EDS mode enumeration mode: Safe or Unsafe(raw modes).
| [in] | context,: | Client's ADL context handle ADL_CONTEXT_HANDLE obtained from ADL2_Main_Control_Create. |
| [in] | iAdapterIndex | The ADL index handle of the desired adapter. |
| [in] | unsafeMode | The EDS mode enumeration mode to set (0: Safe mode, 1: Unsafe mode). |


Erlxml
Modern Erlang / Elixir library for XML <-> map serialisation and deserialisation using XSD schema powered by OTP/xmerl
Version: 1.0.0
Erlang/OTP: >= 20
Summary
Erlxml provides more modern approach for working with data coming from XML sources. In order for Erlxml to determine how to deserialise XML a XML-schema also known as XSD must be provided.
Erlxml will validate against the provided XSD on serialisation and deserialisation. This includes extensive type checks - Validation is done by xmerl_xsd module.
Type casting of data is will be attempted altough only a limited set of XML types is supported at this stage:
xs:string
<>binary
xs:decimal
<>float
xs:float
<>float
xs:int
<>integer
xs:integer
<>integer
xs:positiveInteger
<>integer
xs:negativeInteger
<>integer
xs:nonPositiveInteger
<>integer
xs:nonNegativeInteger
<>integer
xs:date
<>{YYYY, MM, DD}
(Only "YYYY-MM-DD" format is supported at this stage)xs:boolean
<>boolean
or0/1
These and all other types are validated by the xmerl_xsd
module, Erlxml handles unkown types
gracefully by casting them to a binary string.
About maps and lists
Erlxml deserialises XML data into maps. It uses the XML-schema (XSD) to determine if
a tag
contains a list of tags
or just some properties - Eg. books -> list of books vs book -> title, description etc. Consider:
`
% List element
#{books=> [
#{book => #{title => <<"Title">>, desc => <<"Desc">>}}
]}
% Non-list element
#{book => #{title => <<"title">>, desc => <<"desc">>}}
`
To determine if a tag
should be deserialised as a 'list-element' Erlxml uses
the maxOccurs
attribute in your XML-schema (XSD). All elements containing an element with a maxOccurs
attribute with a value other than 1
are considered 'list-elements'.
About Schemas
The first line of your schema file (XSD-file) contain <?xml>
.
Schema namespace must be xs:
for now as the library is not handeling schema namespaces dynamically yet.
Usage
Serialise
- Build a Schema state by using
{ok, State} = erlxml:buildschemastate({file, "path/to/example/file.xsd"})
. Call
erlxml:deserialise(#{'mock' => ""}, State)
.
Deserialise
- Build a Schema state by using
{ok, State} = erlxml:buildschemastate({file, "path/to/example/file.xsd"})
. Call
erlxml:deserialise("<mock />", State)
.
Contribute
For issues, comments or feedback please create an issue.


New Dwellings (2011-4) Triangles scaled vertically to show total number of new domestic/residential dwellings between 2011 and 2014 as a proxy for urban growth.
Train / Tram Level of Service Train and tram stops scaled to show relative level of service throughout the day (number of trips servicing the stop).
Acknowledgments PTV General Transit Feed Specification (GTFS), Vulnerability Analysis of Mortgage, Petroleum and Inflation Risks and Expenditure (VAMPIRE) Index from AURIN, Victorian Building Approvals 2011-4 & Address Database from Data Vic / National Map. Many thanks for bits and bobs from Vasile and members of the GovHack Melbourne cohort.
Licensing Available under open license for reuse, commercial use, remixing and redistribution via GitHub.
Project information Please view our official GovHack entry 'Hackerspace' for more information about the inception of this project.


For information about Selenium commands and locators, see Selenium Reference.
Reference > Top| Extended General Interface assertion commands | ||
| Command/Locator | Usage | Description |
| assertAllImagesComplete |
| [assert/verify/waitFor]AllImagesComplete | | | |
assert all images loaded and complete. NOTE: this command takes no parameters (column 2 and 3 are ignored). |
| assertImageComplete |
| [assert/verify/waitFor]ImageComplete | img element id or src path | | |
assert specified img element is loaded and complete. |
| assertJsxAlertOK |
| assertJsxAlertOK | alert caption or message text | | |
assert alert box containing specified caption text or message text and dismiss with ok. |
| assertJsxConfirmOK |
| assertJsxConfirmOK | alert caption or message text | | |
assert confirm box containing specified caption text or message text and dismiss with ok. |
| assertJsxPromptOK |
| assertJsxPromptOK | prompt caption or message text | text message | |
assert prompt box containing specified caption text or message text, enter provided value and dismiss with ok |
| isJsxButtonPresent |
| [assert/verify/waitFor]JsxButtonPresent | Button jsxtext/jsxname | | |
assert if the button with given label text exist. NOTE: this is a convenience function for buttons. You can also use generic assertElementPresent and a JsxFoo locator. |
| isJsxMenuWindowPresent |
| [assert/verify/waitFor]JsxSelectWindowPresent | Heavyweight Window Id | | |
assert specified menu drop down window is present. Heavyweight window Id is the cascaded menu level. |
| isJsxSelectWindowPresent |
| [assert/verify/waitFor]JsxMenuWindowPresent | | | |
assert specified select/combo drop down window is present. |
| isJsxPresent |
| [assert/verify/waitFor]JsxPresent | jsxname/locator | | |
assert that object of given jsxname (or any JSX locator) is present.
For example | waitForJsxPresent | JsxDialogCaption=*Success* | | or | assertJsxPresent | dlgSuccess | | |
| isJsxValueEqual |
| [assert/verify/waitFor]JsxValueEqual | jsxname | expected value | |
assert that object of given jsxname has value equal to expected value |
| isJsxTextEqual |
| [assert/verify/waitFor]JsxTextEqual | jsxname | expected text | |
assert that object of jsxname has text equal to given expected text |
| getJsxRecordIndex |
| get/assert/verify/waitFor/store]JsxRecordIndex | jsxname,[id|text] | | |
Return a record row index with a jsxname,id or jsxname,text
All Get methods also exist in get/assert/verify/waitFor/store forms. |
| getJsxTypeCount |
| getJsxOfType| jsxtype | | |
Return an object count with a jsxtype. |
| getJsxOfType |
| getJsxOfType| jsxtype | | |
Get all objects of given jsxtype |
| getJsxElementName |
| getJsxElementName | locator | | |
Get the jsxname of a located element |
| getJsxByName |
| getJsxByName | jsxname | | |
Get the object of given jsname |
| getJsxByText |
| getJsxByText | jsxtext | | |
Get the object of given jsxtext |
| getJsxSelectedIndex |
| getJsxSelectedIndex | locator | | |
Get the index of the selected item from a Matrix or Tree locator |
| getJsxSelectedIds |
| getJsxSelectedIds | locator | | |
Get all the IDs of the selected items from a Matrix or Tree locator |
| getJsxSelectedId |
| getJsxSelectedId | locator | | |
Same as above but just one item |
| getJsxXmlDocument |
| getJsxXmlDocument | locator |
Get the XML document of a CDF control |
| getJsxText |
| getJsxText | locator | | |
Get the jsxtext of object matching the locator |
| getJsxValue |
| getJsxValue | locator | | |
Get the jsxvalue of object matching the locator |
For information about Selenium commands and locators, see Selenium Reference.


Hyperloop is a new mode of passenger and freight transportation that propels a pod-like vehicle through a near-vacuum tube at airline speeds.
The pods accelerate to cruising speed gradually using a linear electric motor and glide above their track using passive magnetic levitation or air bearings.
The tubes can go above ground on columns or underground, eliminating the dangers of grade crossings.
It is hoped that the system will be highly energy-efficient, quiet and autonomous.
The concept of high-speed travel in tubes has been around for decades, but there has been a resurgence in interest in pneumatic tube transportation systems since being reintroduced, using updated technologies, by Elon Musk after 2012, incorporating reduced-pressure tubes in which pressurized capsules ride on an air cushion driven by linear induction motors and air compressors.
The outline of the original Hyperloop concept was made public by the release of a preliminary design document in August 2013, which included a suggested route running from the Los Angeles region to the San Francisco Bay Area, paralleling the Interstate 5 corridor for most of its length.
Preliminary analysis indicated that such a route might obtain an expected journey time of 35 minutes, meaning that passengers would traverse the 350-mile (560 km) route at an average speed of around 600 mph (970 km/h), with a top speed of 760 mph (1,200 km/h).
Preliminary cost estimates for the LA–SF suggested route were included in the white paper—US$6 billion for a passenger-only version, and US$7.5 billion for a somewhat larger-diameter version transporting passengers and vehicles —although transportation analysts doubted that the system could be constructed on that budget.


Medino, NY 10012, USA Mitro Road
Sat - Fri Day 08:00 am - 5.00 pm Sunday Holyday
ENG
RUS
BAN
Sign Up
Sign in
Home
Home One
Home Two
About
cars
car list one
car list two
pages
reservation
login
registration
404
blog
blog page
blog details
contact us
Create New account
Home
Registration
create your account
I wish subscribe newslatter


De Ligt responds to Kluivert: "I don't regret going to Juve"
by BeSoccerMatthijs de Ligt, the Juventus defender, spoke to the media after Hollands 5-0 win over Estonia. The player took advantage to disagree with Patrick Kluivert, who assured that De Ligt regretted moving to the Italian side in the summer.
"I'm happy. I don't regret having signed for Juventus," he was clear. And he said he had not spoken to Kluivert about it. "I didn't speak to him about me, I understand it's a supposition," he pointed out.
De Ligt understands that the words which Kluivert said have been magnified because he is one of the main men in Dutch football. "I guess the fact it comes from someone like Kluivert makes it more credible, but I didn't say anything to him about me," he repeated.
The footballer always knew that it was not going to be easy for him. "I knew that, with what was paid for me, I would be looked at very closely and it all deteriorated after that match against Napoli," the former Ajax man said.
De Ligt is still in a period of adaptation and is hoping to continue improving day after day: "I am making an additional effort. I have the fondness of my teammates and fans. I'm happy with how everything's going.
Featured links
- BREAKING NEWS: Mourinho replaces Pochettino at Tottenham
- The latest football transfers news and rumours
- Wales, golf, Madrid... in that order
- Luis Enrique returns to Spain national team
The defender is happy to share a dressing room with footballing legends in Turin. "Before coming to the club as an Ajax kid you think: Ronaldo, Buffon, Bonucci, Chiellini... but if you play with them for two months, all of that disappears. They are only teammates... and very good ones," he concluded.


ScarceCoin has a fixed max supply of 21,000 SCARCE. All tokens have already been minted and it is 100% guaranteed to always maintain its sound monetary policy (meaning no dilution or inflation, ever).
It was also fairly distributed - 20,000 tokens were used to provide liquidity on SushiSwap at the initial price of $0.001 per token (on July 3rd, 2021), while the other 1,000 tokens (less than 5% of the max supply) are held by the founding team, which remains 100% anonymous, just like Satoshi.ScarceCoin was built on top of Ethereum's blockchain as an ERC20 token, which makes it extremely secure and decentralized thanks to Ethereum's vast network of miners and nodes.
It was started with an aspiration to be a unique combination of collectible and store of value, with the aim of getting universally accepted as a form of collateral in DeFi, thanks to its inherent and provable scarcity and sound monetary policy (as it is uncorrelated to the price of ETH, BTC, stablecoins and DeFi tokens).No mint function, no admin keys, no treasury, no token burning, no airdrops, no change of monetary policy, and most importantly: no gimmicks and no empty promises.
All code is made open source from the very beginning, there's no further founding team involvement (just like Satoshi) and no official further roadmap, as it is a 100% finished product with a long-term focus on being a collectible and collateral for the next 100+ years with security and long-term viability as its main priorities.1
Download and create Meta Mask wallet on Google Chrome, iOS or Android
2
Buy Ethereum (ETH) or transfer it to your MetaMask account
3
Visit SushiSwap and connect your wallet
4
Add custom token address: 0xB018E86097D5663af3510460Aa1a53F2c893A30C
5
Enter amount you want to swap, click "Swap" and confirm the transaction. Congrats, you're now a ScarceCoin hodler!


Choose the level of difficulty
Choose the level of difficulty
Choose coin side to bet on
Your bet
Result
Play, would be great!
You win! :)
You lose! :(
History
You have never played
- BetResult


NEWS.md
writeBacon()
that was making the model overwriting option not work properly. Thanks Sofia Kjellman for reporting the bug.createOxCalModel()
that was causing errors with IntCal20pvalMonteCarlo()
that occurred during ecdf estimationrunBam()
ar1Surrogates()
mapAgeEnsembleToPaleoData()
mapAgeEnsembleToPaleoData()
createMultiModelEnsemble()
createSyntheticTimeseries()
linterp()
in computeSpectraEns()
. See issue 55
runBchron()
: which.table
parameter changed to meas.table.num
for consistency.Bchron
update. See issue 53
mapTs()
for tibbles.export.quantiles
option in plotTimeseriesEnsRibbons
plotTimeAvailabilityTs()
when only one instance of the group.var
see issue 49
plotTimeseriesStack
to match interpertations, based on TS metadata, specified in invert.var
. Details in ?plotTimeseriesStack
. See issue 30
baseMap()
plotTimeAvailabilityTs()
mapTs()
when the regions were really smallplotTimeAvailabililyTs()
where if group.var
had a variable with a single instance it would fail.NEWS.md
file to track changes to the package.plotCorEns()
legend when using use.fdr = FALSE


{# this is a viewer for contact page #} {% extends www/layout/layout.html %} {% block title %}Contact Us{% endblock %} {% block content %}
We are a home grown organization.
We are always available at<EMAIL_ADDRESS>mail us and we shall contact you soon.
{% endblock %}


Undetected sound sources:
Enter one URL per line. If a website's URL matches the beginning of what is entered, it will always be considered to be a possible sound source. Useful for pages that make use of web audio or popup windows that MuteTab doesn't properly detect.


POMODORO CLOCK
ZZZ
WORK
+
-
25
PLAY
+
-
5
KEEP WORKING
5m
10m
15m
START PLAYING
ADJUST TIME
GO
Adjust time and push start


Distillery is a release manager written in pure Elixir. It allows you to generate releases that can be deployed elsewhere with little to no configuration.
Table of Contents
What is a release?
A release is a package containing your compiled Erlang/Elixir code (i.e BEAM bytecode). It also provides any scripts necessary for launching your application.
When you have written one or more applications, you might want to create a complete system with these applications and a subset of the Erlang/OTP applications. This is called a release. - Erlang documentation
Releases enable simplified deployment: they are self-contained, and provide everything needed to boot the release; they are easily administered via the provided shell script to open up a remote console, start/stop/restart the release, start in the background, send remote commands, and more. In addition, they are archivable artifacts, meaning you can restore an old release from its tarball at any point in the future (barring incompatibilities with the underlying OS or system libraries). The use of releases is also a prerequisite of performing hot upgrades and downgrades, one of the most powerful features of the Erlang VM. - Distillery Documentation
A release will contain the folowing:
- a /bin folder
- This contains a script that is the starting point to running your entire application.
- a /lib folder
- This contains the compiled bytecode of the application along with any dependencies.
- a /releases folder
- This contains metadata about the release as well as hooks and custom commands.
- a /erts-VERSION
- This contains the Erlang runtime which will allow a machine to run your application without having Erlang or Elixir installed.
Getting started/installation
To add Distillery to your project, add it as a dependency to your mix.exs
file. Note - if you are working on an umbrella app this should be in the mix.exs in the root of your project
defp deps do
[{:distillery, "~> 2.0"}]
end
Then in your terminal call:
mix deps.get
mix compile
Building your release
In your terminal, run
mix release.init
This command generates a rel
directory with some configuration files in it.
To generate a release in your terminal run mix release
Once the release is built you should see some instructions in your terminal
==> Assembling release..
==> Building release book_app:0.1.0 using environment dev
==> You have set dev_mode to true, skipping archival phase
Release successfully built!
To start the release you have built, you can use one of the following tasks:
# start a shell, like 'iex -S mix'
> _build/dev/rel/book_app/bin/book_app console
# start in the foreground, like 'mix run --no-halt'
> _build/dev/rel/book_app/bin/book_app foreground
# start in the background, must be stopped with the 'stop' command
> _build/dev/rel/book_app/bin/book_app start
If you started a release elsewhere, and wish to connect to it:
# connects a local shell to the running node
> _build/dev/rel/book_app/bin/book_app remote_console
# connects directly to the running node's console
> _build/dev/rel/book_app/bin/book_app attach
For a complete listing of commands and their use:
> _build/dev/rel/book_app/bin/book_app help
To run your application type the following in your terminal ` _build/dev/rel/MYAPP/bin/MYAPP foreground` In your case replace MYAPP with your project name. Now we’re running the release build of our application!
Using Distillery with Phoenix
If you are using distillery with Phoenix there are a few extra steps you need to follow before this will work.
First, we need to edit our config/prod.exs
file.
Change the following line from this:
config :book_app, BookAppWeb.Endpoint,
load_from_system_env: true,
url: [host: "example.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
to this:
config :book_app, BookAppWeb.Endpoint,
http: [port: {:system, "PORT"}],
url: [host: "localhost", port: {:system, "PORT"}],
cache_static_manifest: "priv/static/cache_manifest.json",
server: true,
root: ".",
version: Application.spec(:book_app, :vsn)
We’ve done a few things here:
server
- boots up the Cowboy application http endpoint on application startroot
- sets up the application root which is where static files are servedversion
- busts the application cache when the application version is hot upgraded.port
- changing the port to be set by an ENV variable allows us to pass in the port number when starting up the application. When we start up the app, we can supply the port by runningPORT=4001 _build/prod/rel/book_app/bin/book_app foreground
If you executed the above command, you might have noticed that your application crashed because it is unable to connect to the database since no database currently exists. This can be rectified by running an Ecto mix
command. In your terminal, type the following:
MIX_ENV=prod mix ecto.create
This command will create your database for you. Try re-running the application and it should start up successfully. However, you will notice that your migrations to your database have not run. Usually in development we run those migrations manually by calling mix ecto.migrate
. For the release, we will have to configure it so that it can run the migrations on its own.
Running Migrations in Production
Distillery provides us with the ability to execute code at different points in a release’s lifecycle. These points are known as boot-hooks. The hooks provided by Distillery include
- pre_start
- post_start
- pre/post_configure
- pre/post_stop
- pre/post_upgrade
For our purposes, we’re going to be using the post_start
hook to run our apps migrations in production. Let’s first go and create a new release task called migrate
. A release task is a module function that we can call on from the terminal that contains code that is separate from the inner workings of our application. It is useful for tasks that the application itself will typically not need to run.
defmodule BookAppWeb.ReleaseTasks do
def migrate do
{:ok, _} = Application.ensure_all_started(:book_app)
path = Application.app_dir(:book_app, "priv/repo/migrations")
Ecto.Migrator.run(BookApp.Repo, path, :up, all: true)
end
end
Note It is good practice to ensure that your applications have all started up properly before running these migrations. The Ecto.Migrator allows us to run our migrations with the connected database.
Next, create a new file - rel/hooks/post_start/migrate.sh
and add the following code:
echo "Running migrations"
bin/book_app rpc "Elixir.BookApp.ReleaseTasks.migrate"
In order for this code to run properly, we are using Erlang’s rpc
module which allows us Remote Produce Call service. Basically, this allows us to call a function on a remote node and get the answer. When running in production it is likely that our application will be running in several different nodes
Finally, in our rel/config.exs
file we’re going to add the hook to our prod configuration.
Let’s replace
environment :prod do
set include_erts: true
set include_src: false
set cookie: :"TkJuF,3nc4)OWPBpPxPDb6mz$>)>a>/v/,l2}W*sUFaz<)bG,v*3pPESE,`XOk{,"
set vm_args: "rel/vm.args"
end
with
environment :prod do
set include_erts: true
set include_src: false
set cookie: :"TkJuF,3nc4)OWPBpPxPDb6mz$>)>a>/v/,l2}W*sUFaz<)bG,v*3pPESE,`XOk{,"
set vm_args: "rel/vm.args"
set post_start_hooks: "rel/hooks/post_start"
end
Note - This hook only exists in the production release of this application. If we used the default development release it would not run.
Custom Commands
When working with a release, you may not have access to mix
commands as mix
may not be installed to the machine the release is deployed to. We can solve this by creating custom commands.
Custom commands are extensions to the boot script, and are used in the same way you use foreground or remote_console, in other words, they have the appearance of being part of the boot script. Like hooks, they have access to the boot scripts helper functions and environment - Distillery Docs
Commands are similar to release tasks in that they are both method functions but are different from them in that they are executed through the terminal as opposed to being run by the release script.
Now that we can run our migrations, we may want to be able to seed our database with information through running a command. First, add a new method to our release tasks. In BookAppWeb.ReleaseTasks
, add the following:
def seed do
seed_path = Application.app_dir(:book_app_web, "priv/repo/seeds.exs")
Code.eval_file(seed_path)
end
Next, create a new file rel/commands/seed.sh
and add the following code:
#!/bin/sh
release_ctl eval "BookAppWeb.ReleaseTasks.seed/0"
Note - release_ctl()
is a shell script provided by Distillery that allows us to execute commands locally or in a clean node. If you need to run this against a running node you can run release_remote_ctl()
See more about shell_scripts from Distillery here
Finally, add the following to your rel/config.exs
file
release :book_app do
...
set commands: [
seed: "rel/commands/seed.sh"
]
end
Be sure, to recreate the release by running MIX_ENV=prod mix release
. Once this is complete, you can now run in your terminal PORT=4001 _build/prod/rel/book_app/bin/book_app seed
.
Caught a mistake or want to contribute to the lesson? Edit this page on GitHub!