Fixed some missing locals and also avoid dynamic allocation for the upsampler
Fixed some missing locals and also avoid dynamic allocation for the upsampler

JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug,JTriggerFish/protoplug