LiVES 1.4.9
Defines | Functions | Variables

src/colourspace.c File Reference

#include <math.h>
#include "../libweed/weed.h"
#include "../libweed/weed-palettes.h"
#include "../libweed/weed-effects.h"
#include "../libweed/weed-host.h"
#include "support.h"
#include "main.h"

Defines

#define USE_THREADS   1

Functions

G_GNUC_CONST int gdk_rowstride_value (int rowstride)
G_GNUC_CONST int gdk_last_rowstride_value (int width, int nchans)
G_GNUC_CONST guchar CLAMP0255 (gint32 a)
gboolean weed_palette_is_alpha_palette (int pal)
gboolean weed_palette_is_rgb_palette (int pal)
gboolean weed_palette_is_yuv_palette (int pal)
gint weed_palette_get_numplanes (int pal)
gboolean weed_palette_is_valid_palette (int pal)
gint weed_palette_get_bits_per_macropixel (int pal)
gint weed_palette_get_pixels_per_macropixel (int pal)
gboolean weed_palette_is_float_palette (int pal)
gboolean weed_palette_has_alpha_channel (int pal)
gdouble weed_palette_get_plane_ratio_horizontal (int pal, int plane)
gdouble weed_palette_get_plane_ratio_vertical (int pal, int plane)
gboolean weed_palette_is_lower_quality (int p1, int p2)
 return TRUE if p1 is lower quality than p2
const char * weed_palette_get_name (int pal)
const char * weed_yuv_clamping_get_name (int clamping)
const char * weed_yuv_subspace_get_name (int subspace)
gchar * weed_palette_get_name_full (int pal, int clamped, int subspace)
gdouble weed_palette_get_compression_ratio (int pal)
int fourccp_to_weedp (unsigned int fourcc, int bpp, lives_interlace_t *interlace, int *sampling, int *sspace, int *clamping)
gboolean gdk_pixbuf_is_all_black (GdkPixbuf *pixbuf)
void pixel_data_planar_from_membuf (void **pixel_data, void *data, size_t size, int palette)
void convert_rgb_to_uyvy_frame (guchar *rgbdata, gint hsize, gint vsize, gint rowstride, uyvy_macropixel *u, gboolean has_alpha, gboolean clamped, int thread_id)
void * convert_rgb_to_uyvy_frame_thread (void *data)
void * convert_rgb_to_yuyv_frame_thread (void *data)
void * convert_bgr_to_uyvy_frame_thread (void *data)
void * convert_bgr_to_yuyv_frame_thread (void *data)
void * convert_rgb_to_yuv_frame_thread (void *data)
void * convert_bgr_to_yuv_frame_thread (void *data)
void convert_rgb_to_yuv420_frame (guchar *rgbdata, gint hsize, gint vsize, gint rowstride, guchar **dest, gboolean is_422, gboolean has_alpha, int samtype, gboolean clamped)
void * convert_uyvy_to_rgb_frame_thread (void *data)
void * convert_uyvy_to_bgr_frame_thread (void *data)
void * convert_yuyv_to_rgb_frame_thread (void *data)
void * convert_yuyv_to_bgr_frame_thread (void *data)
void * convert_swap3_frame_thread (void *data)
void * convert_swap4_frame_thread (void *data)
void * convert_swap3addpost_frame_thread (void *data)
void * convert_swap3addpre_frame_thread (void *data)
void * convert_swap3postalpha_frame_thread (void *data)
void * convert_addpost_frame_thread (void *data)
void * convert_addpre_frame_thread (void *data)
void * convert_swap3delpost_frame_thread (void *data)
void * convert_delpost_frame_thread (void *data)
void * convert_delpre_frame_thread (void *data)
void * convert_swap3delpre_frame_thread (void *data)
void * convert_swapprepost_frame_thread (void *data)
void * convert_swab_frame_thread (void *data)
void switch_yuv_sampling (weed_plant_t *layer)
void switch_yuv_clamping_and_subspace (weed_plant_t *layer, int oclamping, int osubspace)
void create_empty_pixel_data (weed_plant_t *layer, gboolean black_fill, gboolean may_contig)
gboolean convert_layer_palette_full (weed_plant_t *layer, int outpl, int osamtype, gboolean oclamping, int osubspace)
gboolean convert_layer_palette (weed_plant_t *layer, int outpl, int op_clamping)
GdkPixbuf * gdk_pixbuf_new_blank (gint width, gint height, int palette)
GdkPixbuf * layer_to_pixbuf (weed_plant_t *layer)
gboolean weed_palette_is_resizable (int pal)
void gdk_pixbuf_set_opaque (GdkPixbuf *pixbuf)
void compact_rowstrides (weed_plant_t *layer)
void resize_layer (weed_plant_t *layer, int width, int height, int interp)
void letterbox_layer (weed_plant_t *layer, int width, int height, int nwidth, int nheight)
gboolean pixbuf_to_layer (weed_plant_t *layer, GdkPixbuf *pixbuf)
weed_plant_t * weed_layer_new (int width, int height, int *rowstrides, int current_palette)
weed_plant_t * weed_layer_copy (weed_plant_t *dlayer, weed_plant_t *slayer)
void weed_layer_free (weed_plant_t *layer)
int weed_layer_get_palette (weed_plant_t *layer)

Variables

static short max_Y
static short min_UV
static short max_UV
unsigned char gamma_lut [256]
double current_gamma = -1.

Define Documentation

#define USE_THREADS   1

Function Documentation

