mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
git-svn-id: http://libyuv.googlecode.com/svn/trunk@2 16f28f9a-4ce2-e073-06de-1de4eb20be90
37 lines
1.3 KiB
C++
37 lines
1.3 KiB
C++
/*
|
|
* 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 LIBYUV_INCLUDE_FORMAT_CONVERSION_H_
|
|
#define LIBYUV_INCLUDE_FORMAT_CONVERSION_H_
|
|
|
|
#include "basic_types.h"
|
|
|
|
namespace libyuv {
|
|
|
|
// Converts any Bayer RGB format to I420.
|
|
void BayerRGBToI420(const uint8* src_bayer, int src_pitch_bayer,
|
|
uint32 src_fourcc_bayer,
|
|
uint8* dst_y, int dst_pitch_y,
|
|
uint8* dst_u, int dst_pitch_u,
|
|
uint8* dst_v, int dst_pitch_v,
|
|
int width, int height);
|
|
|
|
// Converts any 32 bit ARGB to any Bayer RGB format.
|
|
void RGB32ToBayerRGB(const uint8* src_rgb, int src_pitch_rgb,
|
|
uint32 src_fourcc_rgb,
|
|
uint8* dst_bayer, int dst_pitch_bayer,
|
|
uint32 dst_fourcc_bayer,
|
|
int width, int height);
|
|
|
|
|
|
} // namespace libyuv
|
|
|
|
#endif // LIBYUV_INCLUDE_FORMAT_CONVERSION_H_
|