Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active June 20, 2018 04:17
Show Gist options
  • Save kjunichi/8fcbe2df86b0e3c5cb64 to your computer and use it in GitHub Desktop.
Save kjunichi/8fcbe2df86b0e3c5cb64 to your computer and use it in GitHub Desktop.

構文解析にもmrubyのAPIが使えるのでは?

c++でのロジック

//Image tmp;

Blob blob;

while(numfilter>0) { filter(tmpimage,params) --numfilter; }

filter毎のパラメータ

パラメータを文字列型で持てば -> mrb_value型で、mrubyのオブジェクトを持たせてしまおう

JSONってどうだろか? 型:値 { command: 'blur', params : {'double':'1.3','double':'8'} }

ramdiskで動的にC++コードを生成して実行するとか

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment