mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
cb46080bbf
--HG-- extra : rebase_source : fddd6ccddd083484c8b46a53747fb2058a46463e
46 lines
1.6 KiB
C++
46 lines
1.6 KiB
C++
// Copyright (c) 2010 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 MEDIA_BASE_YCBCR_TO_RGB565_H_
|
|
#define MEDIA_BASE_YCBCR_TO_RGB565_H_
|
|
#include "yuv_convert.h"
|
|
#include "mozilla/arm.h"
|
|
|
|
// It's currently only worth including this if we have NEON support.
|
|
#ifdef MOZILLA_MAY_SUPPORT_NEON
|
|
#define HAVE_YCBCR_TO_RGB565 1
|
|
#endif
|
|
|
|
namespace mozilla {
|
|
|
|
namespace gfx {
|
|
|
|
#ifdef HAVE_YCBCR_TO_RGB565
|
|
// Convert a frame of YUV to 16 bit RGB565.
|
|
NS_GFX_(void) ConvertYCbCrToRGB565(const uint8* yplane,
|
|
const uint8* uplane,
|
|
const uint8* vplane,
|
|
uint8* rgbframe,
|
|
int pic_x,
|
|
int pic_y,
|
|
int pic_width,
|
|
int pic_height,
|
|
int ystride,
|
|
int uvstride,
|
|
int rgbstride,
|
|
YUVType yuv_type);
|
|
|
|
// Used to test if we have an accelerated version.
|
|
NS_GFX_(bool) IsConvertYCbCrToRGB565Fast(int pic_x,
|
|
int pic_y,
|
|
int pic_width,
|
|
int pic_height,
|
|
YUVType yuv_type);
|
|
#endif // HAVE_YCBCR_TO_RGB565
|
|
|
|
} // namespace gfx
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // MEDIA_BASE_YCBCR_TO_RGB565_H_
|