summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoricoolidge <icoolidge@chromium.org>2015-11-16 13:59:17 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-16 22:00:55 +0000
commite398a935055cdb419d4d118fb0e3fd0eef82f6b8 (patch)
treedcdd4c6201f04daaf946ca85051398a00e42ee30
parent51eeb08d74b5c60ddd21205d5f3841cd70fe528b (diff)
downloadchromium_src-e398a935055cdb419d4d118fb0e3fd0eef82f6b8.zip
chromium_src-e398a935055cdb419d4d118fb0e3fd0eef82f6b8.tar.gz
chromium_src-e398a935055cdb419d4d118fb0e3fd0eef82f6b8.tar.bz2
[Chromecast] Add frequency offset to MediaPipelineBackend.
BUG= internal b/25460758 Review URL: https://codereview.chromium.org/1434403003 Cr-Commit-Position: refs/heads/master@{#359934}
-rw-r--r--chromecast/media/base/cast_media_default.cc19
-rw-r--r--chromecast/media/base/cast_media_dummy.cc19
-rw-r--r--chromecast/public/cast_media_shlib.h15
3 files changed, 53 insertions, 0 deletions
diff --git a/chromecast/media/base/cast_media_default.cc b/chromecast/media/base/cast_media_default.cc
index 1f44a68..82ac496 100644
--- a/chromecast/media/base/cast_media_default.cc
+++ b/chromecast/media/base/cast_media_default.cc
@@ -65,5 +65,24 @@ MediaCodecSupportShlib::CodecSupport MediaCodecSupportShlib::IsSupported(
return kDefault;
}
+double CastMediaShlib::GetMediaClockRate() {
+ return 0.0;
+}
+
+double CastMediaShlib::MediaClockRatePrecision() {
+ return 0.0;
+}
+
+void CastMediaShlib::MediaClockRateRange(double* minimum_rate,
+ double* maximum_rate) {}
+
+bool CastMediaShlib::SetMediaClockRate(double new_rate) {
+ return false;
+}
+
+bool CastMediaShlib::SupportsMediaClockRateChange() {
+ return false;
+}
+
} // namespace media
} // namespace chromecast
diff --git a/chromecast/media/base/cast_media_dummy.cc b/chromecast/media/base/cast_media_dummy.cc
index 52ebd47..3060672 100644
--- a/chromecast/media/base/cast_media_dummy.cc
+++ b/chromecast/media/base/cast_media_dummy.cc
@@ -28,5 +28,24 @@ MediaCodecSupportShlib::CodecSupport MediaCodecSupportShlib::IsSupported(
return kDefault;
}
+double CastMediaShlib::GetMediaClockRate() {
+ return 0.0;
+}
+
+double CastMediaShlib::MediaClockRatePrecision() {
+ return 0.0;
+}
+
+void CastMediaShlib::MediaClockRateRange(double* minimum_rate,
+ double* maximum_rate) {}
+
+bool CastMediaShlib::SetMediaClockRate(double new_rate) {
+ return false;
+}
+
+bool CastMediaShlib::SupportsMediaClockRateChange() {
+ return false;
+}
+
} // namespace media
} // namespace chromecast
diff --git a/chromecast/public/cast_media_shlib.h b/chromecast/public/cast_media_shlib.h
index 6360aab..ca11f49 100644
--- a/chromecast/public/cast_media_shlib.h
+++ b/chromecast/public/cast_media_shlib.h
@@ -47,6 +47,21 @@ class CHROMECAST_EXPORT CastMediaShlib {
// MediaPipelineBackend instance.
static MediaPipelineBackend* CreateMediaPipelineBackend(
const MediaPipelineDeviceParams& params);
+
+ // Fetches the renderer clock rate (Hz).
+ static double GetMediaClockRate();
+
+ // Fetches the granularity of clock rate adjustments.
+ static double MediaClockRatePrecision();
+
+ // Fetches the possible range of clock rate adjustments.
+ static void MediaClockRateRange(double* minimum_rate, double* maximum_rate);
+
+ // Sets the renderer clock rate (Hz).
+ static bool SetMediaClockRate(double new_rate);
+
+ // Tests if the implementation supports renderer clock rate adjustments.
+ static bool SupportsMediaClockRateChange();
};
} // namespace media