Blender V2.61 - r43446
Functions

sequencer_scopes.c File Reference

#include <math.h>
#include <string.h>
#include "BLI_math_color.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "sequencer_intern.h"

Go to the source code of this file.

Functions

static void rgb_to_yuv_normalized (const float rgb[3], float yuv[3])
static void scope_put_pixel (unsigned char *table, unsigned char *pos)
static void scope_put_pixel_single (unsigned char *table, unsigned char *pos, int col)
static void wform_put_line (int w, unsigned char *last_pos, unsigned char *new_pos)
static void wform_put_line_single (int w, unsigned char *last_pos, unsigned char *new_pos, int col)
static void wform_put_border (unsigned char *tgt, int w, int h)
static void wform_put_gridrow (unsigned char *tgt, float perc, int w, int h)
static void wform_put_grid (unsigned char *tgt, int w, int h)
static struct ImBufmake_waveform_view_from_ibuf_byte (struct ImBuf *ibuf)
static struct ImBufmake_waveform_view_from_ibuf_float (struct ImBuf *ibuf)
struct ImBufmake_waveform_view_from_ibuf (struct ImBuf *ibuf)
static struct ImBufmake_sep_waveform_view_from_ibuf_byte (struct ImBuf *ibuf)
static struct ImBufmake_sep_waveform_view_from_ibuf_float (struct ImBuf *ibuf)
struct ImBufmake_sep_waveform_view_from_ibuf (struct ImBuf *ibuf)
static void draw_zebra_byte (struct ImBuf *src, struct ImBuf *ibuf, float perc)
static void draw_zebra_float (struct ImBuf *src, struct ImBuf *ibuf, float perc)
struct ImBufmake_zebra_view_from_ibuf (struct ImBuf *src, float perc)
static void draw_histogram_marker (struct ImBuf *ibuf, int x)
static void draw_histogram_bar (struct ImBuf *ibuf, int x, float val, int col)
static struct ImBufmake_histogram_view_from_ibuf_byte (struct ImBuf *ibuf)
static int get_bin_float (float f)
static struct ImBufmake_histogram_view_from_ibuf_float (struct ImBuf *ibuf)
struct ImBufmake_histogram_view_from_ibuf (struct ImBuf *ibuf)
static void vectorscope_put_cross (unsigned char r, unsigned char g, unsigned char b, char *tgt, int w, int h, int size)
static struct ImBufmake_vectorscope_view_from_ibuf_byte (struct ImBuf *ibuf)
static struct ImBufmake_vectorscope_view_from_ibuf_float (struct ImBuf *ibuf)
struct ImBufmake_vectorscope_view_from_ibuf (struct ImBuf *ibuf)

Detailed Description

Definition in file sequencer_scopes.c.


Function Documentation

static void draw_histogram_bar ( struct ImBuf ibuf,
int  x,
float  val,
int  col 
) [static]
static void draw_histogram_marker ( struct ImBuf ibuf,
int  x 
) [static]

Definition at line 435 of file sequencer_scopes.c.

References i, p, ImBuf::rect, ImBuf::x, and ImBuf::y.

Referenced by make_histogram_view_from_ibuf_float().

static void draw_zebra_byte ( struct ImBuf src,
struct ImBuf ibuf,
float  perc 
) [static]

Definition at line 361 of file sequencer_scopes.c.

References g, p, ImBuf::rect, ImBuf::x, and ImBuf::y.

Referenced by make_zebra_view_from_ibuf().

static void draw_zebra_float ( struct ImBuf src,
struct ImBuf ibuf,
float  perc 
) [static]

Definition at line 392 of file sequencer_scopes.c.

References FTOCHAR, g, p, ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.

Referenced by make_zebra_view_from_ibuf().

static int get_bin_float ( float  f) [static]

Definition at line 507 of file sequencer_scopes.c.

struct ImBuf* make_histogram_view_from_ibuf ( struct ImBuf ibuf) [read]
static struct ImBuf* make_histogram_view_from_ibuf_byte ( struct ImBuf ibuf) [static, read]
static struct ImBuf* make_histogram_view_from_ibuf_float ( struct ImBuf ibuf) [static, read]
struct ImBuf* make_sep_waveform_view_from_ibuf ( struct ImBuf ibuf) [read]
static struct ImBuf* make_sep_waveform_view_from_ibuf_byte ( struct ImBuf ibuf) [static, read]
static struct ImBuf* make_sep_waveform_view_from_ibuf_float ( struct ImBuf ibuf) [static, read]
struct ImBuf* make_vectorscope_view_from_ibuf ( struct ImBuf ibuf) [read]
static struct ImBuf* make_vectorscope_view_from_ibuf_byte ( struct ImBuf ibuf) [static, read]
static struct ImBuf* make_vectorscope_view_from_ibuf_float ( struct ImBuf ibuf) [static, read]
struct ImBuf* make_waveform_view_from_ibuf ( struct ImBuf ibuf) [read]
static struct ImBuf* make_waveform_view_from_ibuf_byte ( struct ImBuf ibuf) [static, read]
static struct ImBuf* make_waveform_view_from_ibuf_float ( struct ImBuf ibuf) [static, read]
struct ImBuf* make_zebra_view_from_ibuf ( struct ImBuf src,
float  perc 
) [read]
static void rgb_to_yuv_normalized ( const float  rgb[3],
float  yuv[3] 
) [static]
static void scope_put_pixel ( unsigned char *  table,
unsigned char *  pos 
) [static]
static void scope_put_pixel_single ( unsigned char *  table,
unsigned char *  pos,
int  col 
) [static]
static void vectorscope_put_cross ( unsigned char  r,
unsigned char  g,
unsigned char  b,
char *  tgt,
int  w,
int  h,
int  size 
) [static]
static void wform_put_border ( unsigned char *  tgt,
int  w,
int  h 
) [static]
static void wform_put_grid ( unsigned char *  tgt,
int  w,
int  h 
) [static]
static void wform_put_gridrow ( unsigned char *  tgt,
float  perc,
int  w,
int  h 
) [static]

Definition at line 130 of file sequencer_scopes.c.

References i.

Referenced by wform_put_grid().

static void wform_put_line ( int  w,
unsigned char *  last_pos,
unsigned char *  new_pos 
) [static]
static void wform_put_line_single ( int  w,
unsigned char *  last_pos,
unsigned char *  new_pos,
int  col 
) [static]