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

Issue 3156046: Changed mft_h264_decoder's API to match with video_decode_engine.h. Also chan... (Closed)

Created:
10 years, 4 months ago by imcheng
Modified:
9 years, 7 months ago
Reviewers:
Alpha Left Google
CC:
chromium-reviews, Alpha Left Google, scherkus (not reviewing), fbarchard, awong, Paweł Hajdan Jr.
Visibility:
Public.

Description

Changed mft_h264_decoder's API to match with video_decode_engine.h. Also changed the example and unittests. Implementation of mft_h264_decoder.cc is similar to ffmpeg_video_decode_engine.cc. For now, a d3d surface output from the decoder is converted from NV12 to YV12 and stored in regular memory. So rendering with --enable-dxva is a bit slower for now. Once we figure out how to connect with ANGLE, we won't need the conversion / transfer. basic_renderer.* is now replaced with a simpler implementation of EventHandler inside the example code. d3d_util.* is also removed because d3d9 initialization is now moved inside the initialization of the decoder and it is the only place where it is used. BUG=none TEST=included in this patch Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57261

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1008 lines, -1296 lines) Patch
M media/filters/video_decode_engine.h View 2 chunks +2 lines, -1 line 1 comment Download
M media/media.gyp View 2 chunks +0 lines, -6 lines 0 comments Download
D media/mf/basic_renderer.h View 1 chunk +0 lines, -60 lines 0 comments Download
D media/mf/basic_renderer.cc View 1 chunk +0 lines, -220 lines 0 comments Download
D media/mf/d3d_util.h View 1 chunk +0 lines, -34 lines 0 comments Download
D media/mf/d3d_util.cc View 1 chunk +0 lines, -89 lines 0 comments Download
M media/mf/mft_h264_decoder.h View 1 chunk +57 lines, -107 lines 0 comments Download
M media/mf/mft_h264_decoder.cc View 6 chunks +461 lines, -419 lines 4 comments Download
M media/mf/mft_h264_decoder_example.cc View 7 chunks +187 lines, -92 lines 0 comments Download
M media/mf/test/mft_h264_decoder_unittest.cc View 4 chunks +301 lines, -266 lines 0 comments Download
M media/mf/test/run_all_unittests.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
imcheng
Please review. Sorry for changing a lot of things. Thanks.
10 years, 4 months ago (2010-08-23 20:58:34 UTC) #1
Alpha Left Google
LGTM with a few questions. http://codereview.chromium.org/3156046/diff/1/2 File media/filters/video_decode_engine.h (right): http://codereview.chromium.org/3156046/diff/1/2#newcode75 media/filters/video_decode_engine.h:75: virtual ~EventHandler() {} good ...
10 years, 4 months ago (2010-08-24 23:03:33 UTC) #2
imcheng
http://codereview.chromium.org/3156046/diff/1/8 File media/mf/mft_h264_decoder.cc (right): http://codereview.chromium.org/3156046/diff/1/8#newcode21 media/mf/mft_h264_decoder.cc:21: #pragma comment(lib, "delayimp") On 2010/08/24 23:03:33, Alpha wrote: > ...
10 years, 4 months ago (2010-08-24 23:40:50 UTC) #3
hclam
According to MSDN this lib is for data flow in the graph: http://msdn.microsoft.com/en-us/library/dd390170(VS.85).aspx Can the ...
10 years, 4 months ago (2010-08-25 04:39:53 UTC) #4
imcheng
10 years, 4 months ago (2010-08-25 17:15:55 UTC) #5
I did some investigation and it seems that it is possible to not have
strmiids.lib, but only if evr.h (where MR_BUFFER_SERVICE is defined) comes after
mfapi.h (where MF_BUFFER_SERVICE is declared). Odd. I will make a separate patch
to remove the lib.

Powered by Google App Engine
This is Rietveld 408576698