📄 tinatool.c
字号:
#include <tina/all_tina.h>tool_proc(void){ static int x = 395, y = 0; static int xr = 0, yr = 0; tv_tool(x+xr, y+yr); xr += 270; yr += 0; if (x+xr>700) { xr = yr = 0; y += 50; } if (y>400) y = 200;}static void stereo_tool_proc(void){ stereo_tool(150,150);}static void mono_tool_proc(void){ mono_tool(50, 50);}static void seq_tool_proc(void){ seq_tool(75, 75);}static void view_tool_proc(void){ view_tool(75,75);}static void terrain_tool_proc(void){ terrain_tool(75,75);} static void imcalc_tool_proc(void){ imcalc_tool(200,200);}static void calib_tool_proc(void){ calib_tool(250,250);}static void edge_tool_proc(void){ edge_tool(250,250);}static void corner_tool_proc(void){ corner_tool(250,250);}static void skeleton_tool_proc(void){ skeleton_tool(250,250);}static void denoise_3sigma_tool_proc(void){ denoise_3sigma_tool(0,250);}static void Newscremdegree_tool_proc(void)
{
im_scram_new_tool(0,350);
}static void scramble_tool_proc(void){ scramble_tool(0,280);}static void test_tool_proc(void){ test_tool(0,280);}static void mixscramble_tool_proc(void){ mixscramble_tool(0,260);}static void cut_tool_proc(void){ cut_tool(0,350);}static void repair_tool_proc(void){ repair_tool(0,400);}static void send_tool_proc(void){ send_client_tool(0,400);}static void receive_tool_proc(void){ receive_client_tool(0,400);}static void addnoise_tool_proc(void){ addnoise_tool(0,300);}static void time_tool_proc(void){ time_tool(0,500);}static void spdenoise_tool_proc(void){ spdenoise_tool(0,500);}int main(int argc, char **argv){ tw_init(&argc, argv); tw_tool("tinatool", 0, 0); tw_label("Display"); tw_button("New Tvtool", tool_proc, NULL); tw_button("View", view_tool_proc, NULL); tw_button("Terrain", terrain_tool_proc, NULL); tw_label(" "); tw_help_button("tinatool"); tw_newrow(); tw_sglobal("Macro File:", get_macro_file(), 18); tw_button("append", init_macro_proc,NULL); tw_button("close", save_macro_proc,NULL); tw_button("run", process_macro_proc, NULL); tw_newrow(); tw_label("File i/o"); tw_button("Mono", mono_tool_proc, NULL); tw_button("Stereo", stereo_tool_proc, NULL); tw_button("Sequence", seq_tool_proc, NULL); tw_newrow(); tw_label("Tools "); tw_button("Calib ", calib_tool_proc, NULL); tw_button("Imcalc ", imcalc_tool_proc, NULL); tw_button("Edge ", edge_tool_proc, NULL); tw_button("Corner ", corner_tool_proc, NULL); tw_newrow(); tw_label(" "); tw_button("Skeleton", skeleton_tool_proc, NULL); tw_newrow(); tw_label(" "); tw_button("3sigma",denoise_3sigma_tool_proc,NULL); tw_newrow(); tw_label("-----------------------------------------------------"); tw_newrow(); tw_button("newscramdegree", Newscremdegree_tool_proc, NULL); tw_button("scrambling",scramble_tool_proc,NULL); tw_button("test",test_tool_proc,NULL); tw_button("time",time_tool_proc,NULL); tw_newrow(); tw_button("mixscramble",mixscramble_tool_proc,NULL); tw_button("cut",cut_tool_proc,NULL); tw_button("repair",repair_tool_proc,NULL); tw_label(" "); tw_button("Add noise",addnoise_tool_proc,NULL); tw_newrow(); tw_button("send client",send_tool_proc,NULL); tw_button("receive client",receive_tool_proc,NULL); tw_button("denoise(s&p)",spdenoise_tool_proc,NULL); tw_newrow(); tw_textsw(10, 65); tw_end_tool(); tw_main_loop();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -