Blender V2.61 - r43446
|
#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 ImBuf * | make_waveform_view_from_ibuf_byte (struct ImBuf *ibuf) |
static struct ImBuf * | make_waveform_view_from_ibuf_float (struct ImBuf *ibuf) |
struct ImBuf * | make_waveform_view_from_ibuf (struct ImBuf *ibuf) |
static struct ImBuf * | make_sep_waveform_view_from_ibuf_byte (struct ImBuf *ibuf) |
static struct ImBuf * | make_sep_waveform_view_from_ibuf_float (struct ImBuf *ibuf) |
struct ImBuf * | make_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 ImBuf * | make_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 ImBuf * | make_histogram_view_from_ibuf_byte (struct ImBuf *ibuf) |
static int | get_bin_float (float f) |
static struct ImBuf * | make_histogram_view_from_ibuf_float (struct ImBuf *ibuf) |
struct ImBuf * | make_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 ImBuf * | make_vectorscope_view_from_ibuf_byte (struct ImBuf *ibuf) |
static struct ImBuf * | make_vectorscope_view_from_ibuf_float (struct ImBuf *ibuf) |
struct ImBuf * | make_vectorscope_view_from_ibuf (struct ImBuf *ibuf) |
Definition in file sequencer_scopes.c.
static void draw_histogram_bar | ( | struct ImBuf * | ibuf, |
int | x, | ||
float | val, | ||
int | col | ||
) | [static] |
Definition at line 449 of file sequencer_scopes.c.
References i, p, ImBuf::rect, ImBuf::x, and ImBuf::y.
Referenced by make_histogram_view_from_ibuf_byte(), and make_histogram_view_from_ibuf_float().
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().
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().
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.
Definition at line 560 of file sequencer_scopes.c.
References make_histogram_view_from_ibuf_byte(), make_histogram_view_from_ibuf_float(), and ImBuf::rect_float.
Referenced by draw_image_seq().
Definition at line 463 of file sequencer_scopes.c.
References draw_histogram_bar(), IB_rect, IMB_allocImBuf(), ImBuf::rect, wform_put_border(), ImBuf::x, and ImBuf::y.
Referenced by make_histogram_view_from_ibuf().
Definition at line 518 of file sequencer_scopes.c.
References draw_histogram_bar(), draw_histogram_marker(), get_bin_float(), IB_rect, IMB_allocImBuf(), ImBuf::rect, ImBuf::rect_float, wform_put_border(), ImBuf::x, and ImBuf::y.
Referenced by make_histogram_view_from_ibuf().
Definition at line 352 of file sequencer_scopes.c.
References make_sep_waveform_view_from_ibuf_byte(), make_sep_waveform_view_from_ibuf_float(), and ImBuf::rect_float.
Referenced by draw_image_seq().
Definition at line 249 of file sequencer_scopes.c.
References IB_rect, IMB_allocImBuf(), NULL, p, pow(), ImBuf::rect, scope_put_pixel_single(), simple_enum_gen::w, wform_put_border(), wform_put_grid(), wform_put_line_single(), ImBuf::x, and ImBuf::y.
Referenced by make_sep_waveform_view_from_ibuf().
Definition at line 298 of file sequencer_scopes.c.
References CLAMP(), IB_rect, IMB_allocImBuf(), NULL, p, pow(), ImBuf::rect, ImBuf::rect_float, scope_put_pixel_single(), simple_enum_gen::w, wform_put_border(), wform_put_grid(), wform_put_line_single(), ImBuf::x, and ImBuf::y.
Referenced by make_sep_waveform_view_from_ibuf().
Definition at line 695 of file sequencer_scopes.c.
References make_vectorscope_view_from_ibuf_byte(), make_vectorscope_view_from_ibuf_float(), and ImBuf::rect_float.
Referenced by draw_image_seq().
Definition at line 598 of file sequencer_scopes.c.
References IB_rect, IMB_allocImBuf(), p, pow(), ImBuf::rect, rgb_to_yuv_normalized(), scope_put_pixel(), vectorscope_put_cross(), simple_enum_gen::w, ImBuf::x, and ImBuf::y.
Referenced by make_vectorscope_view_from_ibuf().
Definition at line 645 of file sequencer_scopes.c.
References CLAMP(), IB_rect, IMB_allocImBuf(), p, pow(), ImBuf::rect, ImBuf::rect_float, rgb_to_yuv_normalized(), scope_put_pixel(), vectorscope_put_cross(), simple_enum_gen::w, ImBuf::x, and ImBuf::y.
Referenced by make_vectorscope_view_from_ibuf().
Definition at line 239 of file sequencer_scopes.c.
References make_waveform_view_from_ibuf_byte(), make_waveform_view_from_ibuf_float(), and ImBuf::rect_float.
Referenced by draw_image_seq().
Definition at line 150 of file sequencer_scopes.c.
References IB_rect, IMB_allocImBuf(), NULL, p, pow(), ImBuf::rect, rgb_to_luma_byte(), scope_put_pixel(), simple_enum_gen::w, wform_put_border(), wform_put_grid(), wform_put_line(), ImBuf::x, and ImBuf::y.
Referenced by make_waveform_view_from_ibuf().
Definition at line 193 of file sequencer_scopes.c.
References CLAMP(), IB_rect, IMB_allocImBuf(), NULL, p, pow(), ImBuf::rect, ImBuf::rect_float, rgb_to_luma(), scope_put_pixel(), simple_enum_gen::w, wform_put_border(), wform_put_grid(), wform_put_line(), ImBuf::x, and ImBuf::y.
Referenced by make_waveform_view_from_ibuf().
Definition at line 423 of file sequencer_scopes.c.
References draw_zebra_byte(), draw_zebra_float(), IB_rect, IMB_allocImBuf(), ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by draw_image_seq().
static void rgb_to_yuv_normalized | ( | const float | rgb[3], |
float | yuv[3] | ||
) | [static] |
Definition at line 42 of file sequencer_scopes.c.
Referenced by make_vectorscope_view_from_ibuf_byte(), make_vectorscope_view_from_ibuf_float(), and vectorscope_put_cross().
static void scope_put_pixel | ( | unsigned char * | table, |
unsigned char * | pos | ||
) | [static] |
Definition at line 56 of file sequencer_scopes.c.
Referenced by make_vectorscope_view_from_ibuf_byte(), make_vectorscope_view_from_ibuf_float(), make_waveform_view_from_ibuf_byte(), and make_waveform_view_from_ibuf_float().
static void scope_put_pixel_single | ( | unsigned char * | table, |
unsigned char * | pos, | ||
int | col | ||
) | [static] |
Definition at line 63 of file sequencer_scopes.c.
Referenced by make_sep_waveform_view_from_ibuf_byte(), and make_sep_waveform_view_from_ibuf_float().
static void vectorscope_put_cross | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b, | ||
char * | tgt, | ||
int | w, | ||
int | h, | ||
int | size | ||
) | [static] |
Definition at line 569 of file sequencer_scopes.c.
References g, p, rgb_to_yuv_normalized(), size(), ImBuf::x, and ImBuf::y.
Referenced by make_vectorscope_view_from_ibuf_byte(), and make_vectorscope_view_from_ibuf_float().
static void wform_put_border | ( | unsigned char * | tgt, |
int | w, | ||
int | h | ||
) | [static] |
Definition at line 107 of file sequencer_scopes.c.
References p, simple_enum_gen::w, ImBuf::x, and ImBuf::y.
Referenced by make_histogram_view_from_ibuf_byte(), make_histogram_view_from_ibuf_float(), make_sep_waveform_view_from_ibuf_byte(), make_sep_waveform_view_from_ibuf_float(), make_waveform_view_from_ibuf_byte(), and make_waveform_view_from_ibuf_float().
static void wform_put_grid | ( | unsigned char * | tgt, |
int | w, | ||
int | h | ||
) | [static] |
Definition at line 143 of file sequencer_scopes.c.
References wform_put_gridrow().
Referenced by make_sep_waveform_view_from_ibuf_byte(), make_sep_waveform_view_from_ibuf_float(), make_waveform_view_from_ibuf_byte(), and make_waveform_view_from_ibuf_float().
static void wform_put_gridrow | ( | unsigned char * | tgt, |
float | perc, | ||
int | w, | ||
int | h | ||
) | [static] |
static void wform_put_line | ( | int | w, |
unsigned char * | last_pos, | ||
unsigned char * | new_pos | ||
) | [static] |
Definition at line 71 of file sequencer_scopes.c.
References simple_enum_gen::w.
Referenced by make_waveform_view_from_ibuf_byte(), and make_waveform_view_from_ibuf_float().
static void wform_put_line_single | ( | int | w, |
unsigned char * | last_pos, | ||
unsigned char * | new_pos, | ||
int | col | ||
) | [static] |
Definition at line 89 of file sequencer_scopes.c.
References simple_enum_gen::w.
Referenced by make_sep_waveform_view_from_ibuf_byte(), and make_sep_waveform_view_from_ibuf_float().