Sound Open Firmware
Loading...
Searching...
No Matches
xa_mp3_enc_api.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022-2025 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
26#ifndef __XA_MP3ENC_CONFIG_PARAMS_H__
27#define __XA_MP3ENC_CONFIG_PARAMS_H__
28
29/* mp3_enc-specific configuration parameters */
35#ifdef ENABLE_CUT_OFF_FREQ_CONFIG
36 , XA_MP3ENC_CONFIG_FATAL_FRAC_BANDWIDTH = 4
37#endif // ENABLE_CUT_OFF_FREQ_CONFIG
38};
39
40/* commands */
41#include "xa_apicmd_standards.h"
42
43/* mp3_enc-specific commands */
44/* (none) */
45
46/* mp3_enc-specific command types */
47/* (none) */
48
49/* error codes */
50#include "xa_error_standards.h"
51
52#define XA_CODEC_MP3_ENC 2
53
54/* mp3_enc-specific error_codes */
55/*****************************************************************************/
56/* Class 0: API Errors */
57/*****************************************************************************/
58/* Nonfatal Errors */
59/* (none) */
60/* Fatal Errors */
61/* (none) */
62
63/*****************************************************************************/
64/* Class 1: Configuration Errors */
65/*****************************************************************************/
66/* Nonfatal Errors */
70
71/* Fatal Errors */
80/* (none) */
81
82#include "xa_type_def.h"
83
84#if defined(__cplusplus)
85extern "C" {
86#endif /* __cplusplus */
88#if defined(__cplusplus)
89}
90#endif /* __cplusplus */
91#endif /* __XA_MP3ENC_CONFIG_PARAMS_H__ */
@ xa_class_config
Definition xa_error_standards.h:49
@ 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_config_param_mp3_enc
Definition xa_mp3_enc_api.h:30
@ XA_MP3ENC_CONFIG_PARAM_BITRATE
Definition xa_mp3_enc_api.h:34
@ XA_MP3ENC_CONFIG_PARAM_NUM_CHANNELS
Definition xa_mp3_enc_api.h:33
@ XA_MP3ENC_CONFIG_PARAM_SAMP_FREQ
Definition xa_mp3_enc_api.h:32
@ XA_MP3ENC_CONFIG_PARAM_PCM_WDSZ
Definition xa_mp3_enc_api.h:31
xa_codec_func_t xa_mp3_enc
Definition xa_mp3_enc_api.h:87
xa_error_nonfatal_config_mp3_enc
Definition xa_mp3_enc_api.h:67
@ XA_MP3ENC_CONFIG_NONFATAL_INVALID_BITRATE
Definition xa_mp3_enc_api.h:68
xa_error_fatal_config_mp3_enc
Definition xa_mp3_enc_api.h:72
@ XA_MP3ENC_CONFIG_FATAL_SAMP_FREQ
Definition xa_mp3_enc_api.h:73
@ XA_MP3ENC_CONFIG_FATAL_NUM_CHANNELS
Definition xa_mp3_enc_api.h:74
@ XA_MP3ENC_CONFIG_FATAL_PCM_WDSZ
Definition xa_mp3_enc_api.h:75
#define XA_CODEC_MP3_ENC
Definition xa_mp3_enc_api.h:52
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