| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 // Common definition for video, including fourcc and VideoFormat. | 11 // Common definition for video, including fourcc and VideoFormat. |
| 12 | 12 |
| 13 #ifndef WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT | 13 #ifndef WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT |
| 14 #define WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ | 14 #define WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ |
| 15 | 15 |
| 16 #include <stdint.h> | 16 #include <stdint.h> |
| 17 | 17 |
| 18 #include <string> | 18 #include <string> |
| 19 | 19 |
| 20 #include "webrtc/rtc_base/timeutils.h" | 20 #include "webrtc/base/timeutils.h" |
| 21 | 21 |
| 22 namespace cricket { | 22 namespace cricket { |
| 23 | 23 |
| 24 // TODO(janahan): For now, a hard-coded ssrc is used as the video ssrc. | 24 // TODO(janahan): For now, a hard-coded ssrc is used as the video ssrc. |
| 25 // This is because when the video frame is passed to the mediaprocessor for | 25 // This is because when the video frame is passed to the mediaprocessor for |
| 26 // processing, it doesn't have the correct ssrc. Since currently only Tx | 26 // processing, it doesn't have the correct ssrc. Since currently only Tx |
| 27 // Video processing is supported, this is ok. When we switch over to trigger | 27 // Video processing is supported, this is ok. When we switch over to trigger |
| 28 // from capturer, this should be fixed and this const removed. | 28 // from capturer, this should be fixed and this const removed. |
| 29 const uint32_t kDummyVideoSsrc = 0xFFFFFFFF; | 29 const uint32_t kDummyVideoSsrc = 0xFFFFFFFF; |
| 30 | 30 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 format.width * format.height * format.framerate(); | 220 format.width * format.height * format.framerate(); |
| 221 } | 221 } |
| 222 | 222 |
| 223 // Get a string presentation in the form of "fourcc width x height x fps" | 223 // Get a string presentation in the form of "fourcc width x height x fps" |
| 224 std::string ToString() const; | 224 std::string ToString() const; |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 } // namespace cricket | 227 } // namespace cricket |
| 228 | 228 |
| 229 #endif // WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT | 229 #endif // WEBRTC_MEDIA_BASE_VIDEOCOMMON_H_ // NOLINT |
| OLD | NEW |