| 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> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // Get Enable/Disable OpenMP state. | 84 // Get Enable/Disable OpenMP state. |
| 85 bool GetOpenMpEnable(); | 85 bool GetOpenMpEnable(); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 // Only allow Singleton to create and delete Movie. | 88 // Only allow Singleton to create and delete Movie. |
| 89 friend struct DefaultSingletonTraits<Movie>; | 89 friend struct DefaultSingletonTraits<Movie>; |
| 90 Movie(); | 90 Movie(); |
| 91 virtual ~Movie(); | 91 virtual ~Movie(); |
| 92 | 92 |
| 93 scoped_ptr<PipelineImpl> pipeline_; | 93 scoped_refptr<PipelineImpl> pipeline_; |
| 94 scoped_ptr<base::Thread> thread_; | 94 scoped_ptr<base::Thread> thread_; |
| 95 | 95 |
| 96 bool enable_audio_; | 96 bool enable_audio_; |
| 97 bool enable_swscaler_; | 97 bool enable_swscaler_; |
| 98 bool enable_draw_; | 98 bool enable_draw_; |
| 99 bool enable_dump_yuv_file_; | 99 bool enable_dump_yuv_file_; |
| 100 bool enable_pause_; | 100 bool enable_pause_; |
| 101 bool enable_openmp_; | 101 bool enable_openmp_; |
| 102 int max_threads_; | 102 int max_threads_; |
| 103 float play_rate_; | 103 float play_rate_; |
| 104 HBITMAP movie_dib_; | 104 HBITMAP movie_dib_; |
| 105 HWND movie_hwnd_; | 105 HWND movie_hwnd_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(Movie); | 107 DISALLOW_COPY_AND_ASSIGN(Movie); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace media | 110 } // namespace media |
| 111 | 111 |
| 112 #endif // MEDIA_PLAYER_MOVIE_H_ | 112 #endif // MEDIA_PLAYER_MOVIE_H_ |
| 113 | 113 |
| OLD | NEW |