#include "services/video_capture/public/cpp/receiver_media_to_mojo_adapter.h"
#include "media/capture/video/video_frame_receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/system/platform_handle.h"
namespace video_capture {
namespace {
void OnFramePropagationComplete(
scoped_refptr<VideoFrameAccessHandlerRemote> frame_access_handler_remote,
int32_t buffer_id) { … }
}
ReceiverMediaToMojoAdapter::ReceiverMediaToMojoAdapter(
std::unique_ptr<media::VideoFrameReceiver> receiver)
: … { … }
ReceiverMediaToMojoAdapter::~ReceiverMediaToMojoAdapter() = default;
void ReceiverMediaToMojoAdapter::OnCaptureConfigurationChanged() { … }
void ReceiverMediaToMojoAdapter::OnNewBuffer(
int32_t buffer_id,
media::mojom::VideoBufferHandlePtr buffer_handle) { … }
void ReceiverMediaToMojoAdapter::OnFrameAccessHandlerReady(
mojo::PendingRemote<video_capture::mojom::VideoFrameAccessHandler>
pending_frame_access_handler) { … }
void ReceiverMediaToMojoAdapter::OnFrameReadyInBuffer(
mojom::ReadyFrameInBufferPtr buffer) { … }
void ReceiverMediaToMojoAdapter::OnBufferRetired(int32_t buffer_id) { … }
void ReceiverMediaToMojoAdapter::OnError(media::VideoCaptureError error) { … }
void ReceiverMediaToMojoAdapter::OnFrameDropped(
media::VideoCaptureFrameDropReason reason) { … }
void ReceiverMediaToMojoAdapter::OnNewSubCaptureTargetVersion(
uint32_t sub_capture_target_version) { … }
void ReceiverMediaToMojoAdapter::OnFrameWithEmptyRegionCapture() { … }
void ReceiverMediaToMojoAdapter::OnLog(const std::string& message) { … }
void ReceiverMediaToMojoAdapter::OnStarted() { … }
void ReceiverMediaToMojoAdapter::OnStartedUsingGpuDecode() { … }
void ReceiverMediaToMojoAdapter::OnStopped() { … }
}