Chisato Kenmochi | 9470443 | 2017-01-10 11:56:48 +0900 | [diff] [blame] | 1 | /* |
| 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 */ |
| 24 | DECLFUNC LDAC_RESULT init_encode_ldac(SFINFO *); |
| 25 | DECLFUNC void calc_initial_bits_ldac(SFINFO *); |
| 26 | DECLFUNC void free_encode_ldac(SFINFO *); |
| 27 | DECLFUNC int encode_ldac(SFINFO *, int, int, int, int, int, int, int); |
| 28 | |
| 29 | |
| 30 | /* setpcm_ldac.c */ |
| 31 | DECLFUNC void set_input_pcm_ldac(SFINFO *, char *[], LDAC_SMPL_FMT_T, int); |
| 32 | |
| 33 | /* mdct_ldac.c */ |
| 34 | DECLFUNC void proc_mdct_ldac(SFINFO *, int); |
| 35 | |
| 36 | |
| 37 | /* sigana_ldac.c */ |
| 38 | DECLFUNC int ana_frame_status_ldac(SFINFO *, int); |
| 39 | |
| 40 | /* bitalloc_ldac.c */ |
| 41 | DECLFUNC int alloc_bits_ldac(AB *); |
| 42 | |
| 43 | /* bitalloc_sub_ldac.c */ |
| 44 | DECLFUNC int encode_side_info_ldac(AB *); |
| 45 | DECLFUNC void calc_add_word_length_ldac(AC *); |
| 46 | |
| 47 | /* quant_ldac.c */ |
| 48 | DECLFUNC void norm_spectrum_ldac(AC *); |
| 49 | DECLFUNC void quant_spectrum_ldac(AC *); |
| 50 | DECLFUNC void quant_residual_ldac(AC *); |
| 51 | |
| 52 | |
| 53 | /* pack_ldac.c */ |
| 54 | DECLFUNC void pack_frame_header_ldac(int, int, int, int, STREAM *); |
| 55 | DECLFUNC int pack_raw_data_frame_ldac(SFINFO *, STREAM *, int *, int *); |
| 56 | DECLFUNC int pack_null_data_frame_ldac(SFINFO *, STREAM *, int *, int *); |
| 57 | |
| 58 | |
| 59 | /* tables_ldac.c */ |
| 60 | DECLFUNC int get_block_nchs_ldac(int); |
| 61 | |
| 62 | /* tables_sigproc_ldac.c */ |
| 63 | DECLFUNC void set_mdct_table_ldac(int); |
| 64 | |
| 65 | /* memory_ldac.c */ |
| 66 | DECLFUNC size_t align_ldac(size_t); |
| 67 | DECLFUNC void *calloc_ldac(SFINFO *, size_t, size_t); |
| 68 | |
| 69 | #endif /* _PROTO_LDAC_H */ |
| 70 | |