1/* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 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 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18/* 19 20 Pathname: ./include/buffer_normalization.h 21 22------------------------------------------------------------------------------ 23 REVISION HISTORY 24 25 Description: Changed definitions from Int to Int32 for IO_buffer[] 26 27 Description: Added copyrigth notice, added 'const' definitions to function 28 29 Who: Date: 30 Description: 31 32------------------------------------------------------------------------------ 33 INCLUDE DESCRIPTION 34 35 Header file for function buffer_normalization() 36 37 38------------------------------------------------------------------------------ 39*/ 40 41/*---------------------------------------------------------------------------- 42; CONTINUE ONLY IF NOT ALREADY DEFINED 43----------------------------------------------------------------------------*/ 44#ifndef BUFFER_NORMALIZATION_H 45#define BUFFER_NORMALIZATION_H 46 47/*---------------------------------------------------------------------------- 48; INCLUDES 49----------------------------------------------------------------------------*/ 50#include "pv_audio_type_defs.h" 51 52/*---------------------------------------------------------------------------- 53; MACROS 54; Define module specific macros here 55----------------------------------------------------------------------------*/ 56 57/*---------------------------------------------------------------------------- 58; DEFINES 59; Include all pre-processor statements here. 60----------------------------------------------------------------------------*/ 61#define ALL_ZEROS_BUFFER -100 62 63/*---------------------------------------------------------------------------- 64; EXTERNAL VARIABLES REFERENCES 65; Declare variables used in this module but defined elsewhere 66----------------------------------------------------------------------------*/ 67 68/*---------------------------------------------------------------------------- 69; SIMPLE TYPEDEF'S 70----------------------------------------------------------------------------*/ 71 72/*---------------------------------------------------------------------------- 73; ENUMERATED TYPEDEF'S 74----------------------------------------------------------------------------*/ 75 76/*---------------------------------------------------------------------------- 77; STRUCTURES TYPEDEF'S 78----------------------------------------------------------------------------*/ 79 80/*---------------------------------------------------------------------------- 81; GLOBAL FUNCTION DEFINITIONS 82; Function Prototype declaration 83----------------------------------------------------------------------------*/ 84void buffer_normalization( 85 Int q_format, 86 Int32 IO_buffer[], 87 const Int buffer_size, 88 Int * const pExp); 89 90/*---------------------------------------------------------------------------- 91; END 92----------------------------------------------------------------------------*/ 93#endif /* BUFFER_NORMALIZATION_H */ 94