| 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 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 uint8_t* buffer, | 68 uint8_t* buffer, |
| 69 size_t size, | 69 size_t size, |
| 70 int stride_rgb) const; | 70 int stride_rgb) const; |
| 71 | 71 |
| 72 // Tests if sample is valid. Returns true if valid. | 72 // Tests if sample is valid. Returns true if valid. |
| 73 static bool Validate(uint32_t fourcc, | 73 static bool Validate(uint32_t fourcc, |
| 74 int w, | 74 int w, |
| 75 int h, | 75 int h, |
| 76 const uint8_t* sample, | 76 const uint8_t* sample, |
| 77 size_t sample_size); | 77 size_t sample_size); |
| 78 | |
| 79 protected: | |
| 80 // Creates an empty frame. | |
| 81 virtual VideoFrame* CreateEmptyFrame(int w, | |
| 82 int h, | |
| 83 int64_t timestamp_us) const = 0; | |
| 84 | |
| 85 virtual void set_rotation(webrtc::VideoRotation rotation) = 0; | |
| 86 }; | 78 }; |
| 87 | 79 |
| 88 } // namespace cricket | 80 } // namespace cricket |
| 89 | 81 |
| 90 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_ | 82 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAME_H_ |
| OLD | NEW |