OSDN Git Service

disable verbose log kitkat-x86 lollipop-x86 marshmallow-x86 android-x86-4.4-r1 android-x86-4.4-r2 android-x86-4.4-r3 android-x86-6.0-r1 android-x86-6.0-r2 android-x86-6.0-r3
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 5 Jun 2014 02:47:52 +0000 (10:47 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 5 Jun 2014 02:47:52 +0000 (10:47 +0800)
libstagefright/FFmpegExtractor/FFmpegExtractor.cpp
libstagefright/NamExtractor.cpp
libstagefright/codecs/ffmpegdec/adec/SoftFFmpegAudio.cpp
libstagefright/codecs/ffmpegdec/vdec/SoftFFmpegVideo.cpp
utils/codec_utils.cpp
utils/ffmpeg_source.cpp
utils/ffmpeg_utils.cpp

index af5ddb4..cd6f851 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#define LOG_NDEBUG 0
 #define LOG_TAG "FFmpegExtractor"
 #include <utils/Log.h>
 
@@ -57,6 +56,7 @@
 #define DEBUG_DISABLE_AUDIO        0
 #define WAIT_KEY_PACKET_AFTER_SEEK 1
 #define DEBUG_PKT                  0
+#define DEBUG_EXTRADATA            0
 
 enum {
     NO_SEEK = 0,
@@ -572,14 +572,14 @@ int FFmpegExtractor::stream_component_open(int stream_index)
             }
             return ret;
          }
-
+#if DEBUG_EXTRADATA
         if (avctx->extradata) {
             ALOGV("video stream extradata:");
             hexdump(avctx->extradata, avctx->extradata_size);
         } else {
             ALOGV("video stream no extradata, but we can ignore it.");
         }
-
+#endif
         meta = setVideoFormat(mVideoStream);
         if (meta == NULL) {
             ALOGE("setVideoFormat failed");
@@ -610,14 +610,14 @@ int FFmpegExtractor::stream_component_open(int stream_index)
             }
             return ret;
         }
-
+#if DEBUG_EXTRADATA
         if (avctx->extradata) {
             ALOGV("audio stream extradata(%d):", avctx->extradata_size);
             hexdump(avctx->extradata, avctx->extradata_size);
         } else {
             ALOGV("audio stream no extradata, but we can ignore it.");
         }
-
+#endif
         meta = setAudioFormat(mAudioStream);
         if (meta == NULL) {
             ALOGE("setAudioFormat failed");
index 2b8b697..65b2ccf 100755 (executable)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#define LOG_NDEBUG 0
 #define LOG_TAG "NamExtractor"
 #include <utils/Log.h>
 
index 82650dc..d518691 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#define LOG_NDEBUG 0
 #define LOG_TAG "SoftFFmpegAudio"
 #include <utils/Log.h>
 
@@ -26,6 +25,7 @@
 
 #define DEBUG_PKT 0
 #define DEBUG_FRM 0
+#define DEBUG_EXTRADATA 0
 
 namespace android {
 
@@ -1064,11 +1064,11 @@ int32_t SoftFFmpegAudio::handleExtradata() {
     List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex);
     BufferInfo *inInfo = *inQueue.begin();
     OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader;
-
+#if DEBUG_EXTRADATA
     ALOGI("got extradata, ignore: %d, size: %lu",
             mIgnoreExtradata, inHeader->nFilledLen);
     hexdump(inHeader->pBuffer + inHeader->nOffset, inHeader->nFilledLen);
-
+#endif
     if (mIgnoreExtradata) {
         ALOGI("got extradata, size: %lu, but ignore it", inHeader->nFilledLen);
     } else {
@@ -1120,8 +1120,10 @@ int32_t SoftFFmpegAudio::openDecoder() {
             }
             deinitVorbisHdr();
            }
+#if DEBUG_EXTRADATA
         ALOGI("extradata is ready, size: %d", mCtx->extradata_size);
         hexdump(mCtx->extradata, mCtx->extradata_size);
+#endif
         mExtradataReady = true;
     }
 
index 7bf6c75..92b904d 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#define LOG_NDEBUG 0
 #define LOG_TAG "SoftFFmpegVideo"
 #include <utils/Log.h>
 
@@ -26,6 +25,7 @@
 
 #define DEBUG_PKT 0
 #define DEBUG_FRM 0
+#define DEBUG_EXTRADATA 0
 
 static int decoder_reorder_pts = -1;
 
@@ -718,11 +718,11 @@ int32_t SoftFFmpegVideo::handleExtradata() {
     List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex);
     BufferInfo *inInfo = *inQueue.begin();
     OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader;
-
+#if DEBUG_EXTRADATA
     ALOGI("got extradata, ignore: %d, size: %lu",
             mIgnoreExtradata, inHeader->nFilledLen);
     hexdump(inHeader->pBuffer + inHeader->nOffset, inHeader->nFilledLen);
-
+#endif
     if (mIgnoreExtradata) {
         ALOGI("got extradata, size: %lu, but ignore it", inHeader->nFilledLen);
        } else {
@@ -760,8 +760,10 @@ int32_t SoftFFmpegVideo::openDecoder() {
     }
 
     if (!mExtradataReady) {
+#if DEBUG_EXTRADATA
         ALOGI("extradata is ready, size: %d", mCtx->extradata_size);
         hexdump(mCtx->extradata, mCtx->extradata_size);
+#endif
         mExtradataReady = true;
     }
 
index cc6a343..14cc856 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#define LOG_NDEBUG 0
 #define LOG_TAG "codec_utils"
 #include <utils/Log.h>
 
index 9199194..c221333 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#define LOG_NDEBUG 0
+
 #define LOG_TAG "FFMPEG"
 #include <utils/Log.h>
 
index 4ba2af7..bb5f680 100644 (file)
@@ -14,7 +14,6 @@
  * limitations under the License.
  */
 
-#define LOG_NDEBUG 0
 #define LOG_TAG "FFMPEG"
 #include <utils/Log.h>