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

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

Issue 2753783002: Delete VP8 feedback mode. (Closed)
Patch Set: Rebased. Created 3 years, 9 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 * WEBRTC VP8 wrapper interface 10 * WEBRTC VP8 wrapper interface
11 */ 11 */
12 12
13 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ 13 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_
14 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ 14 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_
15 15
16 #include <memory> 16 #include <memory>
17 #include <vector> 17 #include <vector>
18 18
19 // NOTE: This include order must remain to avoid compile errors, even though 19 // NOTE: This include order must remain to avoid compile errors, even though
20 // it breaks the style guide. 20 // it breaks the style guide.
21 #include "vpx/vpx_encoder.h" 21 #include "vpx/vpx_encoder.h"
22 #include "vpx/vpx_decoder.h" 22 #include "vpx/vpx_decoder.h"
23 #include "vpx/vp8cx.h" 23 #include "vpx/vp8cx.h"
24 #include "vpx/vp8dx.h" 24 #include "vpx/vp8dx.h"
25 25
26 #include "webrtc/api/video/video_frame.h" 26 #include "webrtc/api/video/video_frame.h"
27 #include "webrtc/common_video/include/i420_buffer_pool.h" 27 #include "webrtc/common_video/include/i420_buffer_pool.h"
28 #include "webrtc/modules/video_coding/include/video_codec_interface.h" 28 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
29 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" 29 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h"
30 #include "webrtc/modules/video_coding/codecs/vp8/reference_picture_selection.h"
31 #include "webrtc/modules/video_coding/utility/quality_scaler.h" 30 #include "webrtc/modules/video_coding/utility/quality_scaler.h"
32 #include "webrtc/video_frame.h" 31 #include "webrtc/video_frame.h"
33 32
34 namespace webrtc { 33 namespace webrtc {
35 34
36 class TemporalLayers; 35 class TemporalLayers;
37 36
38 class VP8EncoderImpl : public VP8Encoder { 37 class VP8EncoderImpl : public VP8Encoder {
39 public: 38 public:
40 VP8EncoderImpl(); 39 VP8EncoderImpl();
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 89
91 // Set the stream state for stream |stream_idx|. 90 // Set the stream state for stream |stream_idx|.
92 void SetStreamState(bool send_stream, int stream_idx); 91 void SetStreamState(bool send_stream, int stream_idx);
93 92
94 uint32_t MaxIntraTarget(uint32_t optimal_buffer_size); 93 uint32_t MaxIntraTarget(uint32_t optimal_buffer_size);
95 94
96 EncodedImageCallback* encoded_complete_callback_; 95 EncodedImageCallback* encoded_complete_callback_;
97 VideoCodec codec_; 96 VideoCodec codec_;
98 bool inited_; 97 bool inited_;
99 int64_t timestamp_; 98 int64_t timestamp_;
100 bool feedback_mode_;
101 int qp_max_; 99 int qp_max_;
102 int cpu_speed_default_; 100 int cpu_speed_default_;
103 int number_of_cores_; 101 int number_of_cores_;
104 uint32_t rc_max_intra_target_; 102 uint32_t rc_max_intra_target_;
105 int token_partitions_; 103 int token_partitions_;
106 ReferencePictureSelection rps_;
107 std::vector<TemporalLayers*> temporal_layers_; 104 std::vector<TemporalLayers*> temporal_layers_;
108 bool down_scale_requested_; 105 bool down_scale_requested_;
109 uint32_t down_scale_bitrate_; 106 uint32_t down_scale_bitrate_;
110 const bool use_gf_boost_; 107 const bool use_gf_boost_;
111 std::vector<uint16_t> picture_id_; 108 std::vector<uint16_t> picture_id_;
112 std::vector<int> last_key_frame_picture_id_; 109 std::vector<int> last_key_frame_picture_id_;
113 std::vector<bool> key_frame_request_; 110 std::vector<bool> key_frame_request_;
114 std::vector<bool> send_stream_; 111 std::vector<bool> send_stream_;
115 std::vector<int> cpu_speed_; 112 std::vector<int> cpu_speed_;
116 std::vector<vpx_image_t> raw_images_; 113 std::vector<vpx_image_t> raw_images_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 const RTPFragmentationHeader* fragmentation); 146 const RTPFragmentationHeader* fragmentation);
150 147
151 int ReturnFrame(const vpx_image_t* img, 148 int ReturnFrame(const vpx_image_t* img,
152 uint32_t timeStamp, 149 uint32_t timeStamp,
153 int64_t ntp_time_ms, 150 int64_t ntp_time_ms,
154 int qp); 151 int qp);
155 152
156 I420BufferPool buffer_pool_; 153 I420BufferPool buffer_pool_;
157 DecodedImageCallback* decode_complete_callback_; 154 DecodedImageCallback* decode_complete_callback_;
158 bool inited_; 155 bool inited_;
159 bool feedback_mode_;
160 vpx_codec_ctx_t* decoder_; 156 vpx_codec_ctx_t* decoder_;
161 VideoCodec codec_; 157 VideoCodec codec_;
162 int image_format_; 158 int image_format_;
163 vpx_ref_frame_t* ref_frame_; 159 vpx_ref_frame_t* ref_frame_;
164 int propagation_cnt_; 160 int propagation_cnt_;
165 int last_frame_width_; 161 int last_frame_width_;
166 int last_frame_height_; 162 int last_frame_height_;
167 bool key_frame_required_; 163 bool key_frame_required_;
168 const bool use_postproc_arm_; 164 const bool use_postproc_arm_;
169 }; // end of VP8DecoderImpl class 165 }; // end of VP8DecoderImpl class
170 } // namespace webrtc 166 } // namespace webrtc
171 167
172 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_ 168 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_VP8_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.cc ('k') | webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698