Skip to content

Commit

Permalink
Merge branch 'jb_2.6_1' of git://codeaurora.org/platform/hardware/qco…
Browse files Browse the repository at this point in the history
…m/media into cm-10.2
  • Loading branch information
hyperb1iss committed Oct 4, 2013
2 parents 243f144 + b345e18 commit f5f5fcb
Show file tree
Hide file tree
Showing 14 changed files with 406 additions and 359 deletions.
5 changes: 3 additions & 2 deletions dashplayer/DashCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ DashCodec::DashCodec()
}

DashCodec::~DashCodec() {
clearCachedFormats();
}

void DashCodec::setNotificationMessage(const sp<AMessage> &msg) {
Expand Down Expand Up @@ -2175,7 +2176,7 @@ void DashCodec::sendFormatChange() {
if (mFormats.size() > 0) {
useCachedConfig = true;
def = mFormats[0];
mFormats.pop();
mFormats.removeAt(0);
} else {
def = new OMX_PARAM_PORTDEFINITIONTYPE();
InitOMXParams(def);
Expand Down Expand Up @@ -2203,7 +2204,7 @@ void DashCodec::sendFormatChange() {
bool hasValidCrop = true;
if (useCachedConfig) {
rect = mOutputCrops[0];
mOutputCrops.pop();
mOutputCrops.removeAt(0);
if (rect == NULL) {
rect = new OMX_CONFIG_RECTTYPE();
hasValidCrop = false;
Expand Down
21 changes: 1 addition & 20 deletions mm-video/vidc/common/inc/extra_data_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,9 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
extern "C"{
#include<utils/Log.h>
}
#ifdef ENABLE_DEBUG_LOW
#define DEBUG_PRINT_LOW ALOGE
#else
#define DEBUG_PRINT_LOW
#endif
#ifdef ENABLE_DEBUG_HIGH
#define DEBUG_PRINT_HIGH ALOGE
#else
#define DEBUG_PRINT_HIGH
#endif
#ifdef ENABLE_DEBUG_ERROR
#define DEBUG_PRINT_ERROR ALOGE
#else
#define DEBUG_PRINT_ERROR
#endif

#else //_ANDROID_
#define DEBUG_PRINT_LOW printf
#define DEBUG_PRINT_HIGH printf
#define DEBUG_PRINT_ERROR printf
#endif // _ANDROID_

#include "vidc_debug.h"
#define SEI_PAYLOAD_FRAME_PACKING_ARRANGEMENT 0x2D
#define H264_START_CODE 0x01
#define NAL_TYPE_SEI 0x06
Expand Down
61 changes: 61 additions & 0 deletions mm-video/vidc/common/inc/vidc_debug.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*--------------------------------------------------------------------------
copyright (c) 2013, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of The Linux Foundation nor
the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------*/

#ifndef __VIDC_DEBUG_H__
#define __VIDC_DEBUG_H__

#ifdef _ANDROID_
#include <cstdio>

enum {
PRIO_ERROR=0x1,
PRIO_HIGH=0x2,
PRIO_LOW=0x4
};

extern int debug_level;

#undef DEBUG_PRINT_ERROR
#define DEBUG_PRINT_ERROR(fmt, args...) \
if (debug_level & PRIO_ERROR) \
ALOGE(fmt,##args)
#undef DEBUG_PRINT_LOW
#define DEBUG_PRINT_LOW(fmt, args...) \
if (debug_level & PRIO_LOW) \
ALOGD(fmt,##args)
#undef DEBUG_PRINT_HIGH
#define DEBUG_PRINT_HIGH(fmt, args...) \
if (debug_level & PRIO_HIGH) \
ALOGD(fmt,##args)
#else
#define DEBUG_PRINT_ERROR printf
#define DEBUG_PRINT_LOW printf
#define DEBUG_PRINT_HIGH printf
#endif

#endif
Loading

0 comments on commit f5f5fcb

Please sign in to comment.