Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Side by Side Diff: third_party/openh264/testing/i420_utils.h

Issue 1403893007: Adding third_party/openh264/src, build files and unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename var to 'use_openh264', add OpenH264 to 'all' target of GN Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698