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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 void OnDroppedFrame() override; | 50 void OnDroppedFrame() override; |
51 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 51 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
52 | 52 |
53 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; | 53 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; |
54 | 54 |
55 int Release() override; | 55 int Release() override; |
56 | 56 |
57 const char* ImplementationName() const override; | 57 const char* ImplementationName() const override; |
58 | 58 |
| 59 bool SupportsNativeHandle() const override; |
| 60 |
59 void OnEncodedFrame(OSStatus status, | 61 void OnEncodedFrame(OSStatus status, |
60 VTEncodeInfoFlags info_flags, | 62 VTEncodeInfoFlags info_flags, |
61 CMSampleBufferRef sample_buffer, | 63 CMSampleBufferRef sample_buffer, |
62 CodecSpecificInfo codec_specific_info, | 64 CodecSpecificInfo codec_specific_info, |
63 int32_t width, | 65 int32_t width, |
64 int32_t height, | 66 int32_t height, |
65 int64_t render_time_ms, | 67 int64_t render_time_ms, |
66 uint32_t timestamp, | 68 uint32_t timestamp, |
67 VideoRotation rotation); | 69 VideoRotation rotation); |
68 | 70 |
(...skipping 16 matching lines...) Expand all Loading... |
85 | 87 |
86 rtc::CriticalSection quality_scaler_crit_; | 88 rtc::CriticalSection quality_scaler_crit_; |
87 QualityScaler quality_scaler_ GUARDED_BY(quality_scaler_crit_); | 89 QualityScaler quality_scaler_ GUARDED_BY(quality_scaler_crit_); |
88 H264BitstreamParser h264_bitstream_parser_; | 90 H264BitstreamParser h264_bitstream_parser_; |
89 }; // H264VideoToolboxEncoder | 91 }; // H264VideoToolboxEncoder |
90 | 92 |
91 } // namespace webrtc | 93 } // namespace webrtc |
92 | 94 |
93 #endif // defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) | 95 #endif // defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) |
94 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_VIDEO_TOOLBOX_ENCODER_H_ | 96 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_VIDEO_TOOLBOX_ENCODER_H_ |
OLD | NEW |