Perl class for video frames pattern generating.