]> git.sesse.net Git - movit/blobdiff - effect_chain.h
Fix YCbCrInput after the ResourcePool texture changes.
[movit] / effect_chain.h
index 6cd689d7c38f0b8386deb007d88ad1449a0f18cf..a544e833bf4bc80029c6f61a7276203aab5c8358 100644 (file)
@@ -174,6 +174,12 @@ public:
        void replace_sender(Node *new_sender, Node *receiver);
        void insert_node_between(Node *sender, Node *middle, Node *receiver);
 
+       // Get the current resource pool assigned to this EffectChain.
+       // Primarily to let effects allocate textures as needed.
+       // Any resources you get from the pool must be returned to the pool
+       // no later than in the Effect's destructor.
+       ResourcePool *get_resource_pool() { return resource_pool; }
+
 private:
        // Make sure the output rectangle is at least large enough to hold
        // the given input rectangle in both dimensions, and is of the