summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/ScreenSharing/ReferencePictureSelection.h')
-rw-r--r--Swiften/ScreenSharing/ReferencePictureSelection.h49
1 files changed, 9 insertions, 40 deletions
diff --git a/Swiften/ScreenSharing/ReferencePictureSelection.h b/Swiften/ScreenSharing/ReferencePictureSelection.h
index ff2f4c0..bb1da2a 100644
--- a/Swiften/ScreenSharing/ReferencePictureSelection.h
+++ b/Swiften/ScreenSharing/ReferencePictureSelection.h
@@ -1,19 +1,7 @@
/*
- * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-/*
- * This file defines classes for doing reference picture selection, primarily
- * with VP8.
- */
-
-/* Modified by Yoann Blein, 2012 (remove time handling for simplicity)
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#pragma once
@@ -25,31 +13,12 @@ namespace Swift {
public:
ReferencePictureSelection();
- // Report a received reference picture selection indication. This will
- // introduce a new established reference if the received RPSI isn't too late.
- void ReceivedRPSI(int rpsi_picture_id);
-
- // Report a received slice loss indication. Returns true if a refresh frame
- // must be sent to the receiver, which is accomplished by only predicting
- // from the established reference.
- // |now_ts| is the RTP timestamp corresponding to the current time. Typically
- // the capture timestamp of the frame currently being processed.
- // Returns true if it's time to encode a decoder refresh, otherwise false.
- void ReceivedSLI();
-
- // Returns the recommended VP8 encode flags needed. May refresh the decoder
- // and/or update the reference buffers.
- // |picture_id| picture id of the frame to be encoded.
- // |send_refresh| should be set to true if a decoder refresh should be
- // encoded, otherwise false.
- // |now_ts| is the RTP timestamp corresponding to the current time. Typically
- // the capture timestamp of the frame currently being processed.
- // Returns the flags to be given to the libvpx encoder when encoding the next
- // frame.
- int EncodeFlags(int picture_id);
-
- // Notify the RPS that the frame with picture id |picture_id| was encoded as
- // a key frame, effectively updating all reference buffers.
+ void receivedRPSI(int rpsi_picture_id);
+
+ void receivedSLI();
+
+ int encodeFlags(int picture_id);
+
void refFrameSent(int picture_id);
private: