23 #ifndef _LIBRETRO_SDK_VIDEO_FRAME_H 24 #define _LIBRETRO_SDK_VIDEO_FRAME_H 36 #define scaler_ctx_scale_direct(ctx, output, input) \ 38 if (ctx && ctx->unscaled && ctx->direct_pixconv) \ 40 ctx->direct_pixconv(output, input, \ 41 ctx->out_width, ctx->out_height, \ 42 ctx->out_stride, ctx->in_stride); \ 44 scaler_ctx_scale(ctx, output, input); \ 77 unsigned scaler_width,
78 unsigned scaler_height,
79 unsigned scaler_pitch,
110 unsigned scaler_width,
111 unsigned scaler_height,
112 unsigned scaler_pitch,
184 const void *src_data,
static INLINE void video_frame_convert_rgb16_to_rgb32(struct scaler_ctx *scaler, void *output, const void *input, int width, int height, int in_pitch)
Definition: video_frame.h:47
enum scaler_pix_fmt out_fmt
Definition: scaler.h:73
#define INLINE
Definition: retro_inline.h:35
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
int out_stride
Definition: scaler.h:70
int out_width
Definition: scaler.h:68
static INLINE void video_frame_convert_rgba_to_bgr(const void *src_data, void *dst_data, unsigned width)
Definition: video_frame.h:183
#define scaler_ctx_scale_direct(ctx, output, input)
Definition: video_frame.h:36
int in_height
Definition: scaler.h:65
GLenum GLenum GLenum input
Definition: glext.h:9938
int in_stride
Definition: scaler.h:66
int out_height
Definition: scaler.h:69
enum scaler_type scaler_type
Definition: scaler.h:74
GLenum src
Definition: glext.h:6980
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
bool scaler_ctx_gen_filter(struct scaler_ctx *ctx)
Definition: scaler.c:77
static INLINE void video_frame_scale(struct scaler_ctx *scaler, 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)
Definition: video_frame.h:72
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
int in_width
Definition: scaler.h:64
std::string output
Definition: Config.FromFile.cpp:44
static INLINE void video_frame_record_scale(struct scaler_ctx *scaler, void *output, const void *input, unsigned scaler_width, unsigned scaler_height, unsigned scaler_pitch, unsigned width, unsigned height, unsigned pitch, bool bilinear)
Definition: video_frame.h:106
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: glext.h:6293
GLint GLint GLsizei width
Definition: glext.h:6293
scaler_pix_fmt
Definition: scaler.h:35
static INLINE void video_frame_convert_to_bgr24(struct scaler_ctx *scaler, void *output, const void *input, int width, int height, int in_pitch)
Definition: video_frame.h:163
static INLINE bool video_pixel_frame_scale(struct scaler_ctx *scaler, void *output, const void *data, unsigned width, unsigned height, size_t pitch)
Definition: video_frame.h:200
GLenum GLenum dst
Definition: glext.h:6980
enum scaler_pix_fmt in_fmt
Definition: scaler.h:72
static INLINE void video_frame_convert_argb8888_to_abgr8888(struct scaler_ctx *scaler, void *output, const void *input, int width, int height, int in_pitch)
Definition: video_frame.h:140
unsigned short uint16_t
Definition: stdint.h:125
unsigned char uint8_t
Definition: stdint.h:124
unsigned int uint32_t
Definition: stdint.h:126
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293