Home | History | Annotate | Download | only in inc
      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 #define M4VSS_SUPPORT_VIDEC_NULL
     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