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

Side by Side Diff: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.h

Issue 1660963002: Bitrate controller for VideoToolbox encoder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 years, 10 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
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 30 matching lines...) Expand all
41 const std::vector<FrameType>* frame_types) override; 41 const std::vector<FrameType>* frame_types) override;
42 42
43 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override; 43 int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override;
44 44
45 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; 45 int SetChannelParameters(uint32_t packet_loss, int64_t rtt) override;
46 46
47 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override; 47 int SetRates(uint32_t new_bitrate_kbit, uint32_t frame_rate) override;
48 48
49 int Release() override; 49 int Release() override;
50 50
51 bool IsHardwareEncoder() const override { return true; }
52
51 const char* ImplementationName() const override; 53 const char* ImplementationName() const override;
52 54
53 private: 55 private:
54 int ResetCompressionSession(); 56 int ResetCompressionSession();
55 void ConfigureCompressionSession(); 57 void ConfigureCompressionSession();
56 void DestroyCompressionSession(); 58 void DestroyCompressionSession();
57 59
58 webrtc::EncodedImageCallback* callback_; 60 webrtc::EncodedImageCallback* callback_;
59 VTCompressionSessionRef compression_session_; 61 VTCompressionSessionRef compression_session_;
60 int32_t bitrate_; // Bitrate in bits per second. 62 int32_t bitrate_; // Bitrate in bits per second.
61 int32_t width_; 63 int32_t width_;
62 int32_t height_; 64 int32_t height_;
63 }; // H264VideoToolboxEncoder 65 }; // H264VideoToolboxEncoder
64 66
65 } // namespace webrtc 67 } // namespace webrtc
66 68
67 #endif // defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) 69 #endif // defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED)
68 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_VIDEO_TOOLBOX_ENCODER_H_ 70 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_H264_H264_VIDEO_TOOLBOX_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698