mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 08:46:24 +08:00

1. Refactor test cpp files to c. 2. Update test license to Apache-2.0 OR MIT. Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I02f3e23ddae8435ca851a5f0164f04ef5f51ccc2
31 lines
550 B
C
31 lines
550 B
C
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
|
|
/*
|
|
* Copyright (c) 2015 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
#define MODULE_TAG "mpp_info_test"
|
|
|
|
#include "mpp_log.h"
|
|
#include "mpp_env.h"
|
|
#include "mpp_info.h"
|
|
#include "mpp_compat.h"
|
|
|
|
int main()
|
|
{
|
|
mpp_env_set_u32("mpp_show_history", 0);
|
|
|
|
mpp_log("normal version log:\n");
|
|
show_mpp_version();
|
|
|
|
mpp_env_set_u32("mpp_show_history", 1);
|
|
mpp_log("history version log:\n");
|
|
|
|
show_mpp_version();
|
|
mpp_env_set_u32("mpp_show_history", 0);
|
|
|
|
mpp_compat_show();
|
|
|
|
return 0;
|
|
}
|
|
|