aboutsummaryrefslogtreecommitdiff
path: root/files/include/libyuv/format_conversion.h
diff options
context:
space:
mode:
Diffstat (limited to 'files/include/libyuv/format_conversion.h')
-rw-r--r--files/include/libyuv/format_conversion.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/files/include/libyuv/format_conversion.h b/files/include/libyuv/format_conversion.h
new file mode 100644
index 00000000..d3d36f38
--- /dev/null
+++ b/files/include/libyuv/format_conversion.h
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) 2011 The LibYuv project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+
+#ifndef INCLUDE_LIBYUV_FORMATCONVERSION_H_
+#define INCLUDE_LIBYUV_FORMATCONVERSION_H_
+
+#include "libyuv/basic_types.h"
+
+namespace libyuv {
+
+// Converts any Bayer RGB format to I420.
+int BayerRGBToI420(const uint8* src_bayer, int src_stride_bayer,
+ uint32 src_fourcc_bayer,
+ uint8* dst_y, int dst_stride_y,
+ uint8* dst_u, int dst_stride_u,
+ uint8* dst_v, int dst_stride_v,
+ int width, int height);
+
+// Converts any Bayer RGB format to ARGB.
+int BayerRGBToARGB(const uint8* src_bayer, int src_stride_bayer,
+ uint32 src_fourcc_bayer,
+ uint8* dst_rgb, int dst_stride_rgb,
+ int width, int height);
+
+// Converts ARGB to any Bayer RGB format.
+int ARGBToBayerRGB(const uint8* src_rgb, int src_stride_rgb,
+ uint8* dst_bayer, int dst_stride_bayer,
+ uint32 dst_fourcc_bayer,
+ int width, int height);
+
+} // namespace libyuv
+
+#endif // INCLUDE_LIBYUV_FORMATCONVERSION_H_