OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 * | 9 * |
10 */ | 10 */ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 bool IsInitialized() const; | 63 bool IsInitialized() const; |
64 SEncParamExt CreateEncoderParams() const; | 64 SEncParamExt CreateEncoderParams() const; |
65 | 65 |
66 webrtc::H264BitstreamParser h264_bitstream_parser_; | 66 webrtc::H264BitstreamParser h264_bitstream_parser_; |
67 QualityScaler quality_scaler_; | 67 QualityScaler quality_scaler_; |
68 // Reports statistics with histograms. | 68 // Reports statistics with histograms. |
69 void ReportInit(); | 69 void ReportInit(); |
70 void ReportError(); | 70 void ReportError(); |
71 | 71 |
72 ISVCEncoder* openh264_encoder_; | 72 ISVCEncoder* openh264_encoder_; |
73 VideoCodec codec_settings_; | 73 // Settings that are used by this encoder. |
74 int width_; | |
75 int height_; | |
76 unsigned char maxFramerate_; | |
77 unsigned int targetBitrate_; // kilobits/sec. | |
78 unsigned int maxBitrate_; | |
79 VideoCodecMode mode_; | |
80 // H.264 specifc parameters | |
81 bool frameDroppingOn_; | |
82 int keyFrameInterval_; | |
stefan-webrtc
2016/11/02 11:14:21
I would prefer to get rid of the camelCase while y
hta-webrtc
2016/11/02 12:35:43
Done.
While I was at it I changed the types to ma
| |
83 | |
74 int32_t number_of_cores_; | 84 int32_t number_of_cores_; |
75 | 85 |
76 EncodedImage encoded_image_; | 86 EncodedImage encoded_image_; |
77 std::unique_ptr<uint8_t[]> encoded_image_buffer_; | 87 std::unique_ptr<uint8_t[]> encoded_image_buffer_; |
78 EncodedImageCallback* encoded_image_callback_; | 88 EncodedImageCallback* encoded_image_callback_; |
79 | 89 |
80 bool has_reported_init_; | 90 bool has_reported_init_; |
81 bool has_reported_error_; | 91 bool has_reported_error_; |
82 }; | 92 }; |
83 | 93 |
84 } // namespace webrtc | 94 } // namespace webrtc |
85 | 95 |
86 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_ | 96 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_ |
OLD | NEW |