libgpac
Documentation of the core library of GPAC
mpeg4_background.c File Reference
#include "nodes_stacks.h"
#include "texturing.h"
#include "visual_manager.h"
+ Include dependency graph for mpeg4_background.c:

Macros

#define PLANE_HSIZE   FLT2FIX(0.5025f)
 
#define PLANE_HSIZE_LOW   FLT2FIX(0.5f)
 
#define COL_TO_RGBA(res, col)   { res.red = col.red; res.green = col.green; res.blue = col.blue; res.alpha = FIX_ONE; }
 
#define DOME_STEP_V   32
 
#define DOME_STEP_H   16
 

Functions

static Bool back_use_texture (MFURL *url)
 
static void UpdateBackgroundTexture (GF_TextureHandler *txh)
 
static Bool back_gf_sc_texture_enabled (MFURL *url, GF_TextureHandler *txh)
 
static void back_check_gf_sc_texture_change (GF_TextureHandler *txh, MFURL *url)
 
static void DestroyBackground (GF_Node *node)
 
static void back_build_dome (GF_Mesh *mesh, MFFloat *angles, MFColor *color, Bool ground_dome)
 
static void back_draw_texture (GF_TraverseState *tr_state, GF_TextureHandler *txh, GF_Mesh *mesh)
 
static void TraverseBackground (GF_Node *node, void *rs, Bool is_destroy)
 
static void back_set_bind (GF_Node *node, GF_Route *route)
 
void compositor_init_background (GF_Compositor *compositor, GF_Node *node)
 
void compositor_background_modified (GF_Node *node)
 

Macro Definition Documentation

◆ PLANE_HSIZE

#define PLANE_HSIZE   FLT2FIX(0.5025f)

◆ PLANE_HSIZE_LOW

#define PLANE_HSIZE_LOW   FLT2FIX(0.5f)

◆ COL_TO_RGBA

#define COL_TO_RGBA (   res,
  col 
)    { res.red = col.red; res.green = col.green; res.blue = col.blue; res.alpha = FIX_ONE; }

◆ DOME_STEP_V

#define DOME_STEP_V   32

◆ DOME_STEP_H

#define DOME_STEP_H   16

Function Documentation

◆ back_use_texture()

static Bool back_use_texture ( MFURL url)
static
+ Here is the caller graph for this function:

◆ UpdateBackgroundTexture()

static void UpdateBackgroundTexture ( GF_TextureHandler txh)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ back_gf_sc_texture_enabled()

static Bool back_gf_sc_texture_enabled ( MFURL url,
GF_TextureHandler txh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ back_check_gf_sc_texture_change()

static void back_check_gf_sc_texture_change ( GF_TextureHandler txh,
MFURL url 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyBackground()

static void DestroyBackground ( GF_Node node)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ back_build_dome()

static void back_build_dome ( GF_Mesh mesh,
MFFloat angles,
MFColor color,
Bool  ground_dome 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ back_draw_texture()

static void back_draw_texture ( GF_TraverseState *  tr_state,
GF_TextureHandler txh,
GF_Mesh mesh 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TraverseBackground()

static void TraverseBackground ( GF_Node node,
void *  rs,
Bool  is_destroy 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ back_set_bind()

static void back_set_bind ( GF_Node node,
GF_Route *  route 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_init_background()

void compositor_init_background ( GF_Compositor *  compositor,
GF_Node node 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compositor_background_modified()

void compositor_background_modified ( GF_Node node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: