You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2019-2019. All rights reserved.
|
|
* Description: adec thread function
|
|
* Author: audio
|
|
* Create: 2019-12-30
|
|
*/
|
|
|
|
#ifndef __ADEC_THREAD_H__
|
|
#define __ADEC_THREAD_H__
|
|
|
|
#include "drv_ioctl_adec.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* Define the error codes of an HA codec. */
|
|
typedef enum {
|
|
/* < None ERR_. */
|
|
HA_ERR_NONE = 0,
|
|
|
|
/* < The device fails to be created due to insufficient resources. */
|
|
HA_ERR_INSUFFICIENT_RESOURCES = (td_s32)0x80001000,
|
|
|
|
/* < The input parameter is invalid. */
|
|
HA_ERR_INVALID_PARAMETER = (td_s32)0x80001001,
|
|
|
|
/* < The decoding fails due to incorrect input streams. */
|
|
HA_ERR_STREAM_CORRUPT = (td_s32)0x80001002,
|
|
|
|
/* < The decoding ends due to insufficient streams. */
|
|
HA_ERR_NOT_ENOUGH_DATA = (td_s32)0x80001003,
|
|
|
|
/* < The decoding mode is not supported. */
|
|
HA_ERR_DECODE_MODE = (td_s32)0x80001004,
|
|
|
|
/* < The codec is not supported. */
|
|
HA_ERR_NOT_SUPPORT_CODEC = (td_s32)0x80001005,
|
|
|
|
/* < Input buffer is full. */
|
|
HA_ERR_INBUF_FULL = (td_s32)0x80001006,
|
|
|
|
/* < Output buffer is empty. */
|
|
HA_ERR_OUTBUF_EMPTY = (td_s32) 0x80001007,
|
|
|
|
HA_ERR_MAX = 0x9FFFFFFF
|
|
} ha_error_type;
|
|
|
|
td_void *adec_dec_thread(td_void *arg);
|
|
td_u32 adec_get_input_data_size(adec_chan_input_buf *in_buf);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __ADEC_THREAD_H__ */
|