G_GNUC_CONST guchar CLAMP0255 ( gint32  a) [inline]
void compact_rowstrides ( weed_plant_t *  layer)
void* convert_addpost_frame_thread ( void *  data)
void* convert_addpre_frame_thread ( void *  data)
void* convert_bgr_to_uyvy_frame_thread ( void *  data)
void* convert_bgr_to_yuv_frame_thread ( void *  data)
void* convert_bgr_to_yuyv_frame_thread ( void *  data)
void* convert_delpost_frame_thread ( void *  data)
void* convert_delpre_frame_thread ( void *  data)
gboolean convert_layer_palette ( weed_plant_t *  layer,
int  outpl,
int  op_clamping 
)
gboolean convert_layer_palette_full ( weed_plant_t *  layer,
int  outpl,
int  osamtype,
gboolean  oclamping,
int  osubspace 
)
void convert_rgb_to_uyvy_frame ( guchar *  rgbdata,
gint  hsize,
gint  vsize,
gint  rowstride,
uyvy_macropixel u,
gboolean  has_alpha,
gboolean  clamped,
int  thread_id 
)
void* convert_rgb_to_uyvy_frame_thread ( void *  data)
void convert_rgb_to_yuv420_frame ( guchar *  rgbdata,
gint  hsize,
gint  vsize,
gint  rowstride,
guchar **  dest,
gboolean  is_422,
gboolean  has_alpha,
int  samtype,
gboolean  clamped 
)
void* convert_rgb_to_yuv_frame_thread ( void *  data)
void* convert_rgb_to_yuyv_frame_thread ( void *  data)
void* convert_swab_frame_thread ( void *  data)
void* convert_swap3_frame_thread ( void *  data)
void* convert_swap3addpost_frame_thread ( void *  data)
void* convert_swap3addpre_frame_thread ( void *  data)
void* convert_swap3delpost_frame_thread ( void *  data)
void* convert_swap3delpre_frame_thread ( void *  data)
void* convert_swap3postalpha_frame_thread ( void *  data)
void* convert_swap4_frame_thread ( void *  data)
void* convert_swapprepost_frame_thread ( void *  data)
void* convert_uyvy_to_bgr_frame_thread ( void *  data)
void* convert_uyvy_to_rgb_frame_thread ( void *  data)
void* convert_yuyv_to_bgr_frame_thread ( void *  data)
void* convert_yuyv_to_rgb_frame_thread ( void *  data)
void create_empty_pixel_data ( weed_plant_t *  layer,
gboolean  black_fill,
gboolean  may_contig 
)
int fourccp_to_weedp ( unsigned int  fourcc,
int  bpp,
lives_interlace_t interlace,
int *  sampling,
int *  sspace,
int *  clamping 
)
G_GNUC_CONST int gdk_last_rowstride_value ( int  width,
int  nchans 
) [inline]
gboolean gdk_pixbuf_is_all_black ( GdkPixbuf *  pixbuf)
GdkPixbuf* gdk_pixbuf_new_blank ( gint  width,
gint  height,
int  palette 
)
void gdk_pixbuf_set_opaque ( GdkPixbuf *  pixbuf)
G_GNUC_CONST int gdk_rowstride_value ( int  rowstride) [inline]
GdkPixbuf* layer_to_pixbuf ( weed_plant_t *  layer)
void letterbox_layer ( weed_plant_t *  layer,
int  width,
int  height,
int  nwidth,
int  nheight 
)
gboolean pixbuf_to_layer ( weed_plant_t *  layer,
GdkPixbuf *  pixbuf 
)
void pixel_data_planar_from_membuf ( void **  pixel_data,
void *  data,
size_t  size,
int  palette 
)
void resize_layer ( weed_plant_t *  layer,
int  width,
int  height,
int  interp 
)
void switch_yuv_clamping_and_subspace ( weed_plant_t *  layer,
int  oclamping,
int  osubspace 
)
void switch_yuv_sampling ( weed_plant_t *  layer)
weed_plant_t* weed_layer_copy ( weed_plant_t *  dlayer,
weed_plant_t *  slayer 
)
void weed_layer_free ( weed_plant_t *  layer)
int weed_layer_get_palette ( weed_plant_t *  layer)
weed_plant_t* weed_layer_new ( int  width,
int  height,
int *  rowstrides,
int  current_palette 
)
gint weed_palette_get_bits_per_macropixel ( int  pal) [inline]
gdouble weed_palette_get_compression_ratio ( int  pal)
const char* weed_palette_get_name ( int  pal)
gchar* weed_palette_get_name_full ( int  pal,
int  clamped,
int  subspace 
)
gint weed_palette_get_numplanes ( int  pal) [inline]
gint weed_palette_get_pixels_per_macropixel ( int  pal) [inline]
gdouble weed_palette_get_plane_ratio_horizontal ( int  pal,
int  plane 
) [inline]
gdouble weed_palette_get_plane_ratio_vertical ( int  pal,
int  plane 
) [inline]
gboolean weed_palette_has_alpha_channel ( int  pal) [inline]
gboolean weed_palette_is_alpha_palette ( int  pal) [inline]
gboolean weed_palette_is_float_palette ( int  pal) [inline]
gboolean weed_palette_is_lower_quality ( int  p1,
int  p2 
)

return TRUE if p1 is lower quality than p2

gboolean weed_palette_is_resizable ( int  pal) [inline]
gboolean weed_palette_is_rgb_palette ( int  pal) [inline]
gboolean weed_palette_is_valid_palette ( int  pal) [inline]
gboolean weed_palette_is_yuv_palette ( int  pal) [inline]
const char* weed_yuv_clamping_get_name ( int  clamping)
const char* weed_yuv_subspace_get_name ( int  subspace)

Variable Documentation

double current_gamma = -1.
unsigned char gamma_lut[256]
short max_UV
short max_Y
short min_UV
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines