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

Unified Diff: webrtc/modules/video_coding/codecs/vp9/vp9_impl.h

Issue 1438543002: Revert of Work on flexible mode and screen sharing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp9/vp9.gyp ('k') | webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/codecs/vp9/vp9_impl.h
diff --git a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.h b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.h
index 9a48e74d3e5f8f23375228951846f545b0fd7443..ecc04651e5a70364b7353033251ac926ce58fd32 100644
--- a/webrtc/modules/video_coding/codecs/vp9/vp9_impl.h
+++ b/webrtc/modules/video_coding/codecs/vp9/vp9_impl.h
@@ -20,8 +20,6 @@
#include "vpx/vpx_encoder.h"
namespace webrtc {
-
-class ScreenshareLayersVP9;
class VP9EncoderImpl : public VP9Encoder {
public:
@@ -47,20 +45,6 @@
void OnDroppedFrame() override {}
- struct LayerFrameRefSettings {
- int8_t upd_buf = -1; // -1 - no update, 0..7 - update buffer 0..7
- int8_t ref_buf1 = -1; // -1 - no reference, 0..7 - reference buffer 0..7
- int8_t ref_buf2 = -1; // -1 - no reference, 0..7 - reference buffer 0..7
- int8_t ref_buf3 = -1; // -1 - no reference, 0..7 - reference buffer 0..7
- };
-
- struct SuperFrameRefSettings {
- LayerFrameRefSettings layer[kMaxVp9NumberOfSpatialLayers];
- uint8_t start_layer = 0; // The first spatial layer to be encoded.
- uint8_t stop_layer = 0; // The last spatial layer to be encoded.
- bool is_keyframe = false;
- };
-
private:
// Determine number of encoder threads to use.
int NumberOfThreads(int width, int height, int number_of_cores);
@@ -74,15 +58,6 @@
bool ExplicitlyConfiguredSpatialLayers() const;
bool SetSvcRates();
-
- // Used for flexible mode to set the flags and buffer references used
- // by the encoder. Also calculates the references used by the RTP
- // packetizer.
- //
- // Has to be called for every frame (keyframes included) to update the
- // state used to calculate references.
- vpx_svc_ref_frame_config GenerateRefsAndFlags(
- const SuperFrameRefSettings& settings);
virtual int GetEncodedLayerFrame(const vpx_codec_cx_pkt* pkt);
@@ -114,17 +89,9 @@
GofInfoVP9 gof_; // Contains each frame's temporal information for
// non-flexible mode.
uint8_t tl0_pic_idx_; // Only used in non-flexible mode.
- size_t frames_since_kf_;
+ size_t gof_idx_; // Only used in non-flexible mode.
uint8_t num_temporal_layers_;
uint8_t num_spatial_layers_;
-
- // Used for flexible mode.
- bool is_flexible_mode_;
- int64_t buffer_updated_at_frame_[kNumVp9Buffers];
- int64_t frames_encoded_;
- uint8_t num_ref_pics_[kMaxVp9NumberOfSpatialLayers];
- uint8_t p_diff_[kMaxVp9NumberOfSpatialLayers][kMaxVp9RefPics];
- rtc::scoped_ptr<ScreenshareLayersVP9> spatial_layer_;
};
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp9/vp9.gyp ('k') | webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698