[test]: Add quiet flag to decoder test log

Change-Id: I9472760ede918a913957b336665d7e0367b661c5
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2021-04-29 16:08:21 +08:00
parent cdec28698c
commit dbda66de53
4 changed files with 48 additions and 38 deletions

View File

@@ -19,6 +19,7 @@
#include <stdio.h>
#include "mpp_log.h"
#include "mpp_frame.h"
typedef struct OptionInfo_t {
@@ -38,12 +39,16 @@ typedef struct frame_crc_t {
DataCrc chroma;
} FrmCrc;
#define show_options(opt) \
do { \
_show_options(sizeof(opt)/sizeof(OptionInfo), opt); \
} while (0)
#define mpp_log_q(quiet, fmt, ...) \
do { \
if (!quiet) mpp_log(fmt, ## __VA_ARGS__); \
} while (0)
#ifdef __cplusplus
extern "C" {
#endif