OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // source code is governed by a BSD-style license that can be found in the | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifdef UNICODE | 5 #ifdef UNICODE |
6 #undef UNICODE | 6 #undef UNICODE |
7 #endif | 7 #endif |
8 | 8 |
9 #include <d3d9.h> | 9 #include <d3d9.h> |
10 #include <dxva2api.h> | 10 #include <dxva2api.h> |
11 #include <evr.h> | 11 #include <evr.h> |
12 #include <mfapi.h> | 12 #include <mfapi.h> |
13 #include <mfreadwrite.h> | 13 #include <mfreadwrite.h> |
14 #include <windows.h> | 14 #include <windows.h> |
15 | 15 |
16 #include "base/at_exit.h" | 16 #include "base/at_exit.h" |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
20 #include "base/message_pump_win.h" | |
21 #include "base/scoped_comptr_win.h" | 20 #include "base/scoped_comptr_win.h" |
22 #include "base/scoped_ptr.h" | 21 #include "base/scoped_ptr.h" |
23 #include "base/time.h" | 22 #include "base/time.h" |
24 #include "gfx/gdi_util.h" | 23 #include "gfx/gdi_util.h" |
25 #include "media/base/yuv_convert.h" | 24 #include "media/base/yuv_convert.h" |
26 #include "media/tools/mfdecoder/mfdecoder.h" | 25 #include "media/tools/mfdecoder/mfdecoder.h" |
27 | 26 |
28 namespace { | 27 namespace { |
29 | 28 |
30 const char* const kWindowClass = "Chrome_MF_Decoder"; | 29 const char* const kWindowClass = "Chrome_MF_Decoder"; |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 MessageLoopForUI::current()->Run(NULL); | 542 MessageLoopForUI::current()->Run(NULL); |
544 | 543 |
545 printf("Decoding finished\n"); | 544 printf("Decoding finished\n"); |
546 base::Time end(base::Time::Now()); | 545 base::Time end(base::Time::Now()); |
547 LOG(INFO) << "Decoding finished at " << end.ToTimeT(); | 546 LOG(INFO) << "Decoding finished at " << end.ToTimeT(); |
548 LOG(INFO) << "Took " << (end-start).InMilliseconds() << "ms"; | 547 LOG(INFO) << "Took " << (end-start).InMilliseconds() << "ms"; |
549 | 548 |
550 printf("Normal termination\n"); | 549 printf("Normal termination\n"); |
551 return 0; | 550 return 0; |
552 } | 551 } |
OLD | NEW |