diff options
author | angiebird <angiebird@google.com> | 2019-11-12 13:52:08 -0800 |
---|---|---|
committer | angiebird <angiebird@google.com> | 2019-11-18 11:37:24 -0800 |
commit | c4f1fe4b221031f7739a13644b9053eb01f65332 (patch) | |
tree | c94c1fa540c7cd2bbf79dba30fb8684009e2860d /vp9/simple_encode.cc | |
parent | 2b97860f971f1f0407595338241714c00c13bae3 (diff) | |
download | libvpx-c4f1fe4b221031f7739a13644b9053eb01f65332.tar libvpx-c4f1fe4b221031f7739a13644b9053eb01f65332.tar.gz libvpx-c4f1fe4b221031f7739a13644b9053eb01f65332.tar.bz2 libvpx-c4f1fe4b221031f7739a13644b9053eb01f65332.zip |
Add SimpleEncode::EncodeFrameWithQuantizeIndex()
Change-Id: I4442de01dfdbf13b0b9f7830f0fb393d3b935522
Diffstat (limited to 'vp9/simple_encode.cc')
-rw-r--r-- | vp9/simple_encode.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vp9/simple_encode.cc b/vp9/simple_encode.cc index 018d50a1e..38f87fc3a 100644 --- a/vp9/simple_encode.cc +++ b/vp9/simple_encode.cc @@ -254,6 +254,14 @@ void SimpleEncode::EncodeFrame(EncodeFrameResult *encode_frame_result) { update_encode_frame_result(encode_frame_result, &encode_frame_info); } +void SimpleEncode::EncodeFrameWithQuantizeIndex( + EncodeFrameResult *encode_frame_result, int quantize_index) { + encode_command_set_external_quantize_index(&pimpl->cpi->encode_command, + quantize_index); + EncodeFrame(encode_frame_result); + encode_command_reset_external_quantize_index(&pimpl->cpi->encode_command); +} + int SimpleEncode::GetCodingFrameNum() { assert(pimpl->first_pass_stats.size() - 1 > 0); // These are the default settings for now. |