@@ -48,6 +48,7 @@ class FFMpegConan(ConanFile):
48
48
"with_freetype" : [True , False ],
49
49
"with_openjpeg" : [True , False ],
50
50
"with_openh264" : [True , False ],
51
+ "with_openvino" : [True , False ],
51
52
"with_opus" : [True , False ],
52
53
"with_vorbis" : [True , False ],
53
54
"with_zeromq" : [True , False ],
@@ -125,6 +126,7 @@ class FFMpegConan(ConanFile):
125
126
"with_freetype" : True ,
126
127
"with_openjpeg" : True ,
127
128
"with_openh264" : True ,
129
+ "with_openvino" : True ,
128
130
"with_opus" : True ,
129
131
"with_vorbis" : True ,
130
132
"with_zeromq" : False ,
@@ -202,6 +204,7 @@ def _dependencies(self):
202
204
"with_libiconv" : ["avcodec" ],
203
205
"with_openjpeg" : ["avcodec" ],
204
206
"with_openh264" : ["avcodec" ],
207
+ "with_openvino" : ["avfilter" ],
205
208
"with_vorbis" : ["avcodec" ],
206
209
"with_opus" : ["avcodec" ],
207
210
"with_libx264" : ["avcodec" ],
@@ -222,6 +225,10 @@ def _dependencies(self):
222
225
def _version_supports_vulkan (self ):
223
226
return Version (self .version ) >= "4.3.0"
224
227
228
+ @property
229
+ def _version_supports_openvino (self ):
230
+ return Version (self .version ) >= "6.1.0"
231
+
225
232
def export_sources (self ):
226
233
export_conandata_patches (self )
227
234
@@ -245,6 +252,8 @@ def config_options(self):
245
252
del self .options .with_avfoundation
246
253
if not self ._version_supports_vulkan :
247
254
self .options .rm_safe ("with_vulkan" )
255
+ if not self ._version_supports_openvino :
256
+ del self .with_openvino
248
257
249
258
def configure (self ):
250
259
if self .options .shared :
@@ -270,6 +279,8 @@ def requirements(self):
270
279
self .requires ("openjpeg/2.5.0" )
271
280
if self .options .with_openh264 :
272
281
self .requires ("openh264/2.3.1" )
282
+ if self .options .get_safe ("with_openvino" ):
283
+ self .requires ("openvino/2023.2.0" )
273
284
if self .options .with_vorbis :
274
285
self .requires ("vorbis/1.3.7" )
275
286
if self .options .with_opus :
@@ -450,6 +461,8 @@ def opt_append_disable_if_set(args, what, v):
450
461
opt_enable_disable ("iconv" , self .options .with_libiconv ),
451
462
opt_enable_disable ("libopenjpeg" , self .options .with_openjpeg ),
452
463
opt_enable_disable ("libopenh264" , self .options .with_openh264 ),
464
+ if self ._version_supports_openvino :
465
+ opt_enable_disable ("libopenvino" , self .options .get_safe ("with_openvino" )),
453
466
opt_enable_disable ("libvorbis" , self .options .with_vorbis ),
454
467
opt_enable_disable ("libopus" , self .options .with_opus ),
455
468
opt_enable_disable ("libzmq" , self .options .with_zeromq ),
@@ -970,6 +983,8 @@ def package_info(self):
970
983
"CoreImage" )
971
984
if Version (self .version ) >= "5.0" and is_apple_os (self ):
972
985
self .cpp_info .components ["avfilter" ].frameworks .append ("Metal" )
986
+ if self .options .get_safe ("with_openvino" ):
987
+ self .cpp_info .components ["avfilter" ].requires .append ("openvino::Runtime_C" )
973
988
974
989
if self .options .get_safe ("with_vaapi" ):
975
990
self .cpp_info .components ["avutil" ].requires .extend (
0 commit comments