2018-11-14 21:06:11 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
2019-06-11 05:01:34 +03:00
|
|
|
include protocol PTexture;
|
2019-02-14 22:08:21 +03:00
|
|
|
include protocol PRemoteDecoder;
|
2019-06-11 05:01:34 +03:00
|
|
|
include LayersSurfaces;
|
2018-11-14 21:06:11 +03:00
|
|
|
include "mozilla/dom/MediaIPCUtils.h";
|
2020-11-23 19:03:32 +03:00
|
|
|
include "mozilla/layers/LayersMessageUtils.h";
|
2018-11-14 21:06:11 +03:00
|
|
|
|
|
|
|
using VideoInfo from "MediaInfo.h";
|
|
|
|
using AudioInfo from "MediaInfo.h";
|
2019-06-11 05:01:34 +03:00
|
|
|
using struct mozilla::layers::TextureFactoryIdentifier from "mozilla/layers/CompositorTypes.h";
|
2018-11-14 21:06:11 +03:00
|
|
|
using mozilla::CreateDecoderParams::OptionSet from "PlatformDecoderModule.h";
|
2020-10-21 02:26:27 +03:00
|
|
|
using mozilla::DecoderDoctorDiagnostics from "DecoderDoctorDiagnostics.h";
|
2018-11-14 21:06:11 +03:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
2019-02-14 22:08:21 +03:00
|
|
|
struct VideoDecoderInfoIPDL
|
|
|
|
{
|
|
|
|
VideoInfo videoInfo;
|
|
|
|
float framerate;
|
|
|
|
};
|
|
|
|
|
|
|
|
union RemoteDecoderInfoIPDL
|
|
|
|
{
|
|
|
|
AudioInfo;
|
|
|
|
VideoDecoderInfoIPDL;
|
|
|
|
};
|
|
|
|
|
2018-11-14 21:06:11 +03:00
|
|
|
sync protocol PRemoteDecoderManager
|
|
|
|
{
|
2019-02-14 22:08:21 +03:00
|
|
|
manages PRemoteDecoder;
|
2018-11-14 21:06:11 +03:00
|
|
|
|
|
|
|
parent:
|
2020-11-13 10:46:44 +03:00
|
|
|
async PRemoteDecoder(RemoteDecoderInfoIPDL info,
|
|
|
|
OptionSet options,
|
|
|
|
TextureFactoryIdentifier? identifier);
|
2019-06-11 05:01:34 +03:00
|
|
|
|
|
|
|
sync Readback(SurfaceDescriptorGPUVideo sd) returns (SurfaceDescriptor aResult);
|
|
|
|
|
|
|
|
async DeallocateSurfaceDescriptorGPUVideo(SurfaceDescriptorGPUVideo sd);
|
2018-11-14 21:06:11 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|