NXPSW_CompilerSwitches_MCS.h revision b5c7784c96a606890eb8a8b560153ef4a5d1a0d9
1/* 2 * Copyright (C) 2011 The Android Open Source Project 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#ifndef NXPSW_COMPILERSWITCHES_MCS_H 17#define NXPSW_COMPILERSWITCHES_MCS_H 18 19 /***********/ 20 /* READERS */ 21 /***********/ 22 23/* ----- AMR reader support ----- */ 24#define M4VSS_SUPPORT_READER_AMR /**< [default] Support .amr files */ 25 26/* ----- 3GPP reader support ----- */ 27#define M4VSS_SUPPORT_READER_3GP /**< [default] Support .mp4, .3gp files */ 28 29 30/* ----- MP3 reader support ----- */ 31#define M4VSS_SUPPORT_READER_MP3 /**< [default] Support .mp3 files */ 32 33/* ----- RAW reader support ----- */ 34#define M4VSS_SUPPORT_READER_PCM /**< [default] Support .pcm files */ 35 36 37 /************/ 38 /* DECODERS */ 39 /************/ 40 41/* ----- AMR NB decoder support ----- */ 42#define M4VSS_SUPPORT_AUDEC_AMRNB /**< [default] Support AMR NB streams */ 43 44/* ----- AAC decoder support ----- */ 45#define M4VSS_SUPPORT_AUDEC_AAC /**< [default] Support AAC, AAC+ and eAAC+ streams */ 46 47/* ----- MP4/H263 video decoder support ----- */ 48#define M4VSS_SUPPORT_VIDEC_3GP /**< [default] Support mpeg4 and H263 decoders */ 49 50#ifdef M4VSS_SUPPORT_VIDEC_3GP 51#define GET_DECODER_CONFIG_INFO 52#endif 53 54#define M4VSS_SUPPORT_VIDEO_AVC /**< [default] Support H264 decoders */ 55 56/* ----- MP3 decoder support----- */ 57#define M4VSS_SUPPORT_AUDEC_MP3 /**< [default] Support MP3 decoders */ 58 59 60/* ----- NULL decoder support----- */ 61#define M4VSS_SUPPORT_AUDEC_NULL /** [default] Support PCM reading */ 62 63 64 /***********/ 65 /* WRITERS */ 66 /***********/ 67 68/* ----- 3gp writer ----- */ 69#define M4VSS_SUPPORT_WRITER_3GPP /**< [default] support encapsulating in 3gp format 70 {amr,aac} x {mpeg4,h263} */ 71 72 73 74 75 76 /************/ 77 /* ENCODERS */ 78 /************/ 79 80/* ----- mpeg4 & h263 encoder ----- */ 81#define M4VSS_SUPPORT_ENCODER_MPEG4 /**< [default] support encoding in mpeg4 and 82 h263 format {yuv,rgb} */ 83 84/* ----- h264 encoder ----- */ 85#define M4VSS_SUPPORT_ENCODER_AVC 86 87/* ----- amr encoder ----- */ 88#define M4VSS_SUPPORT_ENCODER_AMR /**< [default] support encoding in amr 12.2 format {amr,wav} */ 89 90/* ----- aac encoder ----- */ 91#define M4VSS_SUPPORT_ENCODER_AAC /**< [default] support encoding in aac format {amr,wav} */ 92 93 94/* ----- mp3 encoder ----- */ 95#define M4VSS_SUPPORT_ENCODER_MP3 /**< [default] support encoding in mp3 format {mp3} */ 96 97 /************/ 98 /* FEATURES */ 99 /************/ 100 101/* ----- VSS3GPP & xVSS ----- */ 102#define M4VSS_SUPPORT_EXTENDED_FEATURES /**< [default] if defined, implementation is xVSS else 103 it is VSS3GPP */ 104 105/* ----- SPS ----- */ 106#ifdef M4VSS_SUPPORT_EXTENDED_FEATURES 107 108//#define M4SPS_GIF_NOT_SUPPORTED /**< [option] do not support GIF format in still picture api */ 109//#define M4SPS_JPEG_NOT_SUPPORTED /**< [option] do not support JPEG format in still picture api */ 110//#define M4SPS_PNG_NOT_SUPPORTED /**< [option] do not support PNG format in still picture api */ 111#define M4SPS_WBMP_NOT_SUPPORTED /**< [option] do not support WBMP format in still picture api */ 112#define M4SPS_BGR565_COLOR_OUTPUT /**< [option] output in still picture api is BGR565 113 (default = BGR24) */ 114 115#else 116 117#define M4SPS_GIF_NOT_SUPPORTED /**< [option] do not support GIF format in still picture api */ 118//#define M4SPS_JPEG_NOT_SUPPORTED /**< [option] do not support JPEG format in still picture api */ 119#define M4SPS_PNG_NOT_SUPPORTED /**< [option] do not support PNG format in still picture api */ 120#define M4SPS_WBMP_NOT_SUPPORTED /**< [option] do not support WBMP format in still picture api */ 121//#define M4SPS_BGR565_COLOR_OUTPUT /**< [option] output in still picture api is BGR565 122// (default = BGR24) */ 123 124#endif 125 126#define M4VSS_ENABLE_EXTERNAL_DECODERS 127 128#define M4VSS_SUPPORT_OMX_CODECS 129 130#endif /* NXPSW_COMPILERSWITCHES_MCS_H */ 131 132