diff --git a/mpp/codec/enc/CMakeLists.txt b/mpp/codec/enc/CMakeLists.txt index 7b941853..9a519ce8 100644 --- a/mpp/codec/enc/CMakeLists.txt +++ b/mpp/codec/enc/CMakeLists.txt @@ -2,6 +2,11 @@ add_subdirectory(dummy) +if(HAVE_H264E) add_subdirectory(h264) +endif() + +if(HAVE_JPEGE) +add_subdirectory(jpeg) +endif() -add_subdirectory(jpeg) \ No newline at end of file diff --git a/mpp/hal/mpp_hal.cpp b/mpp/hal/mpp_hal.cpp index f1883622..0fd9c6e4 100644 --- a/mpp/hal/mpp_hal.cpp +++ b/mpp/hal/mpp_hal.cpp @@ -71,8 +71,12 @@ static const MppHalApi *hw_apis[] = { #if HAVE_JPEGD &hal_api_jpegd, #endif +#if HAVE_H264E &hal_api_h264e, +#endif +#if HAVE_JPEGE &hal_api_jpege, +#endif &hal_api_dummy_dec, &hal_api_dummy_enc, };