2010-06-09 03:31:27 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-11-14 23:46:40 +04:00
|
|
|
#if !defined(WebMDecoder_h_)
|
|
|
|
#define WebMDecoder_h_
|
2010-06-09 03:31:27 +04:00
|
|
|
|
2012-11-14 23:45:33 +04:00
|
|
|
namespace mozilla {
|
|
|
|
|
2017-01-18 03:59:03 +03:00
|
|
|
class MediaContainerType;
|
2017-01-01 04:16:38 +03:00
|
|
|
|
2017-08-15 08:52:17 +03:00
|
|
|
class WebMDecoder
|
2010-06-09 03:31:27 +04:00
|
|
|
{
|
|
|
|
public:
|
2015-12-03 09:36:36 +03:00
|
|
|
|
2017-01-18 03:59:03 +03:00
|
|
|
// Returns true if aContainerType is a WebM type that we think we can render
|
2017-01-01 04:16:38 +03:00
|
|
|
// with an enabled platform decoder backend.
|
|
|
|
// If provided, codecs are checked for support.
|
2017-01-18 03:59:03 +03:00
|
|
|
static bool IsSupportedType(const MediaContainerType& aContainerType);
|
2016-05-27 05:34:54 +03:00
|
|
|
|
2010-06-09 03:31:27 +04:00
|
|
|
};
|
|
|
|
|
2012-11-14 23:45:33 +04:00
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-06-09 03:31:27 +04:00
|
|
|
#endif
|