私はRenderScriptについてのGoogleのドキュメントに更新情報(https://developer.android.com/guide/topics/renderscript/compute.html)があることがわかりました。RenderScriptに関するGoogleのコードは機能しませんか?
rs_allocation tmp = rsCreateAllocation_uchar4(imageWidth, imageHeight);
rsForEach(invert, inputImage, tmp);
rsForEach(greyscale, tmp, outputImage);
ので、私が知りたい: は1:これが起こる理由(私はSDKと思うので、私はそれをテストするためのコードですが、oはコードがあること
Error:(31, 23) error: implicit declaration of function 'rsCreateAllocation_uchar4' is invalid in C99
Error:(31, 17) error: initializing 'rs_allocation' (aka 'struct rs_allocation') with an expression of incompatible type 'int'
に関するエラーを得た使用しますapiは理由ですが、私はAS、SDK、SDKツールを最新版にアップデートしています)? 2:私は、第二の方法は、より高速なと思い
uchar4 RS_KERNEL root(uchr4 in, unit32_t x, uint32_t y)
と
void RS_KERNEL root(uchr4* in, uchar4* out, unit32_t x, uint32_t y)
の違いは何ですか?しかし私は確信が持てません。 ポインタをparamsとして使用する方法は、ポインタparamsを持つメソッドが高速であれば、root()(i test)という名前ではない関数に使用されます。RSで2つ以上のカーネル関数を使用する方法ファイル?
どのファイルがそのエラーを生成していますか?それは.rsや.cppファイルから来ているようです。 –
それはrsファイルからcoms。私はアンドロイドの開発者のウェブサイトからコードを取る。 –