@@ -161,6 +161,23 @@ if (WITH_VVENC)
161
161
endif ()
162
162
endif ()
163
163
164
+ # openh264 decoder
165
+
166
+ plugin_option(OPENH264_DECODER "OpenH264 decoder" ON OFF )
167
+ plugin_option(OPENH264_ENCODER "OpenH264 encoder" ON OFF )
168
+ if (WITH_OPENH264_ENCODER OR WITH_OPENH264_DECODER)
169
+ find_package (OpenH264)
170
+
171
+ # When decoding/encoding is disabled, overwrite the *_FOUND variables, because they are used to ultimately decide what to build.
172
+ # TODO
173
+ if (OpenH264_FOUND AND WITH_OPENH264_DECODER)
174
+ set (OpenH264_DECODER_FOUND TRUE )
175
+ endif ()
176
+ if (OpenH264_FOUND AND WITH_OPENH264_ENCODER)
177
+ set (OpenH264_ENCODER_FOUND TRUE )
178
+ endif ()
179
+ endif ()
180
+
164
181
# dav1d
165
182
166
183
plugin_option(DAV1D "Dav1d AV1 decoder" OFF ON )
@@ -248,6 +265,8 @@ plugin_compilation_info(SvtEnc SvtEnc "SVT AV1 encoder")
248
265
plugin_compilation_info(RAV1E RAV1E "Rav1e AV1 encoder" )
249
266
plugin_compilation_info(JPEG_DECODER JPEG "JPEG decoder" )
250
267
plugin_compilation_info(JPEG_ENCODER JPEG "JPEG encoder" )
268
+ plugin_compilation_info(OpenH264_DECODER OpenH264_DECODER "OpenH264 decoder" )
269
+ plugin_compilation_info(OpenH264_ENCODER OpenH264_ENCODER "OpenH264 encoder" )
251
270
plugin_compilation_info(OpenJPEG_DECODER OpenJPEG "OpenJPEG J2K decoder" )
252
271
plugin_compilation_info(OpenJPEG_ENCODER OpenJPEG "OpenJPEG J2K encoder" )
253
272
# plugin_compilation_info(OPENJPH_DECODER OPENJPH "OpenJPH HT-J2K decoder")
@@ -316,6 +335,12 @@ endif()
316
335
if (vvdec_FOUND AND WITH_VVDEC)
317
336
set (SUPPORTS_VVC_DECODING TRUE )
318
337
endif ()
338
+ if (OpenH264_DECODER_FOUND)
339
+ set (SUPPORTS_AVC_DECODING TRUE )
340
+ endif ()
341
+ if (OpenH264_ENCODER_FOUND)
342
+ set (SUPPORTS_AVC_ENCODING TRUE )
343
+ endif ()
319
344
320
345
if (WITH_UNCOMPRESSED_CODEC)
321
346
set (SUPPORTS_UNCOMPRESSED_DECODING TRUE )
@@ -327,6 +352,7 @@ message("format decoding encoding")
327
352
format_compilation_info("HEIC" SUPPORTS_HEIC_DECODING SUPPORTS_HEIC_ENCODING)
328
353
format_compilation_info("AVIF" SUPPORTS_AVIF_DECODING SUPPORTS_AVIF_ENCODING)
329
354
format_compilation_info("VVC" SUPPORTS_VVC_DECODING SUPPORTS_VVC_ENCODING)
355
+ format_compilation_info("AVC" SUPPORTS_AVC_DECODING SUPPORTS_AVC_ENCODING)
330
356
format_compilation_info("JPEG" SUPPORTS_JPEG_DECODING SUPPORTS_JPEG_ENCODING)
331
357
format_compilation_info("JPEG2000" SUPPORTS_J2K_DECODING SUPPORTS_J2K_ENCODING)
332
358
format_compilation_info("JPEG2000-HT" SUPPORTS_J2K_HT_DECODING SUPPORTS_J2K_HT_ENCODING)
0 commit comments