| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Movie class for WTL forms to call to control the media pipeline. | 5 // Movie class for WTL forms to call to control the media pipeline. |
| 6 | 6 |
| 7 #ifndef MEDIA_PLAYER_MOVIE_H_ | 7 #ifndef MEDIA_PLAYER_MOVIE_H_ |
| 8 #define MEDIA_PLAYER_MOVIE_H_ | 8 #define MEDIA_PLAYER_MOVIE_H_ |
| 9 | 9 |
| 10 #include <tchar.h> | 10 #include <tchar.h> |
| 11 | 11 |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/singleton.h" | 13 #include "base/singleton.h" |
| 14 #include "base/thread.h" |
| 14 | 15 |
| 15 class WtlVideoRenderer; | 16 class WtlVideoRenderer; |
| 16 | 17 |
| 17 namespace media { | 18 namespace media { |
| 18 | 19 |
| 19 class PipelineImpl; | 20 class PipelineImpl; |
| 20 | 21 |
| 21 class Movie : public Singleton<Movie> { | 22 class Movie : public Singleton<Movie> { |
| 22 public: | 23 public: |
| 23 // Open a movie. | 24 // Open a movie. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // Get Enable/Disable OpenMP state. | 84 // Get Enable/Disable OpenMP state. |
| 84 bool GetOpenMpEnable(); | 85 bool GetOpenMpEnable(); |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 // Only allow Singleton to create and delete Movie. | 88 // Only allow Singleton to create and delete Movie. |
| 88 friend struct DefaultSingletonTraits<Movie>; | 89 friend struct DefaultSingletonTraits<Movie>; |
| 89 Movie(); | 90 Movie(); |
| 90 virtual ~Movie(); | 91 virtual ~Movie(); |
| 91 | 92 |
| 92 scoped_ptr<PipelineImpl> pipeline_; | 93 scoped_ptr<PipelineImpl> pipeline_; |
| 94 scoped_ptr<base::Thread> thread_; |
| 93 | 95 |
| 94 bool enable_audio_; | 96 bool enable_audio_; |
| 95 bool enable_swscaler_; | 97 bool enable_swscaler_; |
| 96 bool enable_draw_; | 98 bool enable_draw_; |
| 97 bool enable_dump_yuv_file_; | 99 bool enable_dump_yuv_file_; |
| 98 bool enable_pause_; | 100 bool enable_pause_; |
| 99 bool enable_openmp_; | 101 bool enable_openmp_; |
| 100 int max_threads_; | 102 int max_threads_; |
| 101 float play_rate_; | 103 float play_rate_; |
| 102 HBITMAP movie_dib_; | 104 HBITMAP movie_dib_; |
| 103 HWND movie_hwnd_; | 105 HWND movie_hwnd_; |
| 104 | 106 |
| 105 DISALLOW_COPY_AND_ASSIGN(Movie); | 107 DISALLOW_COPY_AND_ASSIGN(Movie); |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // namespace media | 110 } // namespace media |
| 109 | 111 |
| 110 #endif // MEDIA_PLAYER_MOVIE_H_ | 112 #endif // MEDIA_PLAYER_MOVIE_H_ |
| 111 | 113 |
| OLD | NEW |