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

Data Structures

struct  LayoutStack
 
struct  LineInfo
 

Enumerations

enum  {
  L_FIRST , L_BEGIN , L_MIDDLE , L_END ,
  L_JUSTIFY
}
 

Functions

static void layout_reset_lines (LayoutStack *st)
 
static LineInfonew_line_info (LayoutStack *st)
 
static u32 get_justify (M_Layout *l, u32 i)
 
static void get_lines_info (LayoutStack *st, M_Layout *l)
 
static void layout_justify (LayoutStack *st, M_Layout *l)
 
static void layout_setup_scroll_bounds (LayoutStack *st, M_Layout *l)
 
static void layout_scroll (GF_TraverseState *tr_state, LayoutStack *st, M_Layout *l)
 
static void TraverseLayout (GF_Node *node, void *rs, Bool is_destroy)
 
static Bool OnLayout (GF_SensorHandler *sh, Bool is_over, Bool is_cancel, GF_Event *ev, GF_Compositor *compositor)
 
static Bool layout_is_enabled (GF_Node *node)
 
void compositor_init_layout (GF_Compositor *compositor, GF_Node *node)
 
void compositor_layout_modified (GF_Compositor *compositor, GF_Node *node)
 
GF_SensorHandlercompositor_mpeg4_layout_get_sensor_handler (GF_Node *node)
 

Data Structure Documentation

◆ LayoutStack

struct LayoutStack
+ Collaboration diagram for LayoutStack:
Data Fields
PARENT_MPEG4_STACK_2D Bool is_scrolling
u32 start_scroll_type
Double start_time
Double pause_time
GF_List * lines
GF_Rect clip
Fixed last_scroll
Fixed prev_rate
Fixed scroll_rate
Fixed scale_scroll
Fixed scroll_len
Fixed scroll_min
Fixed scroll_max
GF_SensorHandler hdl
s32 key_scroll
Bool keys_active

◆ LineInfo

struct LineInfo
Data Fields
Fixed width
Fixed height
Fixed ascent
Fixed descent
u32 first_child
u32 nb_children
Bool line_break

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
L_FIRST 
L_BEGIN 
L_MIDDLE 
L_END 
L_JUSTIFY 

Function Documentation

◆ layout_reset_lines()

static void layout_reset_lines ( LayoutStack st)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ new_line_info()

static LineInfo* new_line_info ( LayoutStack st)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_justify()

static u32 get_justify ( M_Layout *  l,
u32  i 
)
static
+ Here is the caller graph for this function:

◆ get_lines_info()

static void get_lines_info ( LayoutStack st,
M_Layout *  l 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layout_justify()

static void layout_justify ( LayoutStack st,
M_Layout *  l 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layout_setup_scroll_bounds()

static void layout_setup_scroll_bounds ( LayoutStack st,
M_Layout *  l 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layout_scroll()

static void layout_scroll ( GF_TraverseState *  tr_state,
LayoutStack st,
M_Layout *  l 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TraverseLayout()

static void TraverseLayout ( 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:

◆ OnLayout()

static Bool OnLayout ( GF_SensorHandler sh,
Bool  is_over,
Bool  is_cancel,
GF_Event ev,
GF_Compositor *  compositor 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layout_is_enabled()

static Bool layout_is_enabled ( GF_Node node)
static
+ Here is the caller graph for this function:

◆ compositor_init_layout()

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

◆ compositor_layout_modified()

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

◆ compositor_mpeg4_layout_get_sensor_handler()

GF_SensorHandler* compositor_mpeg4_layout_get_sensor_handler ( GF_Node node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: