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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/openh264/testing/i420_utils.h
diff --git a/third_party/openh264/testing/i420_utils.h b/third_party/openh264/testing/i420_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..7155daa0d63569331cab08ffd2034e380125b3d5
--- /dev/null
+++ b/third_party/openh264/testing/i420_utils.h
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef OPENH264_TESTING_I420_UTILS_H_
+#define OPENH264_TESTING_I420_UTILS_H_
+
+#include "webrtc/video_frame.h"
+
+namespace openh264 {
+
+void RgbToYuv(uint8_t r, uint8_t g, uint8_t b,
+ uint8_t* y, uint8_t* u, uint8_t* v);
+
+void YuvToRgb(uint8_t y, uint8_t u, uint8_t v,
+ uint8_t* r, uint8_t* g, uint8_t* b);
+
+void CreateRgbFrame(webrtc::VideoFrame* video_frame, int width, int height,
+ uint8_t r, uint8_t g, uint8_t b);
+
+} // namespace openh264
+
+#endif // OPENH264_TESTING_I420_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698