Fix ClangTidy warnings
authorWan-Teh Chang <wtc@google.com>
Fri, 10 Nov 2023 02:35:51 +0000 (18:35 -0800)
committerWan-Teh Chang <wtc@google.com>
Fri, 10 Nov 2023 02:35:51 +0000 (18:35 -0800)
Most are related to include-what-you-use. One is to avoid using the
unsigned long type explicitly (by passing VPX_DL_REALTIME directly to
vpx_codec_encode).

Change-Id: Ieaf3418382ad8516cb4b172f7678893286fcb8cf

test/encode_api_test.cc

index 012e54a..770052c 100644 (file)
@@ -21,6 +21,9 @@
 
 #include "./vpx_config.h"
 #include "vpx/vp8cx.h"
+#include "vpx/vpx_codec.h"
+#include "vpx/vpx_encoder.h"
+#include "vpx/vpx_image.h"
 #include "vpx/vpx_tpl.h"
 
 namespace {
@@ -165,10 +168,10 @@ TEST(EncodeAPI, HugeFramerateVp8) {
   }
 
   // Encode a frame.
-  const unsigned long deadline = VPX_DL_REALTIME;
   // Up to this point cpi->framerate is 30. Now pass a duration of only 1. This
   // causes cpi->framerate to become 10,000,000.
-  ASSERT_EQ(vpx_codec_encode(&enc, image, 0, 1, 0, deadline), VPX_CODEC_OK);
+  ASSERT_EQ(vpx_codec_encode(&enc, image, 0, 1, 0, VPX_DL_REALTIME),
+            VPX_CODEC_OK);
 
   // Change to the same config. Since cpi->framerate is now huge, when it is
   // used to calculate raw_target_rate (bit rate of uncompressed frames), the