Casting char to int in logs.
BUG=3153 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/12369006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5979 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -213,7 +213,7 @@ int ViECaptureImpl::DisconnectCaptureDevice(const int video_channel) {
|
|||||||
|
|
||||||
int ViECaptureImpl::StartCapture(const int capture_id,
|
int ViECaptureImpl::StartCapture(const int capture_id,
|
||||||
const CaptureCapability& capture_capability) {
|
const CaptureCapability& capture_capability) {
|
||||||
LOG(LS_ERROR) << "StartCapture " << capture_id;
|
LOG(LS_INFO) << "StartCapture " << capture_id;
|
||||||
|
|
||||||
ViEInputManagerScoped is(*(shared_data_->input_manager()));
|
ViEInputManagerScoped is(*(shared_data_->input_manager()));
|
||||||
ViECapturer* vie_capture = is.Capture(capture_id);
|
ViECapturer* vie_capture = is.Capture(capture_id);
|
||||||
|
@@ -29,19 +29,19 @@ namespace webrtc {
|
|||||||
|
|
||||||
static void LogCodec(const VideoCodec& codec) {
|
static void LogCodec(const VideoCodec& codec) {
|
||||||
LOG(LS_INFO) << "CodecType " << codec.codecType
|
LOG(LS_INFO) << "CodecType " << codec.codecType
|
||||||
<< ", pl_type " << codec.plType
|
<< ", pl_type " << static_cast<int>(codec.plType)
|
||||||
<< ", resolution " << codec.width
|
<< ", resolution " << codec.width
|
||||||
<< " x " << codec.height
|
<< " x " << codec.height
|
||||||
<< ", start br " << codec.startBitrate
|
<< ", start br " << codec.startBitrate
|
||||||
<< ", min br " << codec.minBitrate
|
<< ", min br " << codec.minBitrate
|
||||||
<< ", max br " << codec.maxBitrate
|
<< ", max br " << codec.maxBitrate
|
||||||
<< ", max fpr " << codec.maxFramerate
|
<< ", max fps " << static_cast<int>(codec.maxFramerate)
|
||||||
<< ", max qp " << codec.qpMax
|
<< ", max qp " << codec.qpMax
|
||||||
<< ", number of streams "
|
<< ", number of streams "
|
||||||
<< codec.numberOfSimulcastStreams;
|
<< static_cast<int>(codec.numberOfSimulcastStreams);
|
||||||
if (codec.codecType == kVideoCodecVP8) {
|
if (codec.codecType == kVideoCodecVP8) {
|
||||||
LOG(LS_INFO) << "VP8 specific settings";
|
LOG(LS_INFO) << "VP8 specific settings";
|
||||||
LOG(LS_INFO) << "pivtureLossIndicationOn "
|
LOG(LS_INFO) << "pictureLossIndicationOn "
|
||||||
<< codec.codecSpecific.VP8.pictureLossIndicationOn
|
<< codec.codecSpecific.VP8.pictureLossIndicationOn
|
||||||
<< ", feedbackModeOn "
|
<< ", feedbackModeOn "
|
||||||
<< codec.codecSpecific.VP8.feedbackModeOn
|
<< codec.codecSpecific.VP8.feedbackModeOn
|
||||||
@@ -49,15 +49,17 @@ static void LogCodec(const VideoCodec& codec) {
|
|||||||
<< codec.codecSpecific.VP8.complexity
|
<< codec.codecSpecific.VP8.complexity
|
||||||
<< ", resilience "
|
<< ", resilience "
|
||||||
<< codec.codecSpecific.VP8.resilience
|
<< codec.codecSpecific.VP8.resilience
|
||||||
<< ", numberOfTeporalLayers "
|
<< ", numberOfTemporalLayers "
|
||||||
<< codec.codecSpecific.VP8.numberOfTemporalLayers
|
<< static_cast<int>(
|
||||||
|
codec.codecSpecific.VP8.numberOfTemporalLayers)
|
||||||
<< ", keyFrameinterval "
|
<< ", keyFrameinterval "
|
||||||
<< codec.codecSpecific.VP8.keyFrameInterval;
|
<< codec.codecSpecific.VP8.keyFrameInterval;
|
||||||
for (int idx = 0; idx < codec.numberOfSimulcastStreams; ++idx) {
|
for (int idx = 0; idx < codec.numberOfSimulcastStreams; ++idx) {
|
||||||
LOG(LS_INFO) << "Stream " << codec.simulcastStream[idx].width
|
LOG(LS_INFO) << "Stream " << codec.simulcastStream[idx].width
|
||||||
<< " x " << codec.simulcastStream[idx].height;
|
<< " x " << codec.simulcastStream[idx].height;
|
||||||
LOG(LS_INFO) << "Temporal layers "
|
LOG(LS_INFO) << "Temporal layers "
|
||||||
<< codec.simulcastStream[idx].numberOfTemporalLayers
|
<< static_cast<int>(
|
||||||
|
codec.simulcastStream[idx].numberOfTemporalLayers)
|
||||||
<< ", min br "
|
<< ", min br "
|
||||||
<< codec.simulcastStream[idx].minBitrate
|
<< codec.simulcastStream[idx].minBitrate
|
||||||
<< ", target br "
|
<< ", target br "
|
||||||
@@ -66,7 +68,6 @@ static void LogCodec(const VideoCodec& codec) {
|
|||||||
<< codec.simulcastStream[idx].maxBitrate
|
<< codec.simulcastStream[idx].maxBitrate
|
||||||
<< ", qp max "
|
<< ", qp max "
|
||||||
<< codec.simulcastStream[idx].qpMax;
|
<< codec.simulcastStream[idx].qpMax;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user