RetroArch
Macros | Functions
video_frame.h File Reference
#include <stdint.h>
#include <retro_common_api.h>
#include <retro_inline.h>
#include <gfx/scaler/scaler.h>
#include <libretro.h>
Include dependency graph for video_frame.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define scaler_ctx_scale_direct(ctx, output, input)
 

Functions

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)
 
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)
 
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)
 
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)
 
static INLINE void video_frame_convert_to_bgr24 (struct scaler_ctx *scaler, void *output, const void *input, int width, int height, int in_pitch)
 
static INLINE void video_frame_convert_rgba_to_bgr (const void *src_data, void *dst_data, unsigned width)
 
static INLINE bool video_pixel_frame_scale (struct scaler_ctx *scaler, void *output, const void *data, unsigned width, unsigned height, size_t pitch)
 

Macro Definition Documentation

◆ scaler_ctx_scale_direct

#define scaler_ctx_scale_direct (   ctx,
  output,
  input 
)
Value:
{ \
if (ctx && ctx->unscaled && ctx->direct_pixconv) \
/* Just perform straight pixel conversion. */ \
ctx->direct_pixconv(output, input, \
ctx->out_width, ctx->out_height, \
ctx->out_stride, ctx->in_stride); \
}
GLenum GLenum GLenum input
Definition: glext.h:9938
AVFormatContext * ctx
Definition: record_ffmpeg.c:247
std::string output
Definition: Config.FromFile.cpp:44
void scaler_ctx_scale(struct scaler_ctx *ctx, void *output, const void *input)
Definition: scaler.c:307

Function Documentation

◆ video_frame_convert_argb8888_to_abgr8888()

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 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_frame_convert_rgb16_to_rgb32()

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 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_frame_convert_rgba_to_bgr()

static INLINE void video_frame_convert_rgba_to_bgr ( const void src_data,
void dst_data,
unsigned  width 
)
static
Here is the caller graph for this function:

◆ video_frame_convert_to_bgr24()

static INLINE void video_frame_convert_to_bgr24 ( struct scaler_ctx scaler,
void output,
const void input,
int  width,
int  height,
int  in_pitch 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_frame_record_scale()

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 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_frame_scale()

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 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ video_pixel_frame_scale()

static INLINE bool video_pixel_frame_scale ( struct scaler_ctx scaler,
void output,
const void data,
unsigned  width,
unsigned  height,
size_t  pitch 
)
static
Here is the caller graph for this function: