High-level synthesis and optimization of video signal processing IP