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

Issue 10837058: Make H264BitReader ignore trailing zero bytes and stop bit. (Closed)

Created:
8 years, 4 months ago by xiaomings
Modified:
7 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Make H264BitReader ignore trailing zero bytes and stop bit. Also make H264BitReader be able to read more than 16 bits in one go. This can be verified by H264BitReaderTest::ReadStreamWithoutEscapeAndTrailingZeroBytes. TEST=H264BitReaderTest

Patch Set 1 #

Patch Set 2 : Fix up comments. #

Total comments: 12

Patch Set 3 : Address CR comments. #

Total comments: 8

Patch Set 4 : Address CR comments. #

Patch Set 5 : Fix up comment. #

Total comments: 2

Patch Set 6 : Address CR comment. #

Total comments: 2

Patch Set 7 : Add back tests after merge from master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -48 lines) Patch
M content/common/gpu/media/h264_bit_reader.h View 1 2 3 4 5 3 chunks +26 lines, -10 lines 0 comments Download
M content/common/gpu/media/h264_bit_reader.cc View 1 2 3 4 3 chunks +58 lines, -27 lines 0 comments Download
M content/common/gpu/media/h264_bit_reader_unittest.cc View 1 2 3 4 5 6 3 chunks +70 lines, -9 lines 0 comments Download
M content/common/gpu/media/h264_parser.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
xiaomings
Make H264BitReader ignore trailing zero bytes/bits and the stop bit. For example, for a h264 ...
8 years, 4 months ago (2012-08-01 22:40:02 UTC) #1
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10837058/diff/4001/content/common/gpu/media/h264_bit_reader.cc File content/common/gpu/media/h264_bit_reader.cc (right): https://chromiumcodereview.appspot.com/10837058/diff/4001/content/common/gpu/media/h264_bit_reader.cc#newcode13 content/common/gpu/media/h264_bit_reader.cc:13: trailing_zero_bytes_(0), data_bits_in_last_byte_(0) { data_bits_in_last_byte_(0) violates the member comment in ...
8 years, 4 months ago (2012-08-01 23:04:00 UTC) #2
xiaomings
Addressed Ami's comments. See reply inline for details. https://chromiumcodereview.appspot.com/10837058/diff/4001/content/common/gpu/media/h264_bit_reader.cc File content/common/gpu/media/h264_bit_reader.cc (right): https://chromiumcodereview.appspot.com/10837058/diff/4001/content/common/gpu/media/h264_bit_reader.cc#newcode13 content/common/gpu/media/h264_bit_reader.cc:13: trailing_zero_bytes_(0), ...
8 years, 4 months ago (2012-08-01 23:39:54 UTC) #3
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10837058/diff/4002/content/common/gpu/media/h264_bit_reader.cc File content/common/gpu/media/h264_bit_reader.cc (right): https://chromiumcodereview.appspot.com/10837058/diff/4002/content/common/gpu/media/h264_bit_reader.cc#newcode71 content/common/gpu/media/h264_bit_reader.cc:71: *out |= (curr_byte_ << (bits_left - num_remaining_bits_in_curr_byte_)); I think ...
8 years, 4 months ago (2012-08-02 19:49:48 UTC) #4
xiaomings
Address CR comments. https://chromiumcodereview.appspot.com/10837058/diff/4002/content/common/gpu/media/h264_bit_reader.cc File content/common/gpu/media/h264_bit_reader.cc (right): https://chromiumcodereview.appspot.com/10837058/diff/4002/content/common/gpu/media/h264_bit_reader.cc#newcode71 content/common/gpu/media/h264_bit_reader.cc:71: *out |= (curr_byte_ << (bits_left - ...
8 years, 4 months ago (2012-08-03 00:37:58 UTC) #5
Ami GONE FROM CHROMIUM
LGTM % posciak review https://chromiumcodereview.appspot.com/10837058/diff/11002/content/common/gpu/media/h264_bit_reader.h File content/common/gpu/media/h264_bit_reader.h (right): https://chromiumcodereview.appspot.com/10837058/diff/11002/content/common/gpu/media/h264_bit_reader.h#newcode46 content/common/gpu/media/h264_bit_reader.h:46: // stop bit and any ...
8 years, 4 months ago (2012-08-03 05:01:32 UTC) #6
xiaomings
Address CR comment. https://chromiumcodereview.appspot.com/10837058/diff/11002/content/common/gpu/media/h264_bit_reader.h File content/common/gpu/media/h264_bit_reader.h (right): https://chromiumcodereview.appspot.com/10837058/diff/11002/content/common/gpu/media/h264_bit_reader.h#newcode46 content/common/gpu/media/h264_bit_reader.h:46: // stop bit and any trailing ...
8 years, 4 months ago (2012-08-03 18:25:55 UTC) #7
Pawel Osciak
lgtm % comments that don't have to be addressed atm. https://chromiumcodereview.appspot.com/10837058/diff/4004/content/common/gpu/media/h264_bit_reader.cc File content/common/gpu/media/h264_bit_reader.cc (right): https://chromiumcodereview.appspot.com/10837058/diff/4004/content/common/gpu/media/h264_bit_reader.cc#newcode88 ...
8 years, 4 months ago (2012-08-10 17:25:12 UTC) #8
Ami GONE FROM CHROMIUM
Time to close this CL?
7 years, 1 month ago (2013-10-31 21:33:13 UTC) #9
xiaomings
7 years, 1 month ago (2013-10-31 21:41:29 UTC) #10
On 2013/10/31 21:33:13, Ami Fischman wrote:
> Time to close this CL?

Yes, if we are not going to commit this.

Powered by Google App Engine
This is Rietveld 408576698