1 /****************************************************************************** 2 * 3 * Copyright (C) 2015 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ***************************************************************************** 18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19 */ 20 #ifndef __IMPEG2D_VLD_H__ 21 #define __IMPEG2D_VLD_H__ 22 23 24 WORD16 impeg2d_dec_vld_symbol(stream_t *stream,const WORD16 codeTable[][2], 25 UWORD16 maxLen); 26 WORD16 impeg2d_fast_dec_vld_symbol(stream_t *stream, 27 const WORD16 codeTable[][2], 28 const UWORD16 indexTable[][2], 29 UWORD16 maxLen); 30 IMPEG2D_ERROR_CODES_T impeg2d_vld_decode(dec_state_t *dec, WORD16 *outAddr, /*!< Address where decoded symbols will be stored */ 31 const UWORD8 *scan, /*!< Scan table to be used */ 32 UWORD8 *pu1_pos, /*!< Scan table to be used */ 33 UWORD16 intraFlag, /*!< Intra Macroblock or not */ 34 UWORD16 chromaFlag, /*!< Chroma Block or not */ 35 UWORD16 dPicture, /*!< D Picture or not */ 36 UWORD16 intraVlcFormat, /*!< Intra VLC format */ 37 UWORD16 mpeg2, /*!< MPEG-2 or not */ 38 WORD32 *pi4_num_coeffs /*!< Returns the number of coeffs in block */ 39 ); 40 41 pf_vld_inv_quant_t impeg2d_vld_inv_quant_mpeg1; 42 pf_vld_inv_quant_t impeg2d_vld_inv_quant_mpeg2; 43 44 45 pf_inv_quant_t impeg2d_inv_quant_mpeg1; 46 pf_inv_quant_t impeg2d_inv_quant_mpeg2; 47 48 49 #endif /* #ifndef __IMPEG2D_VLD_H__ */ 50