Sound Open Firmware
Loading...
Searching...
No Matches
xa_vorbis_dec_api.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2006-2021 Cadence Design Systems, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24
25#ifndef __XA_VORBIS_DEC_API_H__
26#define __XA_VORBIS_DEC_API_H__
27
28#include <xa_memory_standards.h>
29
30/* vorbis_dec-specific configuration parameters */
44
45/* commands */
46#include <xa_apicmd_standards.h>
47
48/* vorbis_dec-specific command types */
49/* (none) */
50
51/* error codes */
52#include <xa_error_standards.h>
53#define XA_CODEC_VORBIS_DEC 7
54
55/* vorbis_dec-specific error codes */
56
57/*****************************************************************************/
58/* Class 1: Configuration Errors */
59/*****************************************************************************/
60/* Nonfatal Errors */
66
67/* Fatal Errors */
78
79/*****************************************************************************/
80/* Class 2: Execution Errors */
81/*****************************************************************************/
82/* Nonfatal Errors */
94/* Fatal Errors */
102
103#include "xa_type_def.h"
104
105#ifdef __cplusplus
106 extern "C" {
107#endif /* __cplusplus */
108
110
111#ifdef __cplusplus
112 }
113#endif /* __cplusplus */
114
115#endif /* __XA_VORBIS_DEC_API_H__ */
@ xa_class_config
Definition xa_error_standards.h:49
@ xa_class_execute
Definition xa_error_standards.h:50
@ xa_severity_nonfatal
Definition xa_error_standards.h:43
@ xa_severity_fatal
Definition xa_error_standards.h:44
#define XA_ERROR_CODE(severity, class, codec, index)
Definition xa_error_standards.h:55
XA_ERRORCODE xa_codec_func_t(xa_codec_handle_t p_xa_module_obj, WORD32 i_cmd, WORD32 i_idx, pVOID pv_value)
Definition xa_type_def.h:94
xa_codec_func_t xa_vorbis_dec
Definition xa_vorbis_dec_api.h:109
xa_error_fatal_config_vorbis_dec
Definition xa_vorbis_dec_api.h:69
@ XA_VORBISDEC_CONFIG_FATAL_NOTVORBIS
Definition xa_vorbis_dec_api.h:71
@ XA_VORBISDEC_CONFIG_FATAL_BADBOOKS
Definition xa_vorbis_dec_api.h:74
@ XA_VORBISDEC_CONFIG_FATAL_CODEBOOK_DECODE
Definition xa_vorbis_dec_api.h:75
@ XA_VORBISDEC_CONFIG_FATAL_INVALID_PARAM
Definition xa_vorbis_dec_api.h:76
@ XA_VORBISDEC_CONFIG_FATAL_BADHDR
Definition xa_vorbis_dec_api.h:70
@ XA_VORBISDEC_CONFIG_FATAL_BADINFO
Definition xa_vorbis_dec_api.h:72
@ XA_VORBISDEC_CONFIG_FATAL_BADVERSION
Definition xa_vorbis_dec_api.h:73
xa_error_fatal_execute_vorbis_dec
Definition xa_vorbis_dec_api.h:96
@ XA_VORBISDEC_EXECUTE_FATAL_INSUFFICIENT_INP_BUF_SIZE
Definition xa_vorbis_dec_api.h:100
@ XA_VORBISDEC_EXECUTE_FATAL_SCRATCH_ALLOC
Definition xa_vorbis_dec_api.h:98
@ XA_VORBISDEC_EXECUTE_FATAL_CORRUPT_STREAM
Definition xa_vorbis_dec_api.h:99
@ XA_VORBISDEC_EXECUTE_FATAL_PERSIST_ALLOC
Definition xa_vorbis_dec_api.h:97
xa_error_nonfatal_execute_vorbis_dec
Definition xa_vorbis_dec_api.h:84
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_BADPACKET
Definition xa_vorbis_dec_api.h:87
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_NOTAUDIO
Definition xa_vorbis_dec_api.h:86
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_RUNTIME_DECODE_FLUSH_IN_PROGRESS
Definition xa_vorbis_dec_api.h:88
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_UNEXPECTED_IDENT_PKT_RECEIVED
Definition xa_vorbis_dec_api.h:91
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_UNEXPECTED_HEADER_PKT_RECEIVED
Definition xa_vorbis_dec_api.h:92
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_INVALID_STRM_POS
Definition xa_vorbis_dec_api.h:89
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_INSUFFICIENT_DATA
Definition xa_vorbis_dec_api.h:90
@ XA_VORBISDEC_EXECUTE_NONFATAL_OV_HOLE
Definition xa_vorbis_dec_api.h:85
xa_error_nonfatal_config_vorbis_dec
Definition xa_vorbis_dec_api.h:62
@ XA_VORBISDEC_CONFIG_NONFATAL_BAD_PARAM
Definition xa_vorbis_dec_api.h:64
@ XA_VORBISDEC_CONFIG_NONFATAL_GROUPED_STREAM
Definition xa_vorbis_dec_api.h:63
xa_config_param_vorbis_dec
Definition xa_vorbis_dec_api.h:32
@ XA_VORBISDEC_CONFIG_PARAM_GET_CUR_BITRATE
Definition xa_vorbis_dec_api.h:38
@ XA_VORBISDEC_CONFIG_PARAM_OGG_MAX_PAGE_SIZE
Definition xa_vorbis_dec_api.h:41
@ XA_VORBISDEC_CONFIG_PARAM_RAW_VORBIS_FILE_MODE
Definition xa_vorbis_dec_api.h:39
@ XA_VORBISDEC_CONFIG_PARAM_NUM_CHANNELS
Definition xa_vorbis_dec_api.h:34
@ XA_VORBISDEC_CONFIG_PARAM_COMMENT_MEM_SIZE
Definition xa_vorbis_dec_api.h:37
@ XA_VORBISDEC_CONFIG_PARAM_PCM_WDSZ
Definition xa_vorbis_dec_api.h:35
@ XA_VORBISDEC_CONFIG_PARAM_SAMP_FREQ
Definition xa_vorbis_dec_api.h:33
@ XA_VORBISDEC_CONFIG_PARAM_RUNTIME_MEM
Definition xa_vorbis_dec_api.h:42
@ XA_VORBISDEC_CONFIG_PARAM_RAW_VORBIS_LAST_PKT_GRANULE_POS
Definition xa_vorbis_dec_api.h:40
@ XA_VORBISDEC_CONFIG_PARAM_COMMENT_MEM_PTR
Definition xa_vorbis_dec_api.h:36
#define XA_CODEC_VORBIS_DEC
Definition xa_vorbis_dec_api.h:53