adjust.c File Reference

Include dependency graph for adjust.c:


Data Structures

struct  filter_sys_t
 filter_sys_t: chroma method descriptor More...

Defines

#define M_PI   3.14159265358979323846
#define eight_times(x)   x x x x x x x x
#define THRES_TEXT   N_("Brightness threshold")
#define THRES_LONGTEXT
#define CONT_TEXT   N_("Image contrast (0-2)")
#define CONT_LONGTEXT   N_("Set the image contrast, between 0 and 2. Defaults to 1.")
#define HUE_TEXT   N_("Image hue (0-360)")
#define HUE_LONGTEXT   N_("Set the image hue, between 0 and 360. Defaults to 0.")
#define SAT_TEXT   N_("Image saturation (0-3)")
#define SAT_LONGTEXT   N_("Set the image saturation, between 0 and 3. Defaults to 1.")
#define LUM_TEXT   N_("Image brightness (0-2)")
#define LUM_LONGTEXT   N_("Set the image brightness, between 0 and 2. Defaults to 1.")
#define GAMMA_TEXT   N_("Image gamma (0-10)")
#define GAMMA_LONGTEXT   N_("Set the image gamma, between 0.01 and 10. Defaults to 1.")
#define WRITE_UV_CLIP()
#define WRITE_UV()
#define WRITE_UV_CLIP()
#define WRITE_UV()

Functions

static int Create (vlc_object_t *)
static void Destroy (vlc_object_t *)
static picture_tFilterPlanar (filter_t *, picture_t *)
static picture_tFilterPacked (filter_t *, picture_t *)
static int AdjustCallback (vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)

Variables

static const char *const ppsz_filter_options []

Define Documentation

#define CONT_LONGTEXT   N_("Set the image contrast, between 0 and 2. Defaults to 1.")

#define CONT_TEXT   N_("Image contrast (0-2)")

#define eight_times (  )     x x x x x x x x

#define GAMMA_LONGTEXT   N_("Set the image gamma, between 0.01 and 10. Defaults to 1.")

#define GAMMA_TEXT   N_("Image gamma (0-10)")

#define HUE_LONGTEXT   N_("Set the image hue, between 0 and 360. Defaults to 0.")

#define HUE_TEXT   N_("Image hue (0-360)")

#define LUM_LONGTEXT   N_("Set the image brightness, between 0 and 2. Defaults to 1.")

#define LUM_TEXT   N_("Image brightness (0-2)")

#define M_PI   3.14159265358979323846

#define SAT_LONGTEXT   N_("Set the image saturation, between 0 and 3. Defaults to 1.")

#define SAT_TEXT   N_("Image saturation (0-3)")

#define THRES_LONGTEXT

Value:

N_("When this mode is enabled, pixels will be " \
        "shown as black or white. The threshold value will be the brighness " \
        "defined below." )

#define THRES_TEXT   N_("Brightness threshold")

 
#define WRITE_UV (  ) 

Value:

i_u = *p_in; p_in += 4; i_v = *p_in_v; p_in_v += 4; \
    *p_out = (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
                       * i_sat) >> 8) + 128; \
    p_out += 4; \
    *p_out_v = (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
                       * i_sat) >> 8) + 128; \
    p_out_v += 4

 
#define WRITE_UV (  ) 

Value:

i_u = *p_in++ ; i_v = *p_in_v++ ; \
    *p_out++ = (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
                       * i_sat) >> 8) + 128; \
    *p_out_v++ = (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
                       * i_sat) >> 8) + 128

Referenced by FilterPacked(), and FilterPlanar().

 
#define WRITE_UV_CLIP (  ) 

Value:

i_u = *p_in; p_in += 4; i_v = *p_in_v; p_in_v += 4; \
    *p_out = clip_uint8_vlc( (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
                           * i_sat) >> 8) + 128); \
    p_out += 4; \
    *p_out_v = clip_uint8_vlc( (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
                           * i_sat) >> 8) + 128); \
    p_out_v += 4

 
#define WRITE_UV_CLIP (  ) 

Value:

i_u = *p_in++ ; i_v = *p_in_v++ ; \
    *p_out++ = clip_uint8_vlc( (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
                           * i_sat) >> 8) + 128); \
    *p_out_v++ = clip_uint8_vlc( (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
                           * i_sat) >> 8) + 128)

Referenced by FilterPacked(), and FilterPlanar().


Function Documentation

static int AdjustCallback ( vlc_object_t p_this,
char const *  psz_var,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int Create ( vlc_object_t p_this  )  [static]

static void Destroy ( vlc_object_t p_this  )  [static]

static picture_t * FilterPacked ( filter_t p_filter,
picture_t p_pic 
) [static]

static picture_t * FilterPlanar ( filter_t p_filter,
picture_t p_pic 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const char* const ppsz_filter_options[] [static]

Initial value:

 {
    "contrast", "brightness", "hue", "saturation", "gamma",
    "brightness-threshold", NULL
}

Referenced by Activate(), Create(), CreateFilter(), OpenCommon(), OpenFilter(), and OpenPostproc().


Generated on Tue May 25 08:05:28 2010 for VLC by  doxygen 1.5.6