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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h

Issue 1397653004: Add native-handle support for single VP8 streams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // called from an internal helper that also knows the correct stream 51 // called from an internal helper that also knows the correct stream
52 // index. 52 // index.
53 int32_t Encoded(size_t stream_idx, 53 int32_t Encoded(size_t stream_idx,
54 const EncodedImage& encodedImage, 54 const EncodedImage& encodedImage,
55 const CodecSpecificInfo* codecSpecificInfo = NULL, 55 const CodecSpecificInfo* codecSpecificInfo = NULL,
56 const RTPFragmentationHeader* fragmentation = NULL); 56 const RTPFragmentationHeader* fragmentation = NULL);
57 57
58 void OnDroppedFrame() override; 58 void OnDroppedFrame() override;
59 59
60 int GetTargetFramerate() override; 60 int GetTargetFramerate() override;
61 bool SupportsNativeHandle() const override;
61 62
62 private: 63 private:
63 struct StreamInfo { 64 struct StreamInfo {
64 StreamInfo() 65 StreamInfo()
65 : encoder(NULL), 66 : encoder(NULL),
66 callback(NULL), 67 callback(NULL),
67 width(0), 68 width(0),
68 height(0), 69 height(0),
69 key_frame_request(false), 70 key_frame_request(false),
70 send_stream(true) {} 71 send_stream(true) {}
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 rtc::scoped_ptr<Config> screensharing_extra_options_; 112 rtc::scoped_ptr<Config> screensharing_extra_options_;
112 VideoCodec codec_; 113 VideoCodec codec_;
113 std::vector<StreamInfo> streaminfos_; 114 std::vector<StreamInfo> streaminfos_;
114 EncodedImageCallback* encoded_complete_callback_; 115 EncodedImageCallback* encoded_complete_callback_;
115 }; 116 };
116 117
117 } // namespace webrtc 118 } // namespace webrtc
118 119
119 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ 120 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_
120 121
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698