From c4f1fe4b221031f7739a13644b9053eb01f65332 Mon Sep 17 00:00:00 2001 From: angiebird Date: Tue, 12 Nov 2019 13:52:08 -0800 Subject: Add SimpleEncode::EncodeFrameWithQuantizeIndex() Change-Id: I4442de01dfdbf13b0b9f7830f0fb393d3b935522 --- vp9/simple_encode.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vp9/simple_encode.cc') 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. -- cgit v1.2.3