int BlurZoomMain::start_realtime() { buf_width_blocks = project_frame_w / 32; buf_width = buf_width_blocks * 32; buf_height = project_frame_h; buf_area = buf_width * buf_height; buf_margin_left = (project_frame_w - buf_width) / 2; buf_margin_right = project_frame_w - buf_width - buf_margin_left; blurzoombuf = new unsigned char[buf_area * 2]; blurzoomx = new int[buf_width]; blurzoomy = new int[buf_height]; set_table(); make_palette(); bzero(blurzoombuf, buf_area * 2); background = new uint16_t[project_frame_w * project_frame_h]; diff = new unsigned char[project_frame_w * project_frame_h]; image_set_threshold_y(MAGIC_THRESHOLD); blurzoom_server = new BlurZoomServer(this, 1, 1); return 0; }
static int start(void) { image_set_threshold_y(40); bgIsSet = 0; stat = 1; return 0; }
static int start(void) { image_set_threshold_y(MAGIC_THRESHOLD); bgIsSet = 0; stat = 1; return 0; }
static int start() { image_set_threshold_y(40); field1 = field; field2 = field + video_area; clear_field(); stat = 1; return 0; }
static int start(effect* e) { mosaic_t * priv = e->priv; image_init(e); image_set_threshold_y(e, MAGIC_THRESHOLD); priv->bgIsSet = 0; priv->stat = 1; return 0; }