mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[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:
@@ -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
|
||||
|
Reference in New Issue
Block a user