Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "media/video/video_encode_types.h" | |
| 6 | |
| 7 #include "base/stringprintf.h" | |
| 8 | |
| 9 namespace media { | |
| 10 | |
| 11 std::string VideoEncodingLimits::EncoderConfig::Range::ToDebugString() const { | |
| 12 std::string debug_string; | |
| 13 base::StringAppendF(&debug_string, "%i...%i@%i", min, max, step); | |
| 14 return debug_string; | |
|
Ami GONE FROM CHROMIUM
2013/03/19 18:01:49
fwiw
return StringPrintf("%i...%i@%i", min, max,
vmr
2013/03/20 12:09:14
Done.
| |
| 15 } | |
| 16 | |
| 17 VideoEncodingLimits::EncoderConfig::EncoderConfig() { | |
| 18 // Intentionally empty. | |
| 19 } | |
| 20 | |
| 21 VideoEncodingLimits::EncoderConfig::~EncoderConfig() { | |
| 22 // Intentionally empty. | |
| 23 } | |
| 24 | |
| 25 std::string VideoEncodingLimits::EncoderConfig::ToDebugString() const { | |
| 26 std::string debug_string; | |
| 27 base::StringAppendF(&debug_string, "%s", resolution.ToString().c_str()); | |
| 28 base::StringAppendF(&debug_string, "@["); | |
| 29 std::vector<int>::const_iterator it; | |
| 30 for (it = frames_per_second.begin(); it != frames_per_second.end(); ++it) { | |
| 31 if (it == frames_per_second.begin()) | |
| 32 base::StringAppendF(&debug_string, "%i", *it); | |
| 33 else | |
| 34 base::StringAppendF(&debug_string, ", %i", *it); | |
| 35 } | |
| 36 base::StringAppendF(&debug_string, "] fps"); | |
| 37 base::StringAppendF(&debug_string, | |
| 38 ", bitrate: %s", | |
| 39 average_bitrate.ToDebugString().c_str()); | |
| 40 base::StringAppendF(&debug_string, | |
| 41 ", qp_range: %s", | |
| 42 qp.ToDebugString().c_str()); | |
| 43 base::StringAppendF(&debug_string, | |
| 44 ", num_of_streams: %s", | |
| 45 stream_count.ToDebugString().c_str()); | |
| 46 base::StringAppendF(&debug_string, | |
| 47 ", num_of_temporal_layers: %s", | |
| 48 temporal_layer_count.ToDebugString().c_str()); | |
| 49 return debug_string; | |
| 50 } | |
| 51 | |
| 52 VideoEncodingLimits::VideoEncodingLimits() { | |
| 53 // Intentionally empty. | |
| 54 } | |
| 55 | |
| 56 VideoEncodingLimits::~VideoEncodingLimits() { | |
| 57 // Intentionally empty. | |
| 58 } | |
| 59 | |
| 60 std::string VideoEncodingLimits::ToDebugString() const { | |
| 61 std::string debug_string; | |
| 62 std::vector<media::VideoEncodingLimits::EncoderConfig>::const_iterator it; | |
| 63 for (it = configs.begin(); it != configs.end(); it++) { | |
| 64 base::StringAppendF(&debug_string, ", %s", it->ToDebugString().c_str()); | |
| 65 } | |
| 66 return debug_string; | |
| 67 } | |
| 68 | |
| 69 RuntimeVideoEncodingParameters::RuntimeVideoEncodingParameters() { | |
| 70 // Intentionally empty. | |
| 71 } | |
| 72 | |
| 73 RuntimeVideoEncodingParameters::~RuntimeVideoEncodingParameters() { | |
| 74 // Intentionally empty. | |
| 75 } | |
| 76 | |
| 77 } // namespace media | |
| 78 | |
| OLD | NEW |