OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef OPENH264_TESTING_I420_UTILS_H_ |
| 6 #define OPENH264_TESTING_I420_UTILS_H_ |
| 7 |
| 8 #include "webrtc/video_frame.h" |
| 9 |
| 10 namespace openh264 { |
| 11 |
| 12 void RgbToYuv(uint8_t r, uint8_t g, uint8_t b, |
| 13 uint8_t* y, uint8_t* u, uint8_t* v); |
| 14 |
| 15 void YuvToRgb(uint8_t y, uint8_t u, uint8_t v, |
| 16 uint8_t* r, uint8_t* g, uint8_t* b); |
| 17 |
| 18 void CreateRgbFrame(webrtc::VideoFrame* video_frame, int width, int height, |
| 19 uint8_t r, uint8_t g, uint8_t b); |
| 20 |
| 21 } // namespace openh264 |
| 22 |
| 23 #endif // OPENH264_TESTING_I420_UTILS_H_ |
OLD | NEW |