| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_DEVICE_PARAMS_H_ | 5 #ifndef CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_DEVICE_PARAMS_H_ |
| 6 #define CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_DEVICE_PARAMS_H_ | 6 #define CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_DEVICE_PARAMS_H_ |
| 7 | 7 |
| 8 #include "task_runner.h" | 8 namespace chromecast { |
| 9 class TaskRunner; |
| 9 | 10 |
| 10 namespace chromecast { | |
| 11 namespace media { | 11 namespace media { |
| 12 | 12 |
| 13 // Supplies creation parameters to platform-specific pipeline backend. | 13 // Supplies creation parameters to platform-specific pipeline backend. |
| 14 struct MediaPipelineDeviceParams { | 14 struct MediaPipelineDeviceParams { |
| 15 enum MediaSyncType { | 15 enum MediaSyncType { |
| 16 // Default operation, synchronize playback using PTS with higher latency. | 16 // Default operation, synchronize playback using PTS with higher latency. |
| 17 kModeSyncPts = 0, | 17 kModeSyncPts = 0, |
| 18 // With this mode, synchronization is disabled and audio/video frames are | 18 // With this mode, synchronization is disabled and audio/video frames are |
| 19 // rendered "right away": | 19 // rendered "right away": |
| 20 // - for audio, frames are still rendered based on the sampling frequency | 20 // - for audio, frames are still rendered based on the sampling frequency |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 // thread. Since all calls from cast_shell into the backend are made on | 40 // thread. Since all calls from cast_shell into the backend are made on |
| 41 // the media thread, this may simplify thread management and safety for | 41 // the media thread, this may simplify thread management and safety for |
| 42 // some backends. | 42 // some backends. |
| 43 TaskRunner* const task_runner; | 43 TaskRunner* const task_runner; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace media | 46 } // namespace media |
| 47 } // namespace chromecast | 47 } // namespace chromecast |
| 48 | 48 |
| 49 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_ | 49 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_ |
| OLD | NEW |