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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/backend/media_pipeline_device_params.h
diff --git a/chromecast/media/cma/backend/media_pipeline_device_params.h b/chromecast/media/cma/backend/media_pipeline_device_params.h
index 9bf9c044f165e39674ee7b106e6561f31ded5236..d13e4e3a188b948829e4886b96f1e0d7c2baba6c 100644
--- a/chromecast/media/cma/backend/media_pipeline_device_params.h
+++ b/chromecast/media/cma/backend/media_pipeline_device_params.h
@@ -12,17 +12,25 @@ namespace media {
class MediaPipelineDeviceParams {
public:
+ enum MediaSyncType {
+ // Default operation, synchronize playback using PTS with higher latency.
+ kModeSyncPts = 0,
+ // With this mode, synchronization is disabled and audio/video frames are
+ // rendered "right away":
+ // - for audio, frames are still rendered based on the sampling frequency
+ // - for video, frames are rendered as soon as available at the output of
+ // the video decoder.
+ // The assumption is that no B frames are used when synchronization is
+ // disabled, otherwise B frames would always be skipped.
+ kModeIgnorePts = 1,
+ // In addition to the constraints above, also do not wait for vsync.
+ kModeIgnorePtsAndVSync = 2,
+ };
+
MediaPipelineDeviceParams();
~MediaPipelineDeviceParams();
- // When set to true, synchronization is disabled and audio/video frames are
- // rendered "right away":
- // - for audio, frames are still rendered based on the sampling frequency
- // - for video, frames are rendered as soon as available at the output of
- // the video decoder.
- // The assumption is that no B frames are used when synchronization is
- // disabled, otherwise B frames would always be skipped.
- bool disable_synchronization;
+ MediaSyncType sync_type;
};
} // namespace media
« 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