* limitations under the License.
*/
-#define LOG_NDEBUG 0
#define LOG_TAG "FFmpegExtractor"
#include <utils/Log.h>
#define DEBUG_DISABLE_AUDIO 0
#define WAIT_KEY_PACKET_AFTER_SEEK 1
#define DEBUG_PKT 0
+#define DEBUG_EXTRADATA 0
enum {
NO_SEEK = 0,
}
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");
}
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");
* limitations under the License.
*/
-#define LOG_NDEBUG 0
#define LOG_TAG "NamExtractor"
#include <utils/Log.h>
* limitations under the License.
*/
-#define LOG_NDEBUG 0
#define LOG_TAG "SoftFFmpegAudio"
#include <utils/Log.h>
#define DEBUG_PKT 0
#define DEBUG_FRM 0
+#define DEBUG_EXTRADATA 0
namespace android {
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 {
}
deinitVorbisHdr();
}
+#if DEBUG_EXTRADATA
ALOGI("extradata is ready, size: %d", mCtx->extradata_size);
hexdump(mCtx->extradata, mCtx->extradata_size);
+#endif
mExtradataReady = true;
}
* limitations under the License.
*/
-#define LOG_NDEBUG 0
#define LOG_TAG "SoftFFmpegVideo"
#include <utils/Log.h>
#define DEBUG_PKT 0
#define DEBUG_FRM 0
+#define DEBUG_EXTRADATA 0
static int decoder_reorder_pts = -1;
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 {
}
if (!mExtradataReady) {
+#if DEBUG_EXTRADATA
ALOGI("extradata is ready, size: %d", mCtx->extradata_size);
hexdump(mCtx->extradata, mCtx->extradata_size);
+#endif
mExtradataReady = true;
}
* limitations under the License.
*/
-#define LOG_NDEBUG 0
#define LOG_TAG "codec_utils"
#include <utils/Log.h>
* 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>
* limitations under the License.
*/
-#define LOG_NDEBUG 0
#define LOG_TAG "FFMPEG"
#include <utils/Log.h>