nsDeviceCaptureProvider.h 862 B

1234567891011121314151617181920212223242526272829303132
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsDeviceCaptureProvider_h_
  6. #define nsDeviceCaptureProvider_h_
  7. #include "nsIInputStream.h"
  8. struct nsCaptureParams {
  9. bool captureAudio;
  10. bool captureVideo;
  11. uint32_t frameRate;
  12. uint32_t frameLimit;
  13. uint32_t timeLimit;
  14. uint32_t width;
  15. uint32_t height;
  16. uint32_t bpp;
  17. uint32_t camera;
  18. };
  19. class nsDeviceCaptureProvider : public nsISupports
  20. {
  21. public:
  22. virtual MOZ_MUST_USE nsresult Init(nsACString& aContentType,
  23. nsCaptureParams* aParams,
  24. nsIInputStream** aStream) = 0;
  25. };
  26. #endif