#ifdef 与#endif 在函数中的作用?及其用法?
CV_IMPL CvCapture * cvCreateFileCapture (const char * filename)
{
CvCapture * result = 0;
#ifdef WIN32
if (! result)
result = cvCreateFileCapture_Win32 (filename);
#endif
#ifdef HAVE_FFMPEG
if (! result)
result = cvCreateFileCapture_FFMPEG (filename);
#endif
#ifdef HAVE_XINE
if (! result)
result = cvCreateFileCapture_XINE (filename);
#endif
#ifdef HAVE_GSTREAMER
if (! result)
result = cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename);
#endif
#ifdef HAVE_QUICKTIME
if (! result)
result = cvCreateFileCapture_QT (filename);
#endif
if (! result)
result = cvCreateFileCapture_Images (filename);
return result;
}
人气:328 ℃ 时间:2020-09-30 22:27:49
解答
条件编译的宏,根据宏定义指定变量与否来决定是否编译被
#ifdef和#endif所包括进来的整段语句块.
推荐
- enum函数的用法和意义
- i will give you such information ____help you in your study
- leo是一个英国小男孩
- 预习课文后,你觉得音乐之都维也纳是一座怎样的城市?
- 高中数学必修4三角函数题
- 描写夏天的成语有哪些
- 在菱形ABCD中,∠A=135度,AB=根号2,以C为圆心的弧DF分别与AB,AD相切于G,H两点,与BC,CD分别相交于EF两点,用扇形CEF做成圆锥的侧面,求圆锥的高?
- 15克氯化钾固体溶于60克水中,再加入20克氯化钾只有4克溶解,则该溶液质量为____.
猜你喜欢
- In order to encourage the students to study hard,the schoolmaster will give the scholarship to ______got the first prize
- 《醉花阴》中“人比黄花瘦”是千古流传的佳句,以花比人,其中的“瘦”字有什么作用
- 304287读作什么
- 一国两制的基本含义和基本内容?
- 判断1除一个数(0除外)的商,等于这个数的倒数
- 设A=a²+b²-c²,B=-4a²+2b²+3c²,并且A+B+C=0,求C
- 英语“一些;一点”的用法?就是那些短语后加什么 以及理解意思
- 就是关于”快乐假期,轻松阅读“写一篇作文,我不知道该写什么题材,谢