Sound Open Firmware
Loading...
Searching...
No Matches
xa_type_def.h
Go to the documentation of this file.
1/*
2* The components of this software package from Cadence Design Systems,
3* Inc. are subject to the licenses below. By using the software package,
4* you agree to the legal terms of each license.
5*
6* Copyright (c) 1999-2018 Cadence Design Systems, Inc.
7*
8* Permission is hereby granted, free of charge, to any person obtaining
9* a copy of this software and associated documentation files (the
10* "Software"), to deal in the Software without restriction, including
11* without limitation the rights to use, copy, modify, merge, publish,
12* distribute, sublicense, and/or sell copies of the Software, and to
13* permit persons to whom the Software is furnished to do so, subject to
14* the following conditions:
15*
16* The above copyright notice and this permission notice shall be included
17* in all copies or substantial portions of the Software.
18*
19* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26*/
27
28#ifndef __XA_TYPE_DEF_H__
29#define __XA_TYPE_DEF_H__
30
31/****************************************************************************/
32/* types type define prefix examples bytes */
33/************************ *********** ****** **************** ***** */
34typedef char WORD8 ;/* b WORD8 b_name 1 */
35typedef char * pWORD8 ;/* pb pWORD8 pb_nmae 1 */
36typedef unsigned char UWORD8 ;/* ub UWORD8 ub_count 1 */
37typedef unsigned char * pUWORD8 ;/* pub pUWORD8 pub_count 1 */
38
39typedef signed short WORD16 ;/* s WORD16 s_count 2 */
40typedef signed short * pWORD16 ;/* ps pWORD16 ps_count 2 */
41typedef unsigned short UWORD16 ;/* us UWORD16 us_count 2 */
42typedef unsigned short * pUWORD16;/* pus pUWORD16 pus_count 2 */
43
44#if !defined(WORD24_H)
45#define WORD24_H
46typedef signed long WORD24 ;/* k WORD24 k_count 3 */
47typedef signed long * pWORD24 ;/* pk pWORD24 pk_count 3 */
48typedef unsigned long UWORD24 ;/* uk UWORD24 uk_count 3 */
49typedef unsigned long * pUWORD24;/* puk pUWORD24 puk_count 3 */
50#endif /* WORD24_H */
51
52typedef signed int WORD32 ;/* i WORD32 i_count 4 */
53typedef signed int * pWORD32 ;/* pi pWORD32 pi_count 4 */
54typedef unsigned int UWORD32 ;/* ui UWORD32 ui_count 4 */
55typedef unsigned int * pUWORD32;/* pui pUWORD32 pui_count 4 */
56
57typedef signed long long WORD40 ;/* m WORD40 m_count 5 */
58typedef signed long long * pWORD40 ;/* pm pWORD40 pm_count 5 */
59typedef unsigned long long UWORD40 ;/* um UWORD40 um_count 5 */
60typedef unsigned long long * pUWORD40;/* pum pUWORD40 pum_count 5 */
61
62typedef signed long long WORD64 ;/* h WORD64 h_count 8 */
63typedef signed long long * pWORD64 ;/* ph pWORD64 ph_count 8 */
64typedef unsigned long long UWORD64 ;/* uh UWORD64 uh_count 8 */
65typedef unsigned long long * pUWORD64;/* puh pUWORD64 puh_count 8 */
66
67typedef float FLOAT32 ;/* f FLOAT32 f_count 4 */
68typedef float * pFLOAT32;/* pf pFLOAT32 pf_count 4 */
69typedef double FLOAT64 ;/* d UFLOAT64 d_count 8 */
70typedef double * pFlOAT64;/* pd pFLOAT64 pd_count 8 */
71
72typedef void VOID ;/* v VOID v_flag 4 */
73typedef void * pVOID ;/* pv pVOID pv_flag 4 */
74
75/* variable size types: platform optimized implementation */
76typedef signed int BOOL ;/* bool BOOL bool_true */
77typedef unsigned int UBOOL ;/* ubool BOOL ubool_true */
78typedef signed int FLAG ;/* flag FLAG flag_false */
79typedef unsigned int UFLAG ;/* uflag FLAG uflag_false */
80typedef signed int LOOPIDX ;/* lp LOOPIDX lp_index */
81typedef unsigned int ULOOPIDX;/* ulp SLOOPIDX ulp_index */
82typedef signed int WORD ;/* lp LOOPIDX lp_index */
83typedef unsigned int UWORD ;/* ulp SLOOPIDX ulp_index */
84
85typedef LOOPIDX LOOPINDEX; /* lp LOOPIDX lp_index */
86typedef ULOOPIDX ULOOPINDEX;/* ulp SLOOPIDX ulp_index */
87
88#define PLATFORM_INLINE __inline
89
90typedef struct xa_codec_opaque { WORD32 _; } *xa_codec_handle_t;
91
92typedef int XA_ERRORCODE;
93
94typedef XA_ERRORCODE xa_codec_func_t(xa_codec_handle_t p_xa_module_obj,
95 WORD32 i_cmd,
96 WORD32 i_idx,
97 pVOID pv_value);
98
99#endif /* __XA_TYPE_DEF_H__ */
Definition xa_type_def.h:90
WORD32 _
Definition xa_type_def.h:90
unsigned int UWORD
Definition xa_type_def.h:83
LOOPIDX LOOPINDEX
Definition xa_type_def.h:85
unsigned int * pUWORD32
Definition xa_type_def.h:55
signed long * pWORD24
Definition xa_type_def.h:47
int XA_ERRORCODE
Definition xa_type_def.h:92
signed long long WORD64
Definition xa_type_def.h:62
unsigned long long UWORD40
Definition xa_type_def.h:59
signed int FLAG
Definition xa_type_def.h:78
signed int WORD32
Definition xa_type_def.h:52
ULOOPIDX ULOOPINDEX
Definition xa_type_def.h:86
char WORD8
Definition xa_type_def.h:34
signed short * pWORD16
Definition xa_type_def.h:40
signed long WORD24
Definition xa_type_def.h:46
signed int * pWORD32
Definition xa_type_def.h:53
unsigned long * pUWORD24
Definition xa_type_def.h:49
float FLOAT32
Definition xa_type_def.h:67
unsigned long UWORD24
Definition xa_type_def.h:48
signed long long WORD40
Definition xa_type_def.h:57
double * pFlOAT64
Definition xa_type_def.h:70
void VOID
Definition xa_type_def.h:72
unsigned char * pUWORD8
Definition xa_type_def.h:37
signed long long * pWORD64
Definition xa_type_def.h:63
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
unsigned long long * pUWORD64
Definition xa_type_def.h:65
unsigned short UWORD16
Definition xa_type_def.h:41
signed long long * pWORD40
Definition xa_type_def.h:58
unsigned int ULOOPIDX
Definition xa_type_def.h:81
unsigned int UFLAG
Definition xa_type_def.h:79
float * pFLOAT32
Definition xa_type_def.h:68
double FLOAT64
Definition xa_type_def.h:69
unsigned short * pUWORD16
Definition xa_type_def.h:42
signed short WORD16
Definition xa_type_def.h:39
void * pVOID
Definition xa_type_def.h:73
unsigned long long * pUWORD40
Definition xa_type_def.h:60
unsigned int UWORD32
Definition xa_type_def.h:54
signed int LOOPIDX
Definition xa_type_def.h:80
unsigned char UWORD8
Definition xa_type_def.h:36
unsigned int UBOOL
Definition xa_type_def.h:77
signed int WORD
Definition xa_type_def.h:82
signed int BOOL
Definition xa_type_def.h:76
char * pWORD8
Definition xa_type_def.h:35
unsigned long long UWORD64
Definition xa_type_def.h:64