Blender  V3.3
Functions
initrender.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "DNA_camera_types.h"
#include "BKE_camera.h"
#include "pipeline.h"
#include "render_types.h"

Go to the source code of this file.

Functions

static float filt_quadratic (float x)
 
static float filt_cubic (float x)
 
static float filt_catrom (float x)
 
static float filt_mitchell (float x)
 
float RE_filter_value (int type, float x)
 
struct ObjectRE_GetCamera (Render *re)
 
void RE_SetOverrideCamera (Render *re, Object *cam_ob)
 
void RE_SetCamera (Render *re, const Object *cam_ob)
 
void RE_GetCameraWindow (struct Render *re, const struct Object *camera, float r_winmat[4][4])
 
void RE_GetCameraWindowWithOverscan (const struct Render *re, float overscan, float r_winmat[4][4])
 
void RE_GetCameraModelMatrix (const Render *re, const struct Object *camera, float r_modelmat[4][4])
 
void RE_GetViewPlane (Render *re, rctf *r_viewplane, rcti *r_disprect)
 

Function Documentation

◆ filt_catrom()

static float filt_catrom ( float  x)
static

Definition at line 63 of file initrender.c.

References x, and x2.

Referenced by RE_filter_value().

◆ filt_cubic()

static float filt_cubic ( float  x)
static

Definition at line 46 of file initrender.c.

References x, and x2.

Referenced by RE_filter_value().

◆ filt_mitchell()

static float filt_mitchell ( float  x)
static

Definition at line 79 of file initrender.c.

References usdtokens::b(), Freestyle::c, q1, and x.

Referenced by RE_filter_value().

◆ filt_quadratic()

static float filt_quadratic ( float  x)
static

Definition at line 32 of file initrender.c.

References x.

Referenced by RE_filter_value().

◆ RE_filter_value()

float RE_filter_value ( int  type,
float  x 
)
Parameters
xranges from -1 to 1.

TODO: Should move to kernel once... still unsure on how/where.

Definition at line 108 of file initrender.c.

References expf, fabsf, filt_catrom(), filt_cubic(), filt_mitchell(), filt_quadratic(), M_PI, R_FILTER_BOX, R_FILTER_CATROM, R_FILTER_CUBIC, R_FILTER_GAUSS, R_FILTER_MITCH, R_FILTER_QUAD, R_FILTER_TENT, sqrtf, type, and x.

Referenced by make_gaussian_blur_kernel(), and blender::compositor::BlurBaseOperation::make_gausstab().

◆ RE_GetCamera()

struct Object* RE_GetCamera ( struct Render re)

◆ RE_GetCameraModelMatrix()

void RE_GetCameraModelMatrix ( const Render re,
const struct Object camera,
float  r_modelmat[4][4] 
)

◆ RE_GetCameraWindow()

void RE_GetCameraWindow ( struct Render re,
const struct Object camera,
float  r_winmat[4][4] 
)

◆ RE_GetCameraWindowWithOverscan()

void RE_GetCameraWindowWithOverscan ( const struct Render re,
float  overscan,
float  r_winmat[4][4] 
)

◆ RE_GetViewPlane()

void RE_GetViewPlane ( struct Render re,
rctf r_viewplane,
rcti r_disprect 
)

◆ RE_SetCamera()

void RE_SetCamera ( Render re,
const Object cam_ob 
)

◆ RE_SetOverrideCamera()

void RE_SetOverrideCamera ( Render re,
Object cam_ob 
)

Definition at line 156 of file initrender.c.

References Render::camera_override.

Referenced by screen_opengl_views_setup().