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

Unified Diff: content/renderer/media/video_capture_message_filter.h

Issue 12379011: Interfaces for encoded video sources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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: content/renderer/media/video_capture_message_filter.h
diff --git a/content/renderer/media/video_capture_message_filter.h b/content/renderer/media/video_capture_message_filter.h
index 1418208e35e773fa5120c566d84dd66fab4e0817..dbfd1fc97d1fc5970df4974353053d5de312c96b 100644
--- a/content/renderer/media/video_capture_message_filter.h
+++ b/content/renderer/media/video_capture_message_filter.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
@@ -18,6 +18,8 @@
#include "content/common/media/video_capture.h"
#include "ipc/ipc_channel_proxy.h"
#include "media/video/capture/video_capture.h"
+#include "media/video/encoded_video_source.h"
+#include "media/video/video_encode_types.h"
namespace content {
@@ -92,6 +94,23 @@ class CONTENT_EXPORT VideoCaptureMessageFilter
void OnDeviceInfoReceived(int device_id,
const media::VideoCaptureParams& params);
+ // Encoded video source message support.
+ void OnBitstreamCreated(int device_id,
+ int stream_id,
+ media::VideoEncodingParameters params,
+ std::map<int, base::SharedMemoryHandle> buffers);
+ void OnBitstreamDestroyed(
+ int device_id,
+ int stream_id,
+ media::EncodedVideoBitstream::DestructionReason reason);
+ void OnBitstreamConfigChanged(int device_id,
+ int stream_id,
+ media::RuntimeVideoEncodingParameters params);
+ void OnBitstreamReady(int device_id,
+ int stream_id,
+ int buffer_id,
+ media::BufferEncodingMetadata metadata);
+
// A map of device ids to delegates.
Delegates delegates_;
Delegates pending_delegates_;

Powered by Google App Engine
This is Rietveld 408576698