blob: e0c64d888cb6f4c17f3c215d5cd5d91f8347a5f4 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_VIDEO_CAPTURE_LACROS_VIDEO_BUFFER_ADAPTERS_H_
#define SERVICES_VIDEO_CAPTURE_LACROS_VIDEO_BUFFER_ADAPTERS_H_
#include "chromeos/crosapi/mojom/video_capture.mojom.h"
#include "media/capture/video/video_frame_receiver.h"
#include "services/video_capture/public/mojom/video_frame_handler.mojom.h"
namespace video_capture {
media::mojom::VideoBufferHandlePtr ConvertToMediaVideoBuffer(
crosapi::mojom::VideoBufferHandlePtr buffer_handle);
media::mojom::VideoFrameInfoPtr ConvertToMediaVideoFrameInfo(
crosapi::mojom::VideoFrameInfoPtr buffer_info);
media::ReadyFrameInBuffer ConvertToMediaReadyFrame(
crosapi::mojom::ReadyFrameInBufferPtr buffer);
} // namespace video_capture
#endif // SERVICES_VIDEO_CAPTURE_LACROS_VIDEO_BUFFER_ADAPTERS_H_