michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsDeviceCaptureProvider_h_ michael@0: #define nsDeviceCaptureProvider_h_ michael@0: michael@0: #include "nsIInputStream.h" michael@0: michael@0: struct nsCaptureParams { michael@0: bool captureAudio; michael@0: bool captureVideo; michael@0: uint32_t frameRate; michael@0: uint32_t frameLimit; michael@0: uint32_t timeLimit; michael@0: uint32_t width; michael@0: uint32_t height; michael@0: uint32_t bpp; michael@0: uint32_t camera; michael@0: }; michael@0: michael@0: class nsDeviceCaptureProvider : public nsISupports michael@0: { michael@0: public: michael@0: virtual nsresult Init(nsACString& aContentType, michael@0: nsCaptureParams* aParams, michael@0: nsIInputStream** aStream) = 0; michael@0: }; michael@0: michael@0: #endif