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 // Settings that are used by this encoder. | 73 VideoCodec codec_settings_; |
74 int width_; | |
75 int height_; | |
76 float max_frame_rate_; | |
77 unsigned int target_bits_per_second_; | |
78 unsigned int max_bits_per_second_; | |
79 VideoCodecMode mode_; | |
80 // H.264 specifc parameters | |
81 bool frame_dropping_on_; | |
82 int key_frame_interval_; | |
83 | |
84 int32_t number_of_cores_; | 74 int32_t number_of_cores_; |
85 | 75 |
86 EncodedImage encoded_image_; | 76 EncodedImage encoded_image_; |
87 std::unique_ptr<uint8_t[]> encoded_image_buffer_; | 77 std::unique_ptr<uint8_t[]> encoded_image_buffer_; |
88 EncodedImageCallback* encoded_image_callback_; | 78 EncodedImageCallback* encoded_image_callback_; |
89 | 79 |
90 bool has_reported_init_; | 80 bool has_reported_init_; |
91 bool has_reported_error_; | 81 bool has_reported_error_; |
92 }; | 82 }; |
93 | 83 |
94 } // namespace webrtc | 84 } // namespace webrtc |
95 | 85 |
96 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_ | 86 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_ENCODER_IMPL_H_ |
OLD | NEW |