#include #include #include #include #include #include #include #include #include "im2d_api/im2d.h" #include "rk_mpi_mmz.h" static const int width = 1920; static const int height = 1088; static int do_sync = 0; static struct timespec tik, tok; static inline int time_diff_us(struct timespec* begin, struct timespec* end) { return (end->tv_sec - begin->tv_sec) * 1000000 + (end->tv_nsec - begin->tv_nsec) / 1000; } // 数据相同返回0,否则返回1 int check_data(const void* dst, const void* src, int len) { int ret = 0; uint8_t* ch_src = (uint8_t*)src; uint8_t* ch_dst = (uint8_t*)dst; for(int i=0; i /sys/devices/system/cpu/cpufreq/policy0/scaling_governor"); system("echo performance > /sys/devices/system/cpu/cpufreq/policy4/scaling_governor"); do_sync = 0; printf("Usage: %s [--cma] [--uncache] [--rga] [--sync]\n\n", argv[0]); // 参数解析 for (int i=1; i