Index: media/cast/cast_config.h |
diff --git a/media/cast/cast_config.h b/media/cast/cast_config.h |
index 7a89d618cf82c813a3ef3919a000a6ab62f85586..5f952dbf740957906204db2f9dea6eab2482014c 100644 |
--- a/media/cast/cast_config.h |
+++ b/media/cast/cast_config.h |
@@ -13,6 +13,7 @@ |
#include "base/callback.h" |
#include "base/memory/ref_counted.h" |
#include "media/cast/cast_defines.h" |
+#include "media/cast/transport/cast_transport_config.h" |
namespace media { |
namespace cast { |
@@ -22,17 +23,6 @@ enum RtcpMode { |
kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506. |
}; |
-enum VideoCodec { |
- kVp8, |
- kH264, |
-}; |
- |
-enum AudioCodec { |
- kOpus, |
- kPcm16, |
- kExternalAudio, |
-}; |
- |
struct AudioSenderConfig { |
AudioSenderConfig(); |
@@ -51,7 +41,7 @@ struct AudioSenderConfig { |
int frequency; |
int channels; |
int bitrate; // Set to <= 0 for "auto variable bitrate" (libopus knows best). |
- AudioCodec codec; |
+ transport::AudioCodec codec; |
std::string aes_key; // Binary string of size kAesKeySize. |
std::string aes_iv_mask; // Binary string of size kAesKeySize. |
@@ -83,7 +73,7 @@ struct VideoSenderConfig { |
int min_qp; |
int max_frame_rate; |
int max_number_of_video_buffers_used; // Max value depend on codec. |
- VideoCodec codec; |
+ transport::VideoCodec codec; |
int number_of_cores; |
std::string aes_key; // Binary string of size kAesKeySize. |
@@ -107,7 +97,7 @@ struct AudioReceiverConfig { |
bool use_external_decoder; |
int frequency; |
int channels; |
- AudioCodec codec; |
+ transport::AudioCodec codec; |
std::string aes_key; // Binary string of size kAesKeySize. |
std::string aes_iv_mask; // Binary string of size kAesKeySize. |
@@ -133,23 +123,12 @@ struct VideoReceiverConfig { |
// Some HW decoders can not run faster than the frame rate, preventing it |
// from catching up after a glitch. |
bool decoder_faster_than_max_frame_rate; |
- VideoCodec codec; |
+ transport::VideoCodec codec; |
std::string aes_key; // Binary string of size kAesKeySize. |
std::string aes_iv_mask; // Binary string of size kAesKeySize. |
}; |
-struct EncodedVideoFrame { |
- EncodedVideoFrame(); |
- ~EncodedVideoFrame(); |
- |
- VideoCodec codec; |
- bool key_frame; |
- uint32 frame_id; |
- uint32 last_referenced_frame_id; |
- std::string data; |
-}; |
- |
// DEPRECATED: Do not use in new code. Please migrate existing code to use |
// media::AudioBus. |
struct PcmAudioFrame { |
@@ -161,19 +140,6 @@ struct PcmAudioFrame { |
std::vector<int16> samples; |
}; |
-struct EncodedAudioFrame { |
- EncodedAudioFrame(); |
- ~EncodedAudioFrame(); |
- |
- AudioCodec codec; |
- uint32 frame_id; // Needed to release the frame. |
- int samples; // Needed send side to advance the RTP timestamp. |
- // Not used receive side. |
- // Support for max sampling rate of 48KHz, 2 channels, 100 ms duration. |
- static const int kMaxNumberOfSamples = 48 * 2 * 100; |
- std::string data; |
-}; |
- |
typedef std::vector<uint8> Packet; |
typedef std::vector<Packet> PacketList; |