[mpp]: Activate AVS2 decoder

Change-Id: I7fb596b050c1791b046f6c2179e8775a8b3df068
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
Johnson Ding
2022-07-13 14:34:53 +08:00
committed by Herman Chen
parent 20866b909d
commit d98fbcfe2a
3 changed files with 11 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "h265d_api.h" #include "h265d_api.h"
#include "vp9d_api.h" #include "vp9d_api.h"
#include "avsd_api.h" #include "avsd_api.h"
#include "avs2d_api.h"
#include "m2vd_api.h" #include "m2vd_api.h"
#include "mpg4d_api.h" #include "mpg4d_api.h"
#include "vp8d_api.h" #include "vp8d_api.h"
@@ -45,6 +46,9 @@ static const ParserApi *parsers[] = {
#if HAVE_AVSD #if HAVE_AVSD
&api_avsd_parser, &api_avsd_parser,
#endif #endif
#if HAVE_AVS2D
&api_avs2d_parser,
#endif
#if HAVE_H263D #if HAVE_H263D
&api_h263d_parser, &api_h263d_parser,
#endif #endif

View File

@@ -30,6 +30,7 @@
#include "hal_vp8d_api.h" #include "hal_vp8d_api.h"
#include "hal_vp9d_api.h" #include "hal_vp9d_api.h"
#include "hal_avsd_api.h" #include "hal_avsd_api.h"
#include "hal_avs2d_api.h"
#include "hal_m2vd_api.h" #include "hal_m2vd_api.h"
#include "hal_mpg4d_api.h" #include "hal_mpg4d_api.h"
#include "hal_jpegd_api.h" #include "hal_jpegd_api.h"
@@ -46,6 +47,9 @@ static const MppHalApi *hw_apis[] = {
#if HAVE_AVSD #if HAVE_AVSD
&hal_api_avsd, &hal_api_avsd,
#endif #endif
#if HAVE_AVS2D
&hal_api_avs2d,
#endif
#if HAVE_H263D #if HAVE_H263D
&hal_api_h263d, &hal_api_h263d,
#endif #endif

View File

@@ -62,6 +62,9 @@ static MppCodingTypeInfo support_list[] = {
#if HAVE_AVSD #if HAVE_AVSD
{ MPP_CTX_DEC, MPP_VIDEO_CodingAVSPLUS, "dec", "avs+", }, { MPP_CTX_DEC, MPP_VIDEO_CodingAVSPLUS, "dec", "avs+", },
#endif #endif
#if HAVE_AVS2D
{ MPP_CTX_DEC, MPP_VIDEO_CodingAVS2, "dec", "avs2", },
#endif
#if HAVE_JPEGD #if HAVE_JPEGD
{ MPP_CTX_DEC, MPP_VIDEO_CodingMJPEG, "dec", "jpeg", }, { MPP_CTX_DEC, MPP_VIDEO_CodingMJPEG, "dec", "jpeg", },
#endif #endif