Skip to content

Commit

Permalink
rename ffmpeg plugin to simply 'ffmpeg_dec' as we can extend it in th…
Browse files Browse the repository at this point in the history
…e future to also handle other codecs
  • Loading branch information
farindk committed Oct 10, 2023
1 parent b17f5c5 commit 4a817ab
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ endif()

# ffmpeg

plugin_option(FFMPEG_HEVC_DECODER "FFMPEG HEVC decoder (HW accelerated)" OFF OFF)
if (WITH_FFMPEG_HEVC_DECODER)
plugin_option(FFMPEG_DECODER "FFMPEG HEVC decoder (HW accelerated)" OFF OFF)
if (WITH_FFMPEG_DECODER)
find_package(FFMPEG COMPONENTS avcodec)
endif ()

Expand All @@ -180,7 +180,7 @@ option(WITH_UNCOMPRESSED_CODEC " Support internal ISO/IEC 23001-17 uncompressed

message("=== Summary of compiled codecs ===")
plugin_compilation_info(LIBDE265 LIBDE265 "libde265 HEVC decoder")
plugin_compilation_info(FFMPEG_HEVC_DECODER FFMPEG_avcodec "FFMPEG HEVC decoder (HW acc)")
plugin_compilation_info(FFMPEG_DECODER FFMPEG_avcodec "FFMPEG HEVC decoder (HW acc)")
plugin_compilation_info(X265 X265 "x265 HEVC encoder")
plugin_compilation_info(KVAZAAR KVAZAAR "Kvazaar HEVC encoder")
plugin_compilation_info(AOM_DECODER AOM "AOM AV1 decoder")
Expand Down
6 changes: 3 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"WITH_OpenJPEG_DECODER_PLUGIN" : "ON",
"WITH_OpenJPEG_ENCODER" : "ON",
"WITH_OpenJPEG_ENCODER_PLUGIN" : "ON",
"WITH_FFMPEG_HEVC_DECODER" : "ON",
"WITH_FFMPEG_HEVC_DECODER_PLUGIN" : "ON"
"WITH_FFMPEG_DECODER" : "ON",
"WITH_FFMPEG_DECODER_PLUGIN" : "ON"
}
},
{
Expand Down Expand Up @@ -101,7 +101,7 @@
"WITH_KVAZAAR" : "OFF",
"WITH_OpenJPEG_DECODER" : "OFF",
"WITH_OpenJPEG_ENCODER" : "OFF",
"WITH_FFMPEG_HEVC_DECODER" : "OFF"
"WITH_FFMPEG_DECODER" : "OFF"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions libheif/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ set(KVAZAAR_sources encoder_kvazaar.cc encoder_kvazaar.h)
set(KVAZAAR_extra_plugin_sources)
plugin_compilation(kvazaar KVAZAAR KVAZAAR KVAZAAR)

set(FFMPEG_HEVC_DECODER_sources decoder_ffmpeg_hevc.cc decoder_ffmpeg_hevc.h)
set(FFMPEG_HEVC_DECODER_extra_plugin_sources ../error.cc)
plugin_compilation(ffmpeg_hevc_dec FFMPEG FFMPEG_HEVC_DECODER FFMPEG_HEVC_DECODER)
set(FFMPEG_DECODER_sources decoder_ffmpeg.cc decoder_ffmpeg.h)
set(FFMPEG_DECODER_extra_plugin_sources ../error.cc)
plugin_compilation(ffmpeg_dec FFMPEG FFMPEG_DECODER FFMPEG_DECODER)

target_sources(heif PRIVATE
encoder_mask.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "libheif/heif.h"
#include "libheif/heif_plugin.h"
#include "decoder_ffmpeg_hevc.h"
#include "decoder_ffmpeg.h"

#if defined(HAVE_CONFIG_H)
#include "config.h"
Expand Down
File renamed without changes.

0 comments on commit 4a817ab

Please sign in to comment.