| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 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 namespace media { |
| 8 |
| 9 VideoEncodingLimits::EncoderConfig::EncoderConfig() { |
| 10 // Intentionally empty. |
| 11 } |
| 12 |
| 13 VideoEncodingLimits::EncoderConfig::~EncoderConfig() { |
| 14 // Intentionally empty. |
| 15 } |
| 16 |
| 17 VideoEncodingLimits::VideoEncodingLimits() { |
| 18 // Intentionally empty. |
| 19 } |
| 20 |
| 21 VideoEncodingLimits::~VideoEncodingLimits() { |
| 22 // Intentionally empty. |
| 23 } |
| 24 |
| 25 RuntimeVideoEncodingParameters::RuntimeVideoEncodingParameters() { |
| 26 // Intentionally empty. |
| 27 } |
| 28 |
| 29 RuntimeVideoEncodingParameters::~RuntimeVideoEncodingParameters() { |
| 30 // Intentionally empty. |
| 31 } |
| 32 |
| 33 } // namespace media |
| 34 |
| 35 std::ostream& operator<<( |
| 36 std::ostream& output, |
| 37 const media::VideoEncodingLimits::EncoderConfig::Range& r) { |
| 38 output << r.min << "..." << r.max << "@" << r.step << " steps"; |
| 39 return output; |
| 40 } |
| 41 |
| 42 std::ostream& operator<<( |
| 43 std::ostream& output, |
| 44 const media::VideoEncodingLimits::EncoderConfig& c) { |
| 45 output << c.resolution.width() << "x" << c.resolution.height(); |
| 46 output << "@["; |
| 47 std::vector<int>::const_iterator it; |
| 48 for (it = c.frames_per_second.begin(); it != c.frames_per_second.end(); |
| 49 ++it) { |
| 50 if (it != c.frames_per_second.begin()) |
| 51 output << ", "; |
| 52 output << *it; |
| 53 } |
| 54 output << "] fps"; |
| 55 output << ", "; |
| 56 output << "bitrate: " << c.average_bitrate; |
| 57 output << ", "; |
| 58 output << "qp_range: " << c.qp; |
| 59 output << ", "; |
| 60 output << "num_of_streams: " << c.stream_count; |
| 61 output << ", "; |
| 62 output << "num_of_temporal_layers: " << c.temporal_layer_count; |
| 63 return output; |
| 64 } |
| 65 |
| 66 std::ostream& operator<<(std::ostream& output, |
| 67 const media::VideoEncodingLimits& l) { |
| 68 std::vector<media::VideoEncodingLimits::EncoderConfig>::const_iterator it; |
| 69 for (it = l.configs.begin(); it != l.configs.end(); it++) { |
| 70 output << *it << ", "; |
| 71 } |
| 72 return output; |
| 73 } |
| 74 |
| OLD | NEW |