summaryrefslogtreecommitdiff
path: root/chromium/media/base/media_log_properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/base/media_log_properties.h')
-rw-r--r--chromium/media/base/media_log_properties.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/chromium/media/base/media_log_properties.h b/chromium/media/base/media_log_properties.h
index 5f6a1084443..0f8a01817e8 100644
--- a/chromium/media/base/media_log_properties.h
+++ b/chromium/media/base/media_log_properties.h
@@ -59,8 +59,8 @@ enum class MediaLogProperty {
kIsRangeHeaderSupported,
// The name of the decoder implementation currently being used to play the
- // media stream. All audio/video decoders have names, such as
- // FFMpegVideoDecoder or D3D11VideoDecoder.
+ // media stream. All audio/video decoders have id numbers defined in
+ // decoder.h.
kVideoDecoderName,
kAudioDecoderName,
@@ -68,6 +68,10 @@ enum class MediaLogProperty {
kIsPlatformVideoDecoder,
kIsPlatformAudioDecoder,
+ // Webcodecs supports encoding video streams.
+ kVideoEncoderName,
+ kIsPlatformVideoEncoder,
+
// Whether this media player is using a decrypting demuxer for the given
// audio or video stream.
kIsVideoDecryptingDemuxerStream,
@@ -101,12 +105,14 @@ MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsStreaming, bool);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kFrameUrl, std::string);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kFrameTitle, std::string);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsSingleOrigin, bool);
-MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kVideoDecoderName, std::string);
+MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kVideoDecoderName, VideoDecoderType);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsPlatformVideoDecoder, bool);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsRangeHeaderSupported, bool);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsVideoDecryptingDemuxerStream, bool);
-MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kAudioDecoderName, std::string);
+MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kAudioDecoderName, AudioDecoderType);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsPlatformAudioDecoder, bool);
+MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kVideoEncoderName, std::string);
+MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsPlatformVideoEncoder, bool);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kIsAudioDecryptingDemuxerStream, bool);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kAudioTracks, std::vector<AudioDecoderConfig>);
MEDIA_LOG_PROPERTY_SUPPORTS_TYPE(kTextTracks, std::vector<TextTrackConfig>);