bitenc.h revision 956c553ab0ce72f8074ad0fda2ffd66a0305700c
1/*
2 ** Copyright 2003-2010, VisualOn, Inc.
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	File:		bitenc.h
18
19	Content:	Bitstream encoder structure and functions
20
21*******************************************************************************/
22
23#ifndef _BITENC_H
24#define _BITENC_H
25
26#include "qc_data.h"
27#include "tns.h"
28#include "channel_map.h"
29#include "interface.h"
30
31struct BITSTREAMENCODER_INIT
32{
33  Word16 nChannels;
34  Word32 bitrate;
35  Word32 sampleRate;
36  Word16 profile;
37};
38
39
40
41Word16 WriteBitstream (HANDLE_BIT_BUF hBitstream,
42                       ELEMENT_INFO elInfo,
43                       QC_OUT *qcOut,
44                       PSY_OUT *psyOut,
45                       Word16 *globUsedBits,
46                       const UWord8 *ancBytes,
47					   Word16 samplerate
48                       );
49
50#endif /* _BITENC_H */
51