ref: 8d211a3969ecf2d942edd5063a6d19317e5c28ec
parent: ef263a11fe1ad2bac6e52be48e1519916839f15d
author: angiebird <angiebird@google.com>
date: Fri Nov 22 05:53:09 EST 2019
Make GetCodingFrameNum const function Change-Id: I6a5a2400cfb6e122c77667e0950c80026c48a1f6
--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -279,7 +279,7 @@
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;
--- a/vp9/simple_encode.h
+++ b/vp9/simple_encode.h
@@ -74,7 +74,7 @@
// 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;