2016-05-04 15:13:25 +00:00
|
|
|
/* 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/>.
|
|
|
|
*/
|
|
|
|
|
2016-05-04 14:32:24 +00:00
|
|
|
#ifndef _VIDEO_FRAME_H
|
|
|
|
#define _VIDEO_FRAME_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2016-09-12 15:29:01 +00:00
|
|
|
#include <retro_common_api.h>
|
2016-05-04 14:32:24 +00:00
|
|
|
|
2016-09-12 15:29:01 +00:00
|
|
|
RETRO_BEGIN_DECLS
|
2016-05-04 14:32:24 +00:00
|
|
|
|
2016-09-06 21:41:09 +00:00
|
|
|
void video_frame_convert_rgb16_to_rgb32(
|
2016-09-12 15:29:01 +00:00
|
|
|
void *data,
|
2016-05-04 14:32:24 +00:00
|
|
|
void *output,
|
|
|
|
const void *input,
|
|
|
|
int width, int height,
|
2016-09-06 21:41:09 +00:00
|
|
|
int in_pitch);
|
2016-05-04 14:32:24 +00:00
|
|
|
|
2016-09-06 21:41:09 +00:00
|
|
|
void video_frame_scale(
|
2016-09-12 15:29:01 +00:00
|
|
|
void *data,
|
2016-05-04 14:44:38 +00:00
|
|
|
void *output,
|
|
|
|
const void *input,
|
|
|
|
enum scaler_pix_fmt format,
|
|
|
|
unsigned scaler_width,
|
|
|
|
unsigned scaler_height,
|
|
|
|
unsigned scaler_pitch,
|
|
|
|
unsigned width,
|
|
|
|
unsigned height,
|
2016-09-06 21:41:09 +00:00
|
|
|
unsigned pitch);
|
2016-05-04 14:44:38 +00:00
|
|
|
|
2016-09-06 21:41:09 +00:00
|
|
|
void video_frame_record_scale(
|
2016-09-12 15:29:01 +00:00
|
|
|
void *data,
|
2016-05-04 15:11:22 +00:00
|
|
|
void *output,
|
|
|
|
const void *input,
|
|
|
|
unsigned scaler_width,
|
|
|
|
unsigned scaler_height,
|
|
|
|
unsigned scaler_pitch,
|
|
|
|
unsigned width,
|
|
|
|
unsigned height,
|
|
|
|
unsigned pitch,
|
2016-09-06 21:41:09 +00:00
|
|
|
bool bilinear);
|
2016-05-04 15:11:22 +00:00
|
|
|
|
2016-09-06 21:41:09 +00:00
|
|
|
void video_frame_convert_argb8888_to_abgr8888(
|
2016-09-12 15:29:01 +00:00
|
|
|
void *data,
|
2016-05-04 14:32:24 +00:00
|
|
|
void *output, const void *input,
|
2016-09-06 21:41:09 +00:00
|
|
|
int width, int height, int in_pitch);
|
2016-05-04 14:32:24 +00:00
|
|
|
|
2016-09-06 21:41:09 +00:00
|
|
|
void video_frame_convert_to_bgr24(
|
2016-09-12 15:29:01 +00:00
|
|
|
void *data,
|
2016-05-04 14:34:13 +00:00
|
|
|
void *output, const void *input,
|
|
|
|
int width, int height, int in_pitch,
|
2016-09-06 21:41:09 +00:00
|
|
|
bool bgr24);
|
2016-05-04 14:34:13 +00:00
|
|
|
|
2016-09-06 21:41:09 +00:00
|
|
|
void video_frame_convert_rgba_to_bgr(
|
2016-05-04 16:44:39 +00:00
|
|
|
const void *src_data,
|
|
|
|
void *dst_data,
|
2016-09-06 21:41:09 +00:00
|
|
|
unsigned width);
|
2016-05-04 16:44:39 +00:00
|
|
|
|
2016-09-11 15:55:46 +00:00
|
|
|
bool video_pixel_frame_scale(
|
2016-09-12 15:29:01 +00:00
|
|
|
void *scaler_data,
|
2016-09-11 15:55:46 +00:00
|
|
|
void *output,
|
|
|
|
const void *data,
|
|
|
|
unsigned width, unsigned height,
|
|
|
|
size_t pitch);
|
|
|
|
|
2016-09-12 15:29:01 +00:00
|
|
|
RETRO_END_DECLS
|
|
|
|
|
2016-05-04 14:32:24 +00:00
|
|
|
#endif
|