| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_CAST_CAST_CONFIG_H_ | 5 #ifndef MEDIA_CAST_CAST_CONFIG_H_ |
| 6 #define MEDIA_CAST_CAST_CONFIG_H_ | 6 #define MEDIA_CAST_CAST_CONFIG_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 // Some HW decoders can not run faster than the frame rate, preventing it | 134 // Some HW decoders can not run faster than the frame rate, preventing it |
| 135 // from catching up after a glitch. | 135 // from catching up after a glitch. |
| 136 bool decoder_faster_than_max_frame_rate; | 136 bool decoder_faster_than_max_frame_rate; |
| 137 VideoCodec codec; | 137 VideoCodec codec; |
| 138 | 138 |
| 139 std::string aes_key; // Binary string of size kAesKeySize. | 139 std::string aes_key; // Binary string of size kAesKeySize. |
| 140 std::string aes_iv_mask; // Binary string of size kAesKeySize. | 140 std::string aes_iv_mask; // Binary string of size kAesKeySize. |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 // DEPRECATED: Do not use in new code. Please migrate existing code to use | |
| 144 // media::VideoFrame. | |
| 145 struct I420VideoPlane { | |
| 146 int stride; | |
| 147 int length; | |
| 148 uint8* data; | |
| 149 }; | |
| 150 | |
| 151 // DEPRECATED: Do not use in new code. Please migrate existing code to use | |
| 152 // media::VideoFrame. | |
| 153 struct I420VideoFrame { | |
| 154 int width; | |
| 155 int height; | |
| 156 I420VideoPlane y_plane; | |
| 157 I420VideoPlane u_plane; | |
| 158 I420VideoPlane v_plane; | |
| 159 }; | |
| 160 | |
| 161 struct EncodedVideoFrame { | 143 struct EncodedVideoFrame { |
| 162 EncodedVideoFrame(); | 144 EncodedVideoFrame(); |
| 163 ~EncodedVideoFrame(); | 145 ~EncodedVideoFrame(); |
| 164 | 146 |
| 165 VideoCodec codec; | 147 VideoCodec codec; |
| 166 bool key_frame; | 148 bool key_frame; |
| 167 uint32 frame_id; | 149 uint32 frame_id; |
| 168 uint32 last_referenced_frame_id; | 150 uint32 last_referenced_frame_id; |
| 169 std::string data; | 151 std::string data; |
| 170 }; | 152 }; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 virtual int NumberOfSkippedFrames() const = 0; | 224 virtual int NumberOfSkippedFrames() const = 0; |
| 243 | 225 |
| 244 protected: | 226 protected: |
| 245 virtual ~VideoEncoderController() {} | 227 virtual ~VideoEncoderController() {} |
| 246 }; | 228 }; |
| 247 | 229 |
| 248 } // namespace cast | 230 } // namespace cast |
| 249 } // namespace media | 231 } // namespace media |
| 250 | 232 |
| 251 #endif // MEDIA_CAST_CAST_CONFIG_H_ | 233 #endif // MEDIA_CAST_CAST_CONFIG_H_ |
| OLD | NEW |