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