mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[mpp_log]: Add more log helper function
1. Move mpp_log.h to inc for external user. 2. Add mpp_debug.h for mpp internal logging. 3. Fix some warning. 4. Add log level setup function. 5. Check env log_level value in mpp_get_log_level call. NOTE: 1. mpp internal module should use mpp_debug.h and mpp external user should use mpp_log.h 2. Use mpp_get_log_level to update mpp_log_level when the env changed. Change-Id: I90a55a02a72db177533013280dfe111ca3479229 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
parent
b2479a59ec
commit
2b35cee0ce
167 changed files with 568 additions and 284 deletions
99
inc/mpp_log.h
Normal file
99
inc/mpp_log.h
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Copyright 2022 Rockchip Electronics Co. LTD
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __MPP_LOG_H__
|
||||
#define __MPP_LOG_H__
|
||||
|
||||
#include "rk_type.h"
|
||||
#include "mpp_log_def.h"
|
||||
|
||||
/*
|
||||
* _c function will add condition check
|
||||
* _f function will add function name to the log
|
||||
* _cf function will add both function name and condition check
|
||||
*/
|
||||
|
||||
/*
|
||||
* mpp runtime log system usage:
|
||||
* mpp_logf is for fatal logging. For use when aborting
|
||||
* mpp_loge is for error logging. For use with unrecoverable failures.
|
||||
* mpp_logw is for warning logging. For use with recoverable failures.
|
||||
* mpp_logi is for informational logging.
|
||||
* mpp_logd is for debug logging.
|
||||
* mpp_logv is for verbose logging
|
||||
*/
|
||||
|
||||
#define mpp_logf(fmt, ...) _mpp_log_l(MPP_LOG_FATAL, MODULE_TAG, fmt, NULL, ## __VA_ARGS__)
|
||||
#define mpp_loge(fmt, ...) _mpp_log_l(MPP_LOG_ERROR, MODULE_TAG, fmt, NULL, ## __VA_ARGS__)
|
||||
#define mpp_logw(fmt, ...) _mpp_log_l(MPP_LOG_WARN, MODULE_TAG, fmt, NULL, ## __VA_ARGS__)
|
||||
#define mpp_logi(fmt, ...) _mpp_log_l(MPP_LOG_INFO, MODULE_TAG, fmt, NULL, ## __VA_ARGS__)
|
||||
#define mpp_logd(fmt, ...) _mpp_log_l(MPP_LOG_DEBUG, MODULE_TAG, fmt, NULL, ## __VA_ARGS__)
|
||||
#define mpp_logv(fmt, ...) _mpp_log_l(MPP_LOG_VERBOSE, MODULE_TAG, fmt, NULL, ## __VA_ARGS__)
|
||||
|
||||
#define mpp_logf_f(fmt, ...) _mpp_log_l(MPP_LOG_FATAL, MODULE_TAG, fmt, __FUNCTION__, ## __VA_ARGS__)
|
||||
#define mpp_loge_f(fmt, ...) _mpp_log_l(MPP_LOG_ERROR, MODULE_TAG, fmt, __FUNCTION__, ## __VA_ARGS__)
|
||||
#define mpp_logw_f(fmt, ...) _mpp_log_l(MPP_LOG_WARN, MODULE_TAG, fmt, __FUNCTION__, ## __VA_ARGS__)
|
||||
#define mpp_logi_f(fmt, ...) _mpp_log_l(MPP_LOG_INFO, MODULE_TAG, fmt, __FUNCTION__, ## __VA_ARGS__)
|
||||
#define mpp_logd_f(fmt, ...) _mpp_log_l(MPP_LOG_DEBUG, MODULE_TAG, fmt, __FUNCTION__, ## __VA_ARGS__)
|
||||
#define mpp_logv_f(fmt, ...) _mpp_log_l(MPP_LOG_VERBOSE, MODULE_TAG, fmt, __FUNCTION__, ## __VA_ARGS__)
|
||||
|
||||
#define mpp_logf_c(cond, fmt, ...) do { if (cond) mpp_logf(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_loge_c(cond, fmt, ...) do { if (cond) mpp_loge(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logw_c(cond, fmt, ...) do { if (cond) mpp_logw(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logi_c(cond, fmt, ...) do { if (cond) mpp_logi(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logd_c(cond, fmt, ...) do { if (cond) mpp_logd(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logv_c(cond, fmt, ...) do { if (cond) mpp_logv(fmt, ## __VA_ARGS__); } while (0)
|
||||
|
||||
#define mpp_logf_cf(cond, fmt, ...) do { if (cond) mpp_logf_f(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_loge_cf(cond, fmt, ...) do { if (cond) mpp_loge_f(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logw_cf(cond, fmt, ...) do { if (cond) mpp_logw_f(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logi_cf(cond, fmt, ...) do { if (cond) mpp_logi_f(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logd_cf(cond, fmt, ...) do { if (cond) mpp_logd_f(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_logv_cf(cond, fmt, ...) do { if (cond) mpp_logv_f(fmt, ## __VA_ARGS__); } while (0)
|
||||
|
||||
/*
|
||||
* mpp runtime log system usage:
|
||||
* mpp_err is for error status message, it will print for sure.
|
||||
* mpp_log is for important message like open/close/reset/flush, it will print too.
|
||||
*/
|
||||
|
||||
#define mpp_log(fmt, ...) mpp_logi(fmt, ## __VA_ARGS__)
|
||||
#define mpp_err(fmt, ...) mpp_loge(fmt, ## __VA_ARGS__)
|
||||
|
||||
#define mpp_log_f(fmt, ...) mpp_logi_f(fmt, ## __VA_ARGS__)
|
||||
#define mpp_err_f(fmt, ...) mpp_loge_f(fmt, ## __VA_ARGS__)
|
||||
|
||||
#define mpp_log_c(cond, fmt, ...) do { if (cond) mpp_log(fmt, ## __VA_ARGS__); } while (0)
|
||||
#define mpp_log_cf(cond, fmt, ...) do { if (cond) mpp_log_f(fmt, ## __VA_ARGS__); } while (0)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void _mpp_log_l(int level, const char *tag, const char *fmt, const char *func, ...);
|
||||
|
||||
void mpp_set_log_level(int level);
|
||||
int mpp_get_log_level(void);
|
||||
|
||||
/* deprecated function */
|
||||
void _mpp_log(const char *tag, const char *fmt, const char *func, ...);
|
||||
void _mpp_err(const char *tag, const char *fmt, const char *func, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*__MPP_LOG_H__*/
|
||||
37
inc/mpp_log_def.h
Normal file
37
inc/mpp_log_def.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright 2022 Rockchip Electronics Co. LTD
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __MPP_LOG_DEF_H__
|
||||
#define __MPP_LOG_DEF_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define MPP_LOG_UNKNOWN 0 /* internal use only */
|
||||
#define MPP_LOG_FATAL 1 /* fatal error on aborting */
|
||||
#define MPP_LOG_ERROR 2 /* error log on unrecoverable failures */
|
||||
#define MPP_LOG_WARN 3 /* warning log on recoverable failures */
|
||||
#define MPP_LOG_INFO 4 /* Informational log */
|
||||
#define MPP_LOG_DEBUG 5 /* Debug log */
|
||||
#define MPP_LOG_VERBOSE 6 /* Verbose log */
|
||||
#define MPP_LOG_SILENT 7 /* internal use only */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*__MPP_LOG_DEF_H__*/
|
||||
|
|
@ -18,13 +18,9 @@
|
|||
#ifndef __MPP_BITPUT_H__
|
||||
#define __MPP_BITPUT_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "rk_type.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_err.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
typedef struct bitput_ctx_t {
|
||||
RK_U32 buflen; //!< max buf length, 64bit uint
|
||||
|
|
|
|||
|
|
@ -20,9 +20,8 @@
|
|||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_err.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#define __BITREAD_ERR __bitread_error
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "mpp_bitwrite.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_list.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "mpp_frame_impl.h"
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_buffer_impl.h"
|
||||
|
||||
MPP_RET mpp_buffer_import_with_tag(MppBufferGroup group, MppBufferInfo *info, MppBuffer *buffer,
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_hash.h"
|
||||
#include "mpp_lock.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_mem_pool.h"
|
||||
|
||||
#include "mpp_buffer_impl.h"
|
||||
|
|
@ -912,9 +912,9 @@ MppBufferGroupImpl *MppBufferService::get_group(const char *tag, const char *cal
|
|||
RK_U32 id = get_group_id();
|
||||
|
||||
if (tag) {
|
||||
snprintf(p->tag, sizeof(p->tag), "%s_%d", tag, id);
|
||||
snprintf(p->tag, sizeof(p->tag) - 1, "%s_%d", tag, id);
|
||||
} else {
|
||||
snprintf(p->tag, sizeof(p->tag), "unknown");
|
||||
snprintf(p->tag, sizeof(p->tag) - 1, "unknown");
|
||||
}
|
||||
p->group_id = id;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_cfg.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
const char *cfg_type_names[] = {
|
||||
"RK_S32",
|
||||
|
|
|
|||
|
|
@ -18,11 +18,12 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_lock.h"
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "mpp_cluster.h"
|
||||
#include "mpp_dev_defs.h"
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include "rk_vdec_cfg.h"
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_thread.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include "rk_venc_cfg.h"
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_thread.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "mpp_enc_ref.h"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_mem_pool.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
#include "mpp_meta_impl.h"
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "mpp_task_impl.h"
|
||||
#include "mpp_meta_impl.h"
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
#if defined(_WIN32)
|
||||
#include "vld.h"
|
||||
#endif
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_buffer.h"
|
||||
#include "mpp_allocator.h"
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_meta_impl.h"
|
||||
|
||||
#define TEST_MAX 2
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#include "mpp_log.h"
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_thread.h"
|
||||
|
||||
#include "mpp_task.h"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
||||
#include "av1d_codec.h"
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_bitread.h"
|
||||
|
||||
#include "av1d_parser.h"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_compat_impl.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
||||
#include "avsd_syntax.h"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
#include "hal_dec_task.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@
|
|||
#ifndef __AVSD_PARSE_H__
|
||||
#define __AVSD_PARSE_H__
|
||||
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "parser_api.h"
|
||||
#include "mpp_bitread.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "dummy_dec_api.h"
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "h263d_api.h"
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "mpp_bitread.h"
|
||||
#include "h263d_parser.h"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#include <stdio.h>
|
||||
#include "rk_type.h"
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_mem_pool.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_buf_slot.h"
|
||||
#include "mpp_mem_pool.h"
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_soc.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
||||
|
|
@ -993,7 +994,7 @@ static MPP_RET jpegd_prepare(void *ctx, MppPacket pkt, HalDecTask *task)
|
|||
static FILE *jpg_file;
|
||||
static char name[32];
|
||||
|
||||
snprintf(name, sizeof(name), "/data/input%02d.jpg",
|
||||
snprintf(name, sizeof(name) - 1, "/data/input%02d.jpg",
|
||||
JpegCtx->input_jpeg_count);
|
||||
jpg_file = fopen(name, "wb+");
|
||||
if (jpg_file) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_bitread.h"
|
||||
|
||||
#include "jpegd_syntax.h"
|
||||
|
|
|
|||
|
|
@ -18,11 +18,6 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
||||
#include "m2vd_api.h"
|
||||
#include "m2vd_parser.h"
|
||||
#include "m2vd_codec.h"
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "rk_type.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define M2VD_DEMO_MODE 0
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
||||
#include "m2vd_parser.h"
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "mpg4d_api.h"
|
||||
|
|
|
|||
|
|
@ -20,15 +20,15 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_bitread.h"
|
||||
|
||||
#include "mpg4d_parser.h"
|
||||
#include "mpg4d_syntax.h"
|
||||
|
||||
|
||||
RK_U32 mpg4d_debug = 0;
|
||||
|
||||
#define mpg4d_dbg(flag, fmt, ...) _mpp_dbg(mpg4d_debug, flag, fmt, ## __VA_ARGS__)
|
||||
#define mpg4d_dbg_f(flag, fmt, ...) _mpp_dbg_f(mpg4d_debug, flag, fmt, ## __VA_ARGS__)
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,13 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_frame.h"
|
||||
|
||||
#include "vp8d_parser.h"
|
||||
#include "vp8d_codec.h"
|
||||
#include "mpp_frame.h"
|
||||
#include "mpp_env.h"
|
||||
|
||||
#define FUN_T(tag) \
|
||||
do {\
|
||||
|
|
|
|||
|
|
@ -18,8 +18,7 @@
|
|||
#ifndef __VP8D_PARSER_H__
|
||||
#define __VP8D_PARSER_H__
|
||||
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_mem.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include "parser_api.h"
|
||||
#include "vp8d_syntax.h"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
||||
#include "vp9d_codec.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_bitread.h"
|
||||
|
||||
#include "parser_api.h"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __H264E_DEBUG_H__
|
||||
#define __H264E_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define H264E_DBG_FUNCTION (0x00000001)
|
||||
#define H264E_DBG_FLOW (0x00000002)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
#ifndef __H265E_CODEC_H__
|
||||
#define __H265E_CODEC_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_rc.h"
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "h265e_codec.h"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "h265e_codec.h"
|
||||
#include "h265e_slice.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,10 +19,9 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_err.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_2str.h"
|
||||
|
||||
#include "jpege_debug.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __JPEGE_DEBUG_H__
|
||||
#define __JPEGE_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define JPEGE_DBG_FUNCTION (0x00000001)
|
||||
#define JPEGE_DBG_INPUT (0x00000010)
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
#include <vp8e_syntax.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_rc.h"
|
||||
#include "mpp_enc_cfg_impl.h"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,7 @@
|
|||
#ifndef __VP8E_DEBUG_H__
|
||||
#define __VP8E_DEBUG_H__
|
||||
|
||||
#include "rk_type.h"
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define VP8E_DBG_RC_FUNCTION (0x00010000)
|
||||
#define VP8E_DBG_RC_BPS (0x00020000)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_packet_impl.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include "rk_venc_cmd.h"
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_list.h"
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "mpp.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __MPP_ENC_DEBUG_H__
|
||||
#define __MPP_ENC_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define MPP_ENC_DBG_FUNCTION (0x00000001)
|
||||
#define MPP_ENC_DBG_CONTROL (0x00000002)
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@
|
|||
#define MODULE_TAG "rc_data"
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_list.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "rc_data.h"
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_list.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "rc_data.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __RC_DEBUG_H__
|
||||
#define __RC_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define RC_DBG_FUNCTION (0x00000001)
|
||||
#define RC_DBG_API_IMPL (0x00000002)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __HAL_H264E_DEBUG_H__
|
||||
#define __HAL_H264E_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define HAL_H264E_DBG_SIMPLE (0x00000001)
|
||||
#define HAL_H264E_DBG_FUNCTION (0x00000002)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "mpp_platform.h"
|
||||
#include "vepu5xx.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __HAL_H265E_DEBUG_H__
|
||||
#define __HAL_H265E_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define HAL_H265E_DBG_FUNCTION (0x00000001)
|
||||
#define HAL_H265E_DBG_SIMPLE (0x00000002)
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "hal_bufs.h"
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_2str.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "hal_info.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_list.h"
|
||||
#include "mpp_lock.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "hal_task.h"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_common.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#define MODULE_TAG "hal_avsd_reg"
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "avsd_syntax.h"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
#ifndef __HAL_AVSD_REG_H__
|
||||
#define __HAL_AVSD_REG_H__
|
||||
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_device.h"
|
||||
|
||||
#include "parser_api.h"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_platform.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#define __HAL_H264D_GLOBAL_H__
|
||||
|
||||
#include "mpp_hal.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_device.h"
|
||||
#include "hal_bufs.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "hal_h265d_ctx.h"
|
||||
#include "hal_h265d_api.h"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_bitread.h"
|
||||
|
|
|
|||
|
|
@ -18,9 +18,7 @@
|
|||
#ifndef __HAL_H265D_DEBUG_H__
|
||||
#define __HAL_H265D_DEBUG_H__
|
||||
|
||||
#include "rk_type.h"
|
||||
#include "mpp_err.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define H265H_DBG_FUNCTION (0x00000001)
|
||||
#define H265H_DBG_RPS (0x00000002)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_bitput.h"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
#define __HAL_H265D_REG_H__
|
||||
|
||||
#include "rk_type.h"
|
||||
#include "mpp_log.h"
|
||||
|
||||
#define HEVC_DECODER_REG_NUM (48)
|
||||
#define RKVDEC_REG_PERF_CYCLE_INDEX (64)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_bitput.h"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
|
||||
#include "hal_vp9d_debug.h"
|
||||
#include "hal_vp9d_api.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __HAL_VP9D_DEBUG_H__
|
||||
#define __HAL_VP9D_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define HAL_VP9D_DBG_FUNC (0x00000001)
|
||||
#define HAL_VP9D_DBG_PAR (0x00000002)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_device.h"
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "vepu541_common.h"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_platform.h"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#define __HAL_AV1D_GLOBAL_H__
|
||||
|
||||
#include "mpp_hal.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_device.h"
|
||||
#include "hal_bufs.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
#include "mpp_frame.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_platform.h"
|
||||
|
||||
#include "mpp_hal.h"
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_err.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "h263d_syntax.h"
|
||||
#include "hal_h263d_api.h"
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_err.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "h263d_syntax.h"
|
||||
#include "hal_h263d_api.h"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "osal_2str.h"
|
||||
|
||||
#include "mpp_hal.h"
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_bitread.h"
|
||||
#include "mpp_bitput.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_frame.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
|
|
@ -743,7 +743,7 @@ MPP_RET hal_jpegd_rkv_wait(void *hal, HalTaskInfo *task)
|
|||
mpp_buf_slot_get_prop(ctx->frame_slots, task->dec.output, SLOT_BUFFER, &outputBuf);
|
||||
base = mpp_buffer_get_ptr(outputBuf);
|
||||
|
||||
snprintf(name, sizeof(name), "/data/tmp/output%02d.yuv", ctx->output_yuv_count);
|
||||
snprintf(name, sizeof(name) - 1, "/data/tmp/output%02d.yuv", ctx->output_yuv_count);
|
||||
jpg_file = fopen(name, "wb+");
|
||||
if (jpg_file) {
|
||||
JpegdSyntax *s = (JpegdSyntax *) task->dec.syntax.data;
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_frame.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
|
|
@ -996,7 +996,7 @@ MPP_RET hal_jpegd_vdpu1_wait(void *hal, HalTaskInfo *task)
|
|||
SLOT_BUFFER, &outputBuf);
|
||||
base = mpp_buffer_get_ptr(outputBuf);
|
||||
|
||||
snprintf(name, sizeof(name), "/tmp/output%02d.yuv",
|
||||
snprintf(name, sizeof(name) - 1, "/tmp/output%02d.yuv",
|
||||
JpegHalCtx->output_yuv_count);
|
||||
jpg_file = fopen(name, "wb+");
|
||||
if (jpg_file) {
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_frame.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
|
|
@ -974,7 +974,7 @@ MPP_RET hal_jpegd_vdpu2_wait(void *hal, HalTaskInfo *task)
|
|||
SLOT_BUFFER, &outputBuf);
|
||||
base = mpp_buffer_get_ptr(outputBuf);
|
||||
|
||||
snprintf(name, sizeof(name), "/tmp/output%02d.yuv",
|
||||
snprintf(name, sizeof(name) - 1, "/tmp/output%02d.yuv",
|
||||
JpegHalCtx->output_yuv_count);
|
||||
jpg_file = fopen(name, "wb+");
|
||||
if (jpg_file) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
#ifndef __HAL_JPEGE_DEBUG_H__
|
||||
#define __HAL_JPEGE_DEBUG_H__
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#define HAL_JPEGE_DBG_FUNCTION (0x00000001)
|
||||
#define HAL_JPEGE_DBG_SIMPLE (0x00000002)
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "hal_jpege_hdr.h"
|
||||
|
|
|
|||
|
|
@ -18,14 +18,13 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_platform.h"
|
||||
#include "mpp_env.h"
|
||||
|
||||
#include "mpp_platform.h"
|
||||
#include "hal_m2vd_base.h"
|
||||
#include "hal_m2vd_vpu1.h"
|
||||
#include "hal_m2vd_vpu2.h"
|
||||
|
||||
|
||||
RK_U32 m2vh_debug = 0;
|
||||
|
||||
static MPP_RET hal_m2vd_gen_regs(void *hal, HalTaskInfo *task)
|
||||
|
|
|
|||
|
|
@ -18,10 +18,13 @@
|
|||
#define __HAL_M2VD_BASE_H__
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "mpp_debug.h"
|
||||
|
||||
#include "mpp_hal.h"
|
||||
#include "mpp_buf_slot.h"
|
||||
#include "mpp_device.h"
|
||||
#include "mpp_mem.h"
|
||||
|
||||
#include "m2vd_syntax.h"
|
||||
|
||||
#define M2VD_BUF_SIZE_QPTAB (256)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "hal_m2vd_base.h"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "hal_m2vd_base.h"
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@
|
|||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_err.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_platform.h"
|
||||
|
||||
#include "hal_mpg4d_api.h"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "hal_m4vd_com.h"
|
||||
|
||||
RK_U8 default_intra_matrix[64] = {
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_buffer.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_debug.h"
|
||||
#include "mpp_buffer.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue