Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: media/video/video_encode_types.cc

Issue 12379011: Interfaces for encoded video sources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nit Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« media/video/video_encode_types.h ('K') | « media/video/video_encode_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698