1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef ANDROID_RS_SCRIPT_INTRINSIC_H
- #define ANDROID_RS_SCRIPT_INTRINSIC_H
- #include "rsScript.h"
- namespace android {
- namespace renderscript {
- class ScriptIntrinsic : public Script {
- public:
- ObjectBaseRef<const Element> mElement;
- explicit ScriptIntrinsic(Context *);
- ~ScriptIntrinsic() override;
- bool init(Context *rsc, RsScriptIntrinsicID iid, Element *e);
- void serialize(Context *rsc, OStream *stream) const override;
- RsA3DClassID getClassId() const override;
- bool freeChildren() override;
- void runForEach(Context* rsc,
- uint32_t slot,
- const Allocation ** ains,
- size_t inLen,
- Allocation* aout,
- const void* usr,
- size_t usrBytes,
- const RsScriptCall* sc = nullptr) override;
- void runReduce(Context *rsc, uint32_t slot,
- const Allocation ** ains, size_t inLen,
- Allocation *aout, const RsScriptCall *sc) override;
- void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) override;
- void setupScript(Context *rsc) override;
- uint32_t run(Context *) override;
- bool isIntrinsic() const override { return true; }
- protected:
- uint32_t mIntrinsicID;
- };
- }
- }
- #endif
|