Comments (1)
Reason
It looks like there are no problem at source code. So I saw after pre-processing code.
Using macro is defined here. In logically(not actually), there are path which statement are not executed.
Maybe it makes this compile warning.
opencv/modules/ts/include/opencv2/ts/ts_gtest.h
Lines 9232 to 9248 in dad8af6
bool result;
switch (0)
case 0:
default:
if (::testing::internal::AlwaysTrue ())
{
try
{
if (::testing::internal::AlwaysTrue ())
{
result =
cv::imencode (".avif", img_original, buf, encoding_params_);;
};
}
catch (const std::exception & e)
{
std::cerr << "Exception message: " << e.what () << std::endl;
goto gtest_label_testnothrow_170;
}
catch ( ...)
{
goto gtest_label_testnothrow_170;
}
}
else
gtest_label_testnothrow_170:::testing::internal::AssertHelper (::testing::
TestPartResult::kNonFatalFailure,
"/home/kmtr/work/opencv/modules/imgcodecs/test/test_avif.cpp",
170,
"Expected: "
"result = cv::imencode(\".avif\", img_original, buf, encoding_params_);"
" doesn't throw an exception.\n"
" Actual: it throws.") =::testing::
Message ();
switch (0)
case 0:
default:
if (const::testing::AssertionResult gtest_ar_ =::
testing::AssertionResult (result));
else
::testing::internal::AssertHelper (::testing::
TestPartResult::kNonFatalFailure,
"/home/kmtr/work/opencv/modules/imgcodecs/test/test_avif.cpp",
172,::testing::
internal::GetBoolAssertionFailureMessage
(gtest_ar_, "result", "false",
"true").c_str ()) =::
testing::Message ();
const cv::Mat img = cv::imdecode (buf, imread_mode_);
ValidateRead (img_original, img);
}```
from opencv.
Related Issues (20)
- program abortion on exit after a multipage TIFF is read into a vector of Mat HOT 1
- ipa size
- Extend norm() function to support new types: CV_64U, CV_64S and CV_32U
- OpenCV Config provides targets with generic names "numeric", "multiview" HOT 7
- cv::cartToPolar does not support inplace processing HOT 2
- core: Failed Core_Xor/ElemWiseTest.accuracy in debug build (5.x) HOT 2
- Document cv::Mat::type bits layout
- Make BarcodeDetector resolution invariant
- Basic core operations do not support new types in 5.x
- Incorrect convex hull for contour. HOT 6
- Drop matrix expressions support in 5.x branch HOT 4
- Deprecate convertFp16() in favor of convertTo() with CV_16F
- Error in cv2.dnn.readNetFromTensorflow HOT 4
- DNN: Overflow Errors with large image sizes HOT 4
- floodFill with error Uncaught 6620760 in opencv.js HOT 4
- OpenCL: Device::halfFPConfig() > 0 check is not reliable
- getOptimalNewCameraMatrix returns unstable results in opencv versions after 4.7.0 HOT 3
- [ERROR:[email protected]] global obsensor_uvc_stream_channel.cpp:159 cv::obsensor::getStreamChannelGroup Camera index out of range.... THIS IS THE ERROR IM FACING WHAT SHOULD I DO TO SOLVE IT HOT 1
- A opencv.js bug in function floodFill HOT 12
- How to create a Net object without using readNet? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv.