blob: 383e4489783104e60777c17a3f8c3fed43469f0c [file] [log] [blame]
Chisato Kenmochi94704432017-01-10 11:56:48 +09001/*
2 * Copyright (C) 2003 - 2016 Sony Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _PROTO_LDAC_H
18#define _PROTO_LDAC_H
19
20/***************************************************************************************************
21 Function Declarations
22***************************************************************************************************/
23/* encode_ldac.c */
24DECLFUNC LDAC_RESULT init_encode_ldac(SFINFO *);
25DECLFUNC void calc_initial_bits_ldac(SFINFO *);
26DECLFUNC void free_encode_ldac(SFINFO *);
27DECLFUNC int encode_ldac(SFINFO *, int, int, int, int, int, int, int);
28
29
30/* setpcm_ldac.c */
31DECLFUNC void set_input_pcm_ldac(SFINFO *, char *[], LDAC_SMPL_FMT_T, int);
32
33/* mdct_ldac.c */
34DECLFUNC void proc_mdct_ldac(SFINFO *, int);
35
36
37/* sigana_ldac.c */
38DECLFUNC int ana_frame_status_ldac(SFINFO *, int);
39
40/* bitalloc_ldac.c */
41DECLFUNC int alloc_bits_ldac(AB *);
42
43/* bitalloc_sub_ldac.c */
44DECLFUNC int encode_side_info_ldac(AB *);
45DECLFUNC void calc_add_word_length_ldac(AC *);
46
47/* quant_ldac.c */
48DECLFUNC void norm_spectrum_ldac(AC *);
49DECLFUNC void quant_spectrum_ldac(AC *);
50DECLFUNC void quant_residual_ldac(AC *);
51
52
53/* pack_ldac.c */
54DECLFUNC void pack_frame_header_ldac(int, int, int, int, STREAM *);
55DECLFUNC int pack_raw_data_frame_ldac(SFINFO *, STREAM *, int *, int *);
56DECLFUNC int pack_null_data_frame_ldac(SFINFO *, STREAM *, int *, int *);
57
58
59/* tables_ldac.c */
60DECLFUNC int get_block_nchs_ldac(int);
61
62/* tables_sigproc_ldac.c */
63DECLFUNC void set_mdct_table_ldac(int);
64
65/* memory_ldac.c */
66DECLFUNC size_t align_ldac(size_t);
67DECLFUNC void *calloc_ldac(SFINFO *, size_t, size_t);
68
69#endif /* _PROTO_LDAC_H */
70