clang fixes
This commit is contained in:
committed by
ReenigneArcher
parent
d470cc7d4e
commit
d9bd8e2d77
@@ -69,12 +69,11 @@ syncThreadDesktop() {
|
|||||||
CloseDesktop(hDesk);
|
CloseDesktop(hDesk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Determines whether a given frame is entirely black by checking every pixel.
|
* @brief Determines whether a given frame is entirely black by checking every pixel.
|
||||||
*
|
*
|
||||||
* This function checks if the provided frame is entirely black by inspecting each pixel in both the x and y dimensions. It inspects the RGB channels of each pixel and compares them against a specified black threshold. If any pixel's RGB values exceed this threshold, the frame is considered not black, and the function returns `false`. Otherwise, if all pixels are below the threshold, the function returns `true`.
|
* This function checks if the provided frame is entirely black by inspecting each pixel in both the x and y dimensions. It inspects the RGB channels of each pixel and compares them against a specified black threshold. If any pixel's RGB values exceed this threshold, the frame is considered not black, and the function returns `false`. Otherwise, if all pixels are below the threshold, the function returns `true`.
|
||||||
*
|
*
|
||||||
* @param mappedResource A reference to a `D3D11_MAPPED_SUBRESOURCE` structure that contains the mapped subresource data of the frame to be analyzed.
|
* @param mappedResource A reference to a `D3D11_MAPPED_SUBRESOURCE` structure that contains the mapped subresource data of the frame to be analyzed.
|
||||||
* @param frameDesc A reference to a `D3D11_TEXTURE2D_DESC` structure that describes the texture properties, including width and height.
|
* @param frameDesc A reference to a `D3D11_TEXTURE2D_DESC` structure that describes the texture properties, including width and height.
|
||||||
* @param blackThreshold A floating-point value representing the threshold above which a pixel's RGB channels are considered non-black. The value ranges from 0.0f to 1.0f, with a default value of 0.1f.
|
* @param blackThreshold A floating-point value representing the threshold above which a pixel's RGB channels are considered non-black. The value ranges from 0.0f to 1.0f, with a default value of 0.1f.
|
||||||
@@ -104,7 +103,6 @@ isFrameBlack(const D3D11_MAPPED_SUBRESOURCE &mappedResource, const D3D11_TEXTURE
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Attempts to capture and verify the contents of up to 10 consecutive frames from a DXGI output duplication.
|
* @brief Attempts to capture and verify the contents of up to 10 consecutive frames from a DXGI output duplication.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user