mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
build: fix warnings
This commit is contained in:
parent
ef2548778c
commit
84db82a329
@ -1047,7 +1047,7 @@ template<typename _Tp, int n> inline bool v_check_any(const v_reg<_Tp, n>& a)
|
|||||||
Return value will be built by combining values _a_ and _b_ using the following scheme:
|
Return value will be built by combining values _a_ and _b_ using the following scheme:
|
||||||
result[i] = mask[i] ? a[i] : b[i];
|
result[i] = mask[i] ? a[i] : b[i];
|
||||||
|
|
||||||
@Note: _mask_ element values are restricted to these values:
|
@note: _mask_ element values are restricted to these values:
|
||||||
- 0: select element from _b_
|
- 0: select element from _b_
|
||||||
- 0xff/0xffff/etc: select element from _a_
|
- 0xff/0xffff/etc: select element from _a_
|
||||||
(fully compatible with bitwise-based operator)
|
(fully compatible with bitwise-based operator)
|
||||||
|
@ -106,7 +106,8 @@ protected:
|
|||||||
bool parseMovi(frame_list& in_frame_list)
|
bool parseMovi(frame_list& in_frame_list)
|
||||||
{
|
{
|
||||||
//not implemented
|
//not implemented
|
||||||
in_frame_list.empty();
|
CV_UNUSED(in_frame_list);
|
||||||
|
// FIXIT: in_frame_list.empty();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool parseStrl(char stream_id, Codecs codec_);
|
bool parseStrl(char stream_id, Codecs codec_);
|
||||||
|
@ -158,7 +158,7 @@ inline static bool is_gst_element_exists(const std::string & name)
|
|||||||
|
|
||||||
//==================================================================================================
|
//==================================================================================================
|
||||||
|
|
||||||
class GStreamerCapture : public IVideoCapture
|
class GStreamerCapture CV_FINAL : public IVideoCapture
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
GstElement* pipeline;
|
GstElement* pipeline;
|
||||||
@ -184,12 +184,12 @@ private:
|
|||||||
public:
|
public:
|
||||||
GStreamerCapture();
|
GStreamerCapture();
|
||||||
~GStreamerCapture();
|
~GStreamerCapture();
|
||||||
virtual bool grabFrame();
|
virtual bool grabFrame() CV_OVERRIDE;
|
||||||
virtual bool retrieveFrame(int /*unused*/, OutputArray dst);
|
virtual bool retrieveFrame(int /*unused*/, OutputArray dst) CV_OVERRIDE;
|
||||||
virtual double getProperty(int propId) const;
|
virtual double getProperty(int propId) const CV_OVERRIDE;
|
||||||
virtual bool setProperty(int propId, double value);
|
virtual bool setProperty(int propId, double value) CV_OVERRIDE;
|
||||||
virtual bool isOpened() const;
|
virtual bool isOpened() const CV_OVERRIDE;
|
||||||
virtual int getCaptureDomain(); // Return the type of the capture object: CAP_VFW, etc...
|
virtual int getCaptureDomain() CV_OVERRIDE; // Return the type of the capture object: CAP_VFW, etc...
|
||||||
bool open(int id);
|
bool open(int id);
|
||||||
bool open(const String &filename_);
|
bool open(const String &filename_);
|
||||||
static void newPad(GstElement * /*elem*/, GstPad *pad, gpointer data);
|
static void newPad(GstElement * /*elem*/, GstPad *pad, gpointer data);
|
||||||
@ -630,7 +630,7 @@ bool GStreamerCapture::open(const String &filename_)
|
|||||||
const gchar * filename = filename_.c_str();
|
const gchar * filename = filename_.c_str();
|
||||||
|
|
||||||
bool file = false;
|
bool file = false;
|
||||||
bool stream = false;
|
//bool stream = false;
|
||||||
bool manualpipeline = false;
|
bool manualpipeline = false;
|
||||||
char *uri = NULL;
|
char *uri = NULL;
|
||||||
GstElement* uridecodebin = NULL;
|
GstElement* uridecodebin = NULL;
|
||||||
@ -655,7 +655,7 @@ bool GStreamerCapture::open(const String &filename_)
|
|||||||
#else
|
#else
|
||||||
uri = realpath(filename, NULL);
|
uri = realpath(filename, NULL);
|
||||||
#endif
|
#endif
|
||||||
stream = false;
|
//stream = false;
|
||||||
if(uri)
|
if(uri)
|
||||||
{
|
{
|
||||||
uri = g_filename_to_uri(uri, NULL, NULL);
|
uri = g_filename_to_uri(uri, NULL, NULL);
|
||||||
@ -680,13 +680,13 @@ bool GStreamerCapture::open(const String &filename_)
|
|||||||
fprintf(stderr, "GStreamer: Error opening bin: %s\n", err->message);
|
fprintf(stderr, "GStreamer: Error opening bin: %s\n", err->message);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
stream = true;
|
//stream = true;
|
||||||
manualpipeline = true;
|
manualpipeline = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
stream = true;
|
//stream = true;
|
||||||
uri = g_strdup(filename);
|
uri = g_strdup(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,6 +83,7 @@ struct VideoCaptureAPI
|
|||||||
case CAP_ARAVIS: return "CAP_ARAVIS";
|
case CAP_ARAVIS: return "CAP_ARAVIS";
|
||||||
case CAP_OPENCV_MJPEG: return "CAP_OPENCV_MJPEG";
|
case CAP_OPENCV_MJPEG: return "CAP_OPENCV_MJPEG";
|
||||||
case CAP_INTEL_MFX: return "CAP_INTEL_MFX";
|
case CAP_INTEL_MFX: return "CAP_INTEL_MFX";
|
||||||
|
case CAP_XINE: return "CAP_XINE";
|
||||||
}
|
}
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ void postprocess(Mat& frame, const std::vector<Mat>& outs, Net& net)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::vector<int> indices;
|
std::vector<int> indices;
|
||||||
NMSBoxes(boxes, confidences, confThreshold, 0.4, indices);
|
NMSBoxes(boxes, confidences, confThreshold, 0.4f, indices);
|
||||||
for (size_t i = 0; i < indices.size(); ++i)
|
for (size_t i = 0; i < indices.size(); ++i)
|
||||||
{
|
{
|
||||||
int idx = indices[i];
|
int idx = indices[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user