webrtc/modules/video_coding/utility
Sergey Silkin d6afbead2d Correctly set number of reference buffers in H264 encoder
iNumRefFrame specifies total number of reference buffers to allocate.
For N temporal layers we need at least (N - 1) buffers to store last
encoded frames of all reference temporal layers.

There is no API in OpenH254 encoder to specify exact set of references
to be used to prediction of a given frame. Encoder can theoretically
use all available references.

Note that there is logic in OpenH264 which overrides iNumRefFrame to
max(iNumRefFrame, N - 1): https://source.chromium.org/chromium/chromium/src/+/main:third_party/openh264/src/codec/encoder/core/src/au_set.cpp;drc=8e90a2775c5b9448324fe8fef11d177cb65f36cc;l=122.
I.e., this change has no real effect. It only makes setup more clear.

Bug: none
Change-Id: If4b4970007e1cc55d8f052ea05213ab2e89a878f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/225480
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34445}
2021-07-09 13:49:41 +00:00
..
decoded_frames_history.cc Prepare to replace VideoLayerFrameId with int64_t. 2021-02-15 14:42:02 +00:00
decoded_frames_history.h Prepare to replace VideoLayerFrameId with int64_t. 2021-02-15 14:42:02 +00:00
decoded_frames_history_unittest.cc Prepare to replace VideoLayerFrameId with int64_t. 2021-02-15 14:42:02 +00:00
frame_dropper.cc Remove unused MockFrameDropper and make FrameDropper non-virtual. 2018-09-03 14:19:17 +00:00
frame_dropper.h Fix a comment in FrameDropper 2021-07-06 14:06:20 +00:00
frame_dropper_unittest.cc [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
framerate_controller.cc Format almost everything. 2019-07-08 13:45:15 +00:00
framerate_controller.h [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
framerate_controller_unittest.cc [Cleanup] Add missing #include. Remove useless ones. IWYU part 2. 2018-11-28 18:25:07 +00:00
ivf_file_reader.cc IvfFileReader: Fix SpatialIndex values 2021-01-25 13:11:45 +00:00
ivf_file_reader.h Removed unused include from encoded_image.h. 2020-07-17 14:14:03 +00:00
ivf_file_reader_unittest.cc IvfFileReader: Fix SpatialIndex values 2021-01-25 13:11:45 +00:00
ivf_file_writer.cc Add AV1 support to IVF reader and writer 2020-08-26 11:12:32 +00:00
ivf_file_writer.h Removed unused include from encoded_image.h. 2020-07-17 14:14:03 +00:00
ivf_file_writer_unittest.cc Add AV1 support to IVF reader and writer 2020-08-26 11:12:32 +00:00
qp_parser.cc Reland "Parse encoded frame QP if not provided by encoder" 2021-03-15 10:11:22 +00:00
qp_parser.h Reland "Parse encoded frame QP if not provided by encoder" 2021-03-15 10:11:22 +00:00
qp_parser_unittest.cc Reland "Parse encoded frame QP if not provided by encoder" 2021-03-15 10:11:22 +00:00
quality_scaler.cc Adding field trials to control additional quality scaler settings 2020-09-15 08:58:36 +00:00
quality_scaler.h Use SequenceChecker from public API 2021-02-10 15:04:55 +00:00
quality_scaler_unittest.cc Reland "Enable Video-QualityScaling experiment by default" 2021-02-05 09:49:13 +00:00
simulcast_rate_allocator.cc Don't do legacy conference mode temporal layer allocation on non-screenshare 2020-08-19 13:39:42 +00:00
simulcast_rate_allocator.h Reland "Only enable conference mode simulcast allocations with flag enabled" 2020-08-04 10:30:08 +00:00
simulcast_rate_allocator_unittest.cc Changes default pacing factor to 1.1x 2020-10-23 13:43:32 +00:00
simulcast_test_fixture_impl.cc Correctly set number of reference buffers in H264 encoder 2021-07-09 13:49:41 +00:00
simulcast_test_fixture_impl.h Ensure FakeVp8Encoder::GetEncoderInfo() writes EncoderInfo.fps_allocation: 2020-09-29 19:29:29 +00:00
simulcast_utility.cc Reland "Only enable conference mode simulcast allocations with flag enabled" 2020-08-04 10:30:08 +00:00
simulcast_utility.h Fix vp8 simulcast screenshare and perf tests for it 2019-02-27 09:59:12 +00:00
vp8_header_parser.cc Clean VP8 header parser 2020-03-02 15:05:48 +00:00
vp8_header_parser.h Clean VP8 header parser 2020-03-02 15:05:48 +00:00
vp9_uncompressed_header_parser.cc VP9 parser: undo r34393 and fix incorrect return statement. 2021-07-06 14:39:57 +00:00
vp9_uncompressed_header_parser.h Refactors Vp9UncompressedHeaderParser. 2021-04-19 16:46:48 +00:00
vp9_uncompressed_header_parser_unittest.cc VP9 parser: undo r34393 and fix incorrect return statement. 2021-07-06 14:39:57 +00:00