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

Issue 8052002: Fix support for yuv_422 pixel format. (Closed)

Created:
9 years, 2 months ago by shadi
Modified:
9 years, 2 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing)
Visibility:
Public.

Description

Fix support for yuv_422 pixel format. Added pix_fmt field to the VideoDecoderConfig class. The pixel format is passed to the codec_context_ and used to correctly initialize VideoFrames. BUG=95642 TEST=

Patch Set 1 #

Patch Set 2 : Fixed lint errors. #

Total comments: 18

Patch Set 3 : Updated Andrew's comments. #

Patch Set 4 : (minor change) #

Total comments: 1

Patch Set 5 : fixed comments. #

Patch Set 6 : Fixed existing unit tests. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -30 lines) Patch
M media/base/video_decoder_config.h View 1 2 4 chunks +8 lines, -1 line 0 comments Download
M media/base/video_decoder_config.cc View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 2 chunks +14 lines, -12 lines 1 comment Download
M media/ffmpeg/ffmpeg_common.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine.cc View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M media/video/ffmpeg_video_decode_engine_unittest.cc View 1 2 3 4 5 3 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
shadi
Hi Andrew, Here is the CL for fixing the yuv422 (YV16) color format bug. Can ...
9 years, 2 months ago (2011-09-27 18:52:46 UTC) #1
scherkus (not reviewing)
looking pretty good! http://codereview.chromium.org/8052002/diff/2002/media/base/video_decoder_config.h File media/base/video_decoder_config.h (right): http://codereview.chromium.org/8052002/diff/2002/media/base/video_decoder_config.h#newcode10 media/base/video_decoder_config.h:10: #include "libavutil/pixfmt.h" in order to prevent ...
9 years, 2 months ago (2011-09-28 17:32:17 UTC) #2
scherkus (not reviewing)
also... how are we testing this? we can either rely on a layout test getting ...
9 years, 2 months ago (2011-09-28 17:33:59 UTC) #3
shadi1
Hi Andrew, I updated the comments you sent me. Can you please take a look? ...
9 years, 2 months ago (2011-09-29 18:31:03 UTC) #4
scherkus (not reviewing)
LGTM w/ one indentation nit also -- what's our testing plan? layout tests? http://codereview.chromium.org/8052002/diff/14001/media/ffmpeg/ffmpeg_common.cc File ...
9 years, 2 months ago (2011-09-29 20:48:05 UTC) #5
shadi1
I submitted two layout tests, one for yuv422 and another for yuv420. On Thu, Sep ...
9 years, 2 months ago (2011-09-30 00:29:35 UTC) #6
scherkus (not reviewing)
Committed as r103961.
9 years, 2 months ago (2011-10-04 19:30:35 UTC) #7
fbarchard
9 years, 2 months ago (2011-10-05 01:38:46 UTC) #8
http://codereview.chromium.org/8052002/diff/18001/media/base/video_frame.cc
File media/base/video_frame.cc (left):

http://codereview.chromium.org/8052002/diff/18001/media/base/video_frame.cc#o...
media/base/video_frame.cc:132: strides_[VideoFrame::kYPlane] = y_bytes_per_row;
FYI I'd suggest using 'stride' terminology consistently, which we still do for
uv_stride.  stride indicates that it is how much we advance after each row,
which can be negative, and/or allows cropping.

Powered by Google App Engine
This is Rietveld 408576698