H264 encoder: Include QP information in encoded images

Set the |qp_| field in EncodedImage before calling OnEncodedImage.

BUG=webrtc:6541

Review-Url: https://codereview.webrtc.org/2499003002
Cr-Commit-Position: refs/heads/master@{#15199}
This commit is contained in:
magjed
2016-11-22 08:42:06 -08:00
committed by Commit bot
parent e60f020456
commit 2d60e53ad5
3 changed files with 11 additions and 7 deletions

View File

@ -1145,6 +1145,7 @@ bool MediaCodecVideoEncoder::DeliverPendingOutputs(JNIEnv* jni) {
if (h264_bitstream_parser_.GetLastSliceQp(&qp)) {
current_acc_qp_ += qp;
quality_scaler_.ReportQP(qp);
image->qp_ = qp;
}
}
// For H.264 search for start codes.