xine-lib 1.2.11
Macros | Functions | Variables
vo_scale.c File Reference
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <xine/xine_internal.h>
#include <xine/vo_scale.h>

Macros

#define LOG_MODULE   "vo_scale"
 
#define LOG_VERBOSE
 

Functions

void _x_vo_scale_compute_ideal_size (vo_scale_t *this)
 
void _x_vo_scale_compute_output_size (vo_scale_t *this)
 
int _x_vo_scale_redraw_needed (vo_scale_t *this)
 
void _x_vo_scale_translate_gui2video (vo_scale_t *this, int x, int y, int *vid_x, int *vid_y)
 
vo_scale_map_res_t _x_vo_scale_map (vo_scale_t *this, vo_scale_map_t *map)
 Map a rectangle to video out window. More...
 
static void vo_scale_horizontal_pos_changed (void *data, xine_cfg_entry_t *entry)
 
static void vo_scale_vertical_pos_changed (void *data, xine_cfg_entry_t *entry)
 
static void vo_scale_disable_scaling_changed (void *data, xine_cfg_entry_t *entry)
 
static void vo_scale_square_pixels_changed (void *data, xine_cfg_entry_t *entry)
 
void _x_vo_scale_cleanup (vo_scale_t *self, config_values_t *config)
 
void _x_vo_scale_init (vo_scale_t *this, int support_zoom, int scaling_disabled, config_values_t *config)
 

Variables

const char _x_vo_scale_aspect_ratio_name_table [][8]
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "vo_scale"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Function Documentation

◆ _x_vo_scale_cleanup()

void _x_vo_scale_cleanup ( vo_scale_t self,
config_values_t config 
)

◆ _x_vo_scale_compute_ideal_size()

void _x_vo_scale_compute_ideal_size ( vo_scale_t this)

◆ _x_vo_scale_compute_output_size()

void _x_vo_scale_compute_output_size ( vo_scale_t this)

◆ _x_vo_scale_init()

void _x_vo_scale_init ( vo_scale_t this,
int  support_zoom,
int  scaling_disabled,
config_values_t config 
)

◆ _x_vo_scale_map()

vo_scale_map_res_t _x_vo_scale_map ( vo_scale_t self,
vo_scale_map_t map 
)

Map a rectangle to video out window.

Parameters
selfThe vo_scale status to use.
mapOn call: map.in = {0, 0, width, height} of input rect. map.out = {left, top, extent_width, extent_height} where input should go. Extents may be 0 if same as video size. On return: map.in = {left, top, right, bottom} to use from input rect. map.out = {left, top, right, bottom} inside video out.
Returns
What went wrong.

References vo_scale_map_t::in, vo_scale_map_t::out, VO_SCALE_MAP_ERROR, VO_SCALE_MAP_OK, VO_SCALE_MAP_OUTSIDE, VO_SCALE_MAP_WRONG_ARGS, vo_scale_map_t::x0, vo_scale_map_t::x1, vo_scale_map_t::y0, and vo_scale_map_t::y1.

Referenced by opengl2_draw_unscaled_overlays().

◆ _x_vo_scale_redraw_needed()

int _x_vo_scale_redraw_needed ( vo_scale_t this)

◆ _x_vo_scale_translate_gui2video()

void _x_vo_scale_translate_gui2video ( vo_scale_t this,
int  x,
int  y,
int *  vid_x,
int *  vid_y 
)

◆ vo_scale_disable_scaling_changed()

static void vo_scale_disable_scaling_changed ( void *  data,
xine_cfg_entry_t entry 
)
static

References xine_cfg_entry_s::num_value.

Referenced by _x_vo_scale_init().

◆ vo_scale_horizontal_pos_changed()

static void vo_scale_horizontal_pos_changed ( void *  data,
xine_cfg_entry_t entry 
)
static

References xine_cfg_entry_s::num_value.

Referenced by _x_vo_scale_init().

◆ vo_scale_square_pixels_changed()

static void vo_scale_square_pixels_changed ( void *  data,
xine_cfg_entry_t entry 
)
static

References xine_cfg_entry_s::num_value.

Referenced by _x_vo_scale_init().

◆ vo_scale_vertical_pos_changed()

static void vo_scale_vertical_pos_changed ( void *  data,
xine_cfg_entry_t entry 
)
static

References xine_cfg_entry_s::num_value.

Referenced by _x_vo_scale_init().

Variable Documentation

◆ _x_vo_scale_aspect_ratio_name_table

const char _x_vo_scale_aspect_ratio_name_table[][8]
Initial value:
= {
"auto",
"square",
"4:3",
"16:9",
"2:1",
"unknown"
}

Referenced by directfb_set_property(), fb_set_property(), opengl_set_property(), sdl_set_property(), stk_set_property(), vidix_set_property(), and xshm_set_property().