Merge pull request #27434 from leopardracer:4.x

Fix Typos in Comments and Error Messages Across Multiple Files #27434
 
Description:  
This pull request corrects several typographical errors in comments and error messages in the following files:
- `samples/directx/d3d11_interop.cpp`: Fixed typo in the error message ("betweem" → "between").
- `samples/dnn/yolo_detector.cpp`: Fixed typo in a comment ("elemets" → "elements").
- `samples/winrt/ImageManipulations/MediaExtensions/OcvTransform.cpp`: Fixed typo in a comment ("peferred" → "preferred").

These changes improve code readability and maintain consistency in documentation and error reporting. No functional code was modified.
This commit is contained in:
leopardracer 2025-06-11 16:19:05 +03:00 committed by GitHub
parent fcc76c120f
commit b395a2e307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -373,7 +373,7 @@ public:
r = m_pD3D11SwapChain->Present(0, 0);
if (FAILED(r))
{
throw std::runtime_error("switch betweem fronat and back buffers failed!");
throw std::runtime_error("switch between fronat and back buffers failed!");
}
} // try

View File

@ -125,7 +125,7 @@ void yoloPostProcessing(
if (model_name == "yolonas")
{
// outs contains 2 elemets of shape [1, 8400, nc] and [1, 8400, 4]. Concat them to get [1, 8400, nc+4]
// outs contains 2 elements of shape [1, 8400, nc] and [1, 8400, 4]. Concat them to get [1, 8400, nc+4]
Mat concat_out;
// squeeze the first dimension
outs[0] = outs[0].reshape(1, outs[0].size[1]);

View File

@ -1047,7 +1047,7 @@ done:
// Create a partial media type from our list.
//
// dwTypeIndex: Index into the list of peferred media types.
// dwTypeIndex: Index into the list of preferred media types.
// ppmt: Receives a pointer to the media type.
HRESULT OcvImageManipulations::OnGetPartialType(DWORD dwTypeIndex, IMFMediaType **ppmt)