Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Issue 1602523004: Added EncodedImage::GetBufferPaddingBytes. (Closed)

Created:
4 years, 11 months ago by hbos
Modified:
4 years, 11 months ago
Reviewers:
stefan-webrtc, mflodman
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added EncodedImage::GetBufferPaddingBytes. The FFmpeg video decoder requires up to 8 additional bytes to be allocated for its encoded image buffer input, due to optimized byte readers over-reading on some platforms. We plan to use FFmpeg for a soon-to-land H.264 enc/dec. This CL adds support for padding encoded image buffers based on codec type, and makes sure calls to VCMEncodedFrame::VerifyAndAllocate use the padding. All padding constants are 0 but making H.264 pad with 8 bytes will be a one-line change. Also, added -framework CoreFoundation to webrtc_h264_video_toolbox which was missing. BUG=chromium:468365 BUG=https://bugs.chromium.org/p/webrtc/issues/detail?id=5424 NOTRY=True Committed: https://crrev.com/d664836efa2f51edc6d7e277f007d47ae97ba7ff Cr-Commit-Position: refs/heads/master@{#11337}

Patch Set 1 : 8 additional bytes regardless of codec, for testing #

Patch Set 2 : 0 additional bytes, make ios compile #

Total comments: 9

Patch Set 3 : Moved constant, reverted dependency, function name indicating unit is bytes #

Total comments: 1

Patch Set 4 : Constant inside EncodedImage instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -3 lines) Patch
M webrtc/common_video/video_frame.cc View 1 2 3 2 chunks +22 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/video_coding/encoded_frame.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/frame_buffer.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/video_frame.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
hbos
Please take a look, stefan and mflodman. https://codereview.webrtc.org/1602523004/diff/40001/webrtc/video_frame.h File webrtc/video_frame.h (right): https://codereview.webrtc.org/1602523004/diff/40001/webrtc/video_frame.h#newcode178 webrtc/video_frame.h:178: static size_t ...
4 years, 11 months ago (2016-01-19 14:22:18 UTC) #6
stefan-webrtc
On 2016/01/19 14:22:18, hbos wrote: > Please take a look, stefan and mflodman. > > ...
4 years, 11 months ago (2016-01-19 15:02:25 UTC) #7
stefan-webrtc
We also talked about DCHECKing in the decoder to make sure there actually is exactly ...
4 years, 11 months ago (2016-01-19 15:06:20 UTC) #8
hbos
PTAL stefan (and mflodman), replied to comments. On 2016/01/19 15:06:20, stefan-webrtc (holmer) wrote: > We ...
4 years, 11 months ago (2016-01-19 16:50:34 UTC) #11
hbos
Bump stefan, mflodman
4 years, 11 months ago (2016-01-21 10:16:53 UTC) #12
stefan-webrtc
lgtm from me but I'd like to get Magnus opinion on the dependencies https://codereview.webrtc.org/1602523004/diff/40001/webrtc/common_video/common_video.gyp File ...
4 years, 11 months ago (2016-01-21 10:34:48 UTC) #13
hbos
https://codereview.webrtc.org/1602523004/diff/40001/webrtc/modules/video_coding/codecs/h264/h264.cc File webrtc/modules/video_coding/codecs/h264/h264.cc (right): https://codereview.webrtc.org/1602523004/diff/40001/webrtc/modules/video_coding/codecs/h264/h264.cc#newcode24 webrtc/modules/video_coding/codecs/h264/h264.cc:24: // when the FFmpeg decoder is added. On 2016/01/21 ...
4 years, 11 months ago (2016-01-21 11:17:26 UTC) #14
mflodman
https://codereview.webrtc.org/1602523004/diff/40001/webrtc/common_video/common_video.gyp File webrtc/common_video/common_video.gyp (right): https://codereview.webrtc.org/1602523004/diff/40001/webrtc/common_video/common_video.gyp#newcode23 webrtc/common_video/common_video.gyp:23: '<(webrtc_root)/modules/modules.gyp:webrtc_h264', On 2016/01/21 10:34:47, stefan-webrtc (holmer) wrote: > Not ...
4 years, 11 months ago (2016-01-21 11:19:09 UTC) #15
hbos
PTAL mflodman
4 years, 11 months ago (2016-01-21 12:38:55 UTC) #18
mflodman
One minot comment, then LGTM. https://codereview.webrtc.org/1602523004/diff/80001/webrtc/video_frame.h File webrtc/video_frame.h (right): https://codereview.webrtc.org/1602523004/diff/80001/webrtc/video_frame.h#newcode22 webrtc/video_frame.h:22: extern const size_t kEncodedImagePaddingH264; ...
4 years, 11 months ago (2016-01-21 13:02:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1602523004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1602523004/100001
4 years, 11 months ago (2016-01-21 13:40:27 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 11 months ago (2016-01-21 13:43:16 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-21 13:43:24 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d664836efa2f51edc6d7e277f007d47ae97ba7ff
Cr-Commit-Position: refs/heads/master@{#11337}

Powered by Google App Engine
This is Rietveld 408576698