ratectrl_rtc: Remove duplicated DropFrameReason enum class
authorHirokazu Honda <hiroh@chromium.org>
Tue, 21 Nov 2023 08:03:53 +0000 (17:03 +0900)
committerHirokazu Honda <hiroh@chromium.org>
Tue, 21 Nov 2023 08:10:48 +0000 (17:10 +0900)
DropFrameReason is declared in two places. This moves it
to the common place.

Change-Id: I04c16db4a49135588edff7e1746dcf9172750bb9

vp8/vp8_ratectrl_rtc.h
vp9/ratectrl_rtc.h
vpx/internal/vpx_ratectrl_rtc.h

index 4c174b1..59fb607 100644 (file)
@@ -33,11 +33,6 @@ struct VP8FrameParamsQpRTC {
   int temporal_layer_id;
 };
 
-enum class FrameDropDecision {
-  kOk,    // Frame is encoded.
-  kDrop,  // Frame is dropped.
-};
-
 class VP8RateControlRTC {
  public:
   static std::unique_ptr<VP8RateControlRTC> Create(
index 7f624a5..85005c5 100644 (file)
@@ -64,11 +64,6 @@ struct VP9SegmentationData {
   size_t delta_q_size;
 };
 
-enum class FrameDropDecision {
-  kOk,    // Frame is encoded.
-  kDrop,  // Frame is dropped.
-};
-
 // This interface allows using VP9 real-time rate control without initializing
 // the encoder. To use this interface, you need to link with libvpxrc.a.
 //
index eb90cd1..6ffd798 100644 (file)
@@ -17,6 +17,11 @@ namespace libvpx {
 
 enum class RcFrameType { kKeyFrame = 0, kInterFrame = 1 };
 
+enum class FrameDropDecision {
+  kOk,    // Frame is encoded.
+  kDrop,  // Frame is dropped.
+};
+
 struct VpxRateControlRtcConfig {
  public:
   VpxRateControlRtcConfig() {