summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorangiebird <angiebird@google.com>2019-11-22 10:53:09 -0800
committerangiebird <angiebird@google.com>2019-11-25 10:38:16 -0800
commit8d211a3969ecf2d942edd5063a6d19317e5c28ec (patch)
treea79126dfea59a34ebcf18edbef5922e66264c545
parentef263a11fe1ad2bac6e52be48e1519916839f15d (diff)
downloadlibvpx-8d211a3969ecf2d942edd5063a6d19317e5c28ec.tar
libvpx-8d211a3969ecf2d942edd5063a6d19317e5c28ec.tar.gz
libvpx-8d211a3969ecf2d942edd5063a6d19317e5c28ec.tar.bz2
libvpx-8d211a3969ecf2d942edd5063a6d19317e5c28ec.zip
Make GetCodingFrameNum const function
Change-Id: I6a5a2400cfb6e122c77667e0950c80026c48a1f6
-rw-r--r--vp9/simple_encode.cc2
-rw-r--r--vp9/simple_encode.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/vp9/simple_encode.cc b/vp9/simple_encode.cc
index 6bf55c95a..f34df6801 100644
--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -279,7 +279,7 @@ void SimpleEncode::EncodeFrameWithQuantizeIndex(
encode_command_reset_external_quantize_index(&impl_ptr_->cpi->encode_command);
}
-int SimpleEncode::GetCodingFrameNum() {
+int SimpleEncode::GetCodingFrameNum() const {
assert(impl_ptr_->first_pass_stats.size() - 1 > 0);
// These are the default settings for now.
const int multi_layer_arf = 0;
diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h
index 5d6972e7a..f2344a240 100644
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -74,7 +74,7 @@ class SimpleEncode {
// Gets the number of coding frames for the video. The coding frames include
// show frame and no show frame.
// This function should be called after ComputeFirstPassStats().
- int GetCodingFrameNum();
+ int GetCodingFrameNum() const;
private:
class EncodeImpl;