summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-09-10 09:57:53 -0700
committerAndreas Huber <andih@google.com>2009-09-10 10:27:14 -0700
commite087373d0b29c29bbb734d6dfb4d6259c68cf6d0 (patch)
tree7264cd6f5eb0fdc45d415e13a1f1a76d094aa00f /media
parent466dbbfd4595d714127a4bc92dd9235807b88be6 (diff)
downloadframeworks_base-e087373d0b29c29bbb734d6dfb4d6259c68cf6d0.zip
frameworks_base-e087373d0b29c29bbb734d6dfb4d6259c68cf6d0.tar.gz
frameworks_base-e087373d0b29c29bbb734d6dfb4d6259c68cf6d0.tar.bz2
Add component name to informational logging in OMXCodec.cpp
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/OMXCodec.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 3ab44b0..034457f 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -80,6 +80,7 @@ static const CodecInfo kEncoderInfo[] = {
{ "video/avc", "OMX.PV.avcenc" },
};
+#define CODEC_LOGI(x, ...) LOGI("[%s] "x, mComponentName, ##__VA_ARGS__)
#define CODEC_LOGV(x, ...) LOGV("[%s] "x, mComponentName, ##__VA_ARGS__)
struct OMXCodecObserver : public BnOMXObserver {
@@ -424,7 +425,7 @@ status_t OMXCodec::setVideoPortFormatType(
// CHECK_EQ(format.nIndex, index);
#if 1
- LOGI("portIndex: %ld, index: %ld, eCompressionFormat=%d eColorFormat=%d",
+ CODEC_LOGI("portIndex: %ld, index: %ld, eCompressionFormat=%d eColorFormat=%d",
portIndex,
index, format.eCompressionFormat, format.eColorFormat);
#endif
@@ -457,7 +458,7 @@ status_t OMXCodec::setVideoPortFormatType(
return UNKNOWN_ERROR;
}
- LOGI("found a match.");
+ CODEC_LOGI("found a match.");
status_t err = mOMX->set_parameter(
mNode, OMX_IndexParamVideoPortFormat,
&format, sizeof(format));
@@ -467,7 +468,7 @@ status_t OMXCodec::setVideoPortFormatType(
void OMXCodec::setVideoInputFormat(
const char *mime, OMX_U32 width, OMX_U32 height) {
- LOGI("setVideoInputFormat width=%ld, height=%ld", width, height);
+ CODEC_LOGI("setVideoInputFormat width=%ld, height=%ld", width, height);
OMX_VIDEO_CODINGTYPE compressionFormat = OMX_VIDEO_CodingUnused;
if (!strcasecmp("video/avc", mime)) {
@@ -527,7 +528,7 @@ void OMXCodec::setVideoInputFormat(
CHECK_EQ(err, OK);
def.nBufferSize = (width * height * 2); // (width * height * 3) / 2;
- LOGI("Setting nBufferSize = %ld", def.nBufferSize);
+ CODEC_LOGI("Setting nBufferSize = %ld", def.nBufferSize);
CHECK_EQ(def.eDomain, OMX_PortDomainVideo);
@@ -543,7 +544,7 @@ void OMXCodec::setVideoInputFormat(
void OMXCodec::setVideoOutputFormat(
const char *mime, OMX_U32 width, OMX_U32 height) {
- LOGI("setVideoOutputFormat width=%ld, height=%ld", width, height);
+ CODEC_LOGI("setVideoOutputFormat width=%ld, height=%ld", width, height);
OMX_VIDEO_CODINGTYPE compressionFormat = OMX_VIDEO_CodingUnused;
if (!strcasecmp("video/avc", mime)) {