| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_PLAYER_VIEW_H_ | 5 #ifndef MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ |
| 6 #define MEDIA_PLAYER_VIEW_H_ | 6 #define MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <process.h> | 9 #include <process.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| 11 | 11 |
| 12 #include "media/base/buffers.h" | 12 #include "media/base/buffers.h" |
| 13 #include "media/base/yuv_convert.h" | 13 #include "media/base/yuv_convert.h" |
| 14 #include "media/player/movie.h" | 14 #include "media/tools/player_wtl/movie.h" |
| 15 #include "media/player/player_wtl.h" | 15 #include "media/tools/player_wtl/player_wtl.h" |
| 16 #include "media/player/wtl_renderer.h" | 16 #include "media/tools/player_wtl/wtl_renderer.h" |
| 17 | 17 |
| 18 // Fetchs current time as milliseconds. | 18 // Fetchs current time as milliseconds. |
| 19 // Returns as double for high duration and precision. | 19 // Returns as double for high duration and precision. |
| 20 inline double GetTime() { | 20 inline double GetTime() { |
| 21 LARGE_INTEGER perf_time, perf_hz; | 21 LARGE_INTEGER perf_time, perf_hz; |
| 22 QueryPerformanceFrequency(&perf_hz); // May change with speed step. | 22 QueryPerformanceFrequency(&perf_hz); // May change with speed step. |
| 23 QueryPerformanceCounter(&perf_time); | 23 QueryPerformanceCounter(&perf_time); |
| 24 return perf_time.QuadPart * 1000.0 / perf_hz.QuadPart; // Convert to ms. | 24 return perf_time.QuadPart * 1000.0 / perf_hz.QuadPart; // Convert to ms. |
| 25 } | 25 } |
| 26 | 26 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 #endif | 410 #endif |
| 411 } | 411 } |
| 412 } | 412 } |
| 413 | 413 |
| 414 media::VideoFrame* last_frame_; | 414 media::VideoFrame* last_frame_; |
| 415 base::TimeDelta last_timestamp_; | 415 base::TimeDelta last_timestamp_; |
| 416 | 416 |
| 417 DISALLOW_COPY_AND_ASSIGN(WtlVideoWindow); | 417 DISALLOW_COPY_AND_ASSIGN(WtlVideoWindow); |
| 418 }; | 418 }; |
| 419 | 419 |
| 420 #endif // MEDIA_PLAYER_VIEW_H_ | 420 #endif // MEDIA_TOOLS_PLAYER_WTL_VIEW_H_ |
| OLD | NEW |