Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chromecast/media/cma/backend/media_pipeline_device_params.h

Issue 823283004: Chromecast: replaces CMA synchronization flag with finer-grained enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates MediaPipelineHost Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace chromecast { 10 namespace chromecast {
11 namespace media { 11 namespace media {
12 12
13 class MediaPipelineDeviceParams { 13 class MediaPipelineDeviceParams {
14 public: 14 public:
15 enum MediaSyncType {
16 // Default operation, synchronize playback using PTS with higher latency.
17 kModeSyncPts = 0,
18 // With this mode, synchronization is disabled and audio/video frames are
19 // rendered "right away":
20 // - for audio, frames are still rendered based on the sampling frequency
21 // - for video, frames are rendered as soon as available at the output of
22 // the video decoder.
23 // The assumption is that no B frames are used when synchronization is
24 // disabled, otherwise B frames would always be skipped.
25 kModeIgnorePts = 1,
26 // In addition to the constraints above, also do not wait for vsync.
27 kModeIgnorePtsAndVSync = 2,
28 };
29
15 MediaPipelineDeviceParams(); 30 MediaPipelineDeviceParams();
16 ~MediaPipelineDeviceParams(); 31 ~MediaPipelineDeviceParams();
17 32
18 // When set to true, synchronization is disabled and audio/video frames are 33 MediaSyncType sync_type;
19 // rendered "right away":
20 // - for audio, frames are still rendered based on the sampling frequency
21 // - for video, frames are rendered as soon as available at the output of
22 // the video decoder.
23 // The assumption is that no B frames are used when synchronization is
24 // disabled, otherwise B frames would always be skipped.
25 bool disable_synchronization;
26 }; 34 };
27 35
28 } // namespace media 36 } // namespace media
29 } // namespace chromecast 37 } // namespace chromecast
30 38
31 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_ 39 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_PARAMS_H_
OLDNEW
« no previous file with comments | « chromecast/browser/media/media_pipeline_host.cc ('k') | chromecast/media/cma/backend/media_pipeline_device_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698