#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "media/mojo/mojom/demuxer_stream.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "media/mojo/mojom/demuxer_stream.mojom-params-data.h"
#include "media/mojo/mojom/demuxer_stream.mojom-shared-message-ids.h"
#include "media/mojo/mojom/demuxer_stream.mojom-import-headers.h"
#include "media/mojo/mojom/demuxer_stream.mojom-test-utils.h"
#include "media/mojo/mojom/video_decoder_config_mojom_traits.h"
namespace media::mojom {
const char DemuxerStream::Name_[] = …;
DemuxerStream::IPCStableHashFunction DemuxerStream::MessageToMethodInfo_(mojo::Message& message) { … }
const char* DemuxerStream::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t DemuxerStream::Initialize_Sym::IPCStableHash() { … }
uint32_t DemuxerStream::Read_Sym::IPCStableHash() { … }
uint32_t DemuxerStream::EnableBitstreamConverter_Sym::IPCStableHash() { … }
# endif
class DemuxerStream_Initialize_ForwardToCallback
: public mojo::MessageReceiver { … };
class DemuxerStream_Read_ForwardToCallback
: public mojo::MessageReceiver { … };
DemuxerStreamProxy::DemuxerStreamProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void DemuxerStreamProxy::Initialize(
InitializeCallback callback) { … }
void DemuxerStreamProxy::Read(
uint32_t in_count, ReadCallback callback) { … }
void DemuxerStreamProxy::EnableBitstreamConverter(
) { … }
class DemuxerStream_Initialize_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool DemuxerStream_Initialize_ForwardToCallback::Accept(
mojo::Message* message) { … }
void DemuxerStream_Initialize_ProxyToResponder::Run(
::media::DemuxerStream::Type in_type, ::mojo::ScopedDataPipeConsumerHandle in_pipe, const std::optional<::media::AudioDecoderConfig>& in_audio_config, const std::optional<::media::VideoDecoderConfig>& in_video_config) { … }
class DemuxerStream_Read_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool DemuxerStream_Read_ForwardToCallback::Accept(
mojo::Message* message) { … }
void DemuxerStream_Read_ProxyToResponder::Run(
::media::DemuxerStream::Status in_status, std::vector<::media::mojom::DecoderBufferPtr> in_batch_buffers, const std::optional<::media::AudioDecoderConfig>& in_audio_config, const std::optional<::media::VideoDecoderConfig>& in_video_config) { … }
bool DemuxerStreamStubDispatch::Accept(
DemuxerStream* impl,
mojo::Message* message) { … }
bool DemuxerStreamStubDispatch::AcceptWithResponder(
DemuxerStream* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kDemuxerStreamValidationInfo[] = …;
bool DemuxerStreamRequestValidator::Accept(mojo::Message* message) { … }
bool DemuxerStreamResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace media::mojom {
void DemuxerStreamInterceptorForTesting::Initialize(InitializeCallback callback) { … }
void DemuxerStreamInterceptorForTesting::Read(uint32_t count, ReadCallback callback) { … }
void DemuxerStreamInterceptorForTesting::EnableBitstreamConverter() { … }
DemuxerStreamAsyncWaiter::DemuxerStreamAsyncWaiter(
DemuxerStream* proxy) : … { … }
DemuxerStreamAsyncWaiter::~DemuxerStreamAsyncWaiter() = default;
void DemuxerStreamAsyncWaiter::Initialize(
::media::DemuxerStream::Type* out_type, ::mojo::ScopedDataPipeConsumerHandle* out_pipe, std::optional<::media::AudioDecoderConfig>* out_audio_config, std::optional<::media::VideoDecoderConfig>* out_video_config) { … }
void DemuxerStreamAsyncWaiter::Read(
uint32_t count, ::media::DemuxerStream::Status* out_status, std::vector<::media::mojom::DecoderBufferPtr>* out_batch_buffers, std::optional<::media::AudioDecoderConfig>* out_audio_config, std::optional<::media::VideoDecoderConfig>* out_video_config) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif