mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
81 lines
2.1 KiB
C
81 lines
2.1 KiB
C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
|
*
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _VIDEO_FRAME_H
|
|
#define _VIDEO_FRAME_H
|
|
|
|
#include <stdint.h>
|
|
#include <retro_common_api.h>
|
|
|
|
RETRO_BEGIN_DECLS
|
|
|
|
void video_frame_convert_rgb16_to_rgb32(
|
|
void *data,
|
|
void *output,
|
|
const void *input,
|
|
int width, int height,
|
|
int in_pitch);
|
|
|
|
void video_frame_scale(
|
|
void *data,
|
|
void *output,
|
|
const void *input,
|
|
enum scaler_pix_fmt format,
|
|
unsigned scaler_width,
|
|
unsigned scaler_height,
|
|
unsigned scaler_pitch,
|
|
unsigned width,
|
|
unsigned height,
|
|
unsigned pitch);
|
|
|
|
void video_frame_record_scale(
|
|
void *data,
|
|
void *output,
|
|
const void *input,
|
|
unsigned scaler_width,
|
|
unsigned scaler_height,
|
|
unsigned scaler_pitch,
|
|
unsigned width,
|
|
unsigned height,
|
|
unsigned pitch,
|
|
bool bilinear);
|
|
|
|
void video_frame_convert_argb8888_to_abgr8888(
|
|
void *data,
|
|
void *output, const void *input,
|
|
int width, int height, int in_pitch);
|
|
|
|
void video_frame_convert_to_bgr24(
|
|
void *data,
|
|
void *output, const void *input,
|
|
int width, int height, int in_pitch,
|
|
bool bgr24);
|
|
|
|
void video_frame_convert_rgba_to_bgr(
|
|
const void *src_data,
|
|
void *dst_data,
|
|
unsigned width);
|
|
|
|
bool video_pixel_frame_scale(
|
|
void *scaler_data,
|
|
void *output,
|
|
const void *data,
|
|
unsigned width, unsigned height,
|
|
size_t pitch);
|
|
|
|
RETRO_END_DECLS
|
|
|
|
#endif
|