Delete deprecated H264BitstreamParser methods
Bug: webrtc:10439 Change-Id: I1513907f03f9adfcf5657298e69d60519af764ef Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/198121 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32934}
This commit is contained in:
@ -294,13 +294,9 @@ int32_t H264DecoderImpl::Decode(const EncodedImage& input_image,
|
||||
// the input one.
|
||||
RTC_DCHECK_EQ(av_frame_->reordered_opaque, frame_timestamp_us);
|
||||
|
||||
absl::optional<uint8_t> qp;
|
||||
// TODO(sakal): Maybe it is possible to get QP directly from FFmpeg.
|
||||
h264_bitstream_parser_.ParseBitstream(input_image.data(), input_image.size());
|
||||
int qp_int;
|
||||
if (h264_bitstream_parser_.GetLastSliceQp(&qp_int)) {
|
||||
qp.emplace(qp_int);
|
||||
}
|
||||
h264_bitstream_parser_.ParseBitstream(input_image);
|
||||
absl::optional<int> qp = h264_bitstream_parser_.GetLastSliceQp();
|
||||
|
||||
// Obtain the |video_frame| containing the decoded image.
|
||||
VideoFrame* input_frame =
|
||||
|
@ -481,9 +481,9 @@ int32_t H264EncoderImpl::Encode(
|
||||
// |encoded_images_[i]._length| == 0.
|
||||
if (encoded_images_[i].size() > 0) {
|
||||
// Parse QP.
|
||||
h264_bitstream_parser_.ParseBitstream(encoded_images_[i].data(),
|
||||
encoded_images_[i].size());
|
||||
h264_bitstream_parser_.GetLastSliceQp(&encoded_images_[i].qp_);
|
||||
h264_bitstream_parser_.ParseBitstream(encoded_images_[i]);
|
||||
encoded_images_[i].qp_ =
|
||||
h264_bitstream_parser_.GetLastSliceQp().value_or(-1);
|
||||
|
||||
// Deliver encoded image.
|
||||
CodecSpecificInfo codec_specific;
|
||||
|
Reference in New Issue
Block a user