Stop using LOG macros in favor of RTC_ prefixed macros.
This CL has been generated with the following script: for m in PLOG \ LOG_TAG \ LOG_GLEM \ LOG_GLE_EX \ LOG_GLE \ LAST_SYSTEM_ERROR \ LOG_ERRNO_EX \ LOG_ERRNO \ LOG_ERR_EX \ LOG_ERR \ LOG_V \ LOG_F \ LOG_T_F \ LOG_E \ LOG_T \ LOG_CHECK_LEVEL_V \ LOG_CHECK_LEVEL \ LOG do git grep -l $m | xargs sed -i "s,\b$m\b,RTC_$m,g" done git checkout rtc_base/logging.h git cl format Bug: webrtc:8452 Change-Id: I1a53ef3e0a5ef6e244e62b2e012b864914784600 Reviewed-on: https://webrtc-review.googlesource.com/21325 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20617}
This commit is contained in:
committed by
Commit Bot
parent
34fa309129
commit
675513b96a
@ -35,7 +35,7 @@ bool Vp9ReadProfile(rtc::BitBuffer* br, uint8_t* profile) {
|
||||
uint32_t reserved_bit;
|
||||
RETURN_FALSE_IF_ERROR(br->ReadBits(&reserved_bit, 1));
|
||||
if (reserved_bit) {
|
||||
LOG(LS_WARNING) << "Failed to get QP. Unsupported bitstream profile.";
|
||||
RTC_LOG(LS_WARNING) << "Failed to get QP. Unsupported bitstream profile.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -46,7 +46,7 @@ bool Vp9ReadSyncCode(rtc::BitBuffer* br) {
|
||||
uint32_t sync_code;
|
||||
RETURN_FALSE_IF_ERROR(br->ReadBits(&sync_code, 24));
|
||||
if (sync_code != 0x498342) {
|
||||
LOG(LS_WARNING) << "Failed to get QP. Invalid sync code.";
|
||||
RTC_LOG(LS_WARNING) << "Failed to get QP. Invalid sync code.";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -71,7 +71,7 @@ bool Vp9ReadColorConfig(rtc::BitBuffer* br, uint8_t profile) {
|
||||
uint32_t reserved_bit;
|
||||
RETURN_FALSE_IF_ERROR(br->ReadBits(&reserved_bit, 1));
|
||||
if (reserved_bit) {
|
||||
LOG(LS_WARNING) << "Failed to get QP. Reserved bit set.";
|
||||
RTC_LOG(LS_WARNING) << "Failed to get QP. Reserved bit set.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -80,12 +80,12 @@ bool Vp9ReadColorConfig(rtc::BitBuffer* br, uint8_t profile) {
|
||||
uint32_t reserved_bit;
|
||||
RETURN_FALSE_IF_ERROR(br->ReadBits(&reserved_bit, 1));
|
||||
if (reserved_bit) {
|
||||
LOG(LS_WARNING) << "Failed to get QP. Reserved bit set.";
|
||||
RTC_LOG(LS_WARNING) << "Failed to get QP. Reserved bit set.";
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
LOG(LS_WARNING) << "Failed to get QP. 4:4:4 color not supported in "
|
||||
"profile 0 or 2.";
|
||||
RTC_LOG(LS_WARNING) << "Failed to get QP. 4:4:4 color not supported in "
|
||||
"profile 0 or 2.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -173,7 +173,7 @@ bool GetQp(const uint8_t* buf, size_t length, int* qp) {
|
||||
uint32_t frame_marker;
|
||||
RETURN_FALSE_IF_ERROR(br.ReadBits(&frame_marker, 2));
|
||||
if (frame_marker != 0x2) {
|
||||
LOG(LS_WARNING) << "Failed to get QP. Frame marker should be 2.";
|
||||
RTC_LOG(LS_WARNING) << "Failed to get QP. Frame marker should be 2.";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user