NAME

Video::Delay::Const - Video::Delay class for constant delay.

SYNOPSIS

use Video::Delay::Const;

my $obj = Video::Delay::Const->new(%parameters);
my $delay = $obj->delay;

METHODS

new(%parameters)
Constructor
  • const

    Constant delay in miliseconds.
    Default value is 1000.
delay()
Returns constant delay defined by 'const' parameter in miliseconds.

ERRORS

new():
        From Class::Utils::set_params():
                Unknown parameter '%s'.

EXAMPLE

use strict;
use warnings;

use Video::Delay::Const;

# Object.
my $obj = Video::Delay::Const->new(
        'const' => 1000,
);

# Print delay.
print $obj->delay."\n";
print $obj->delay."\n";
print $obj->delay."\n";

# Output:
# 1000
# 1000
# 1000

DEPENDENCIES

Class::Utils.

SEE ALSO

Video::Delay

Perl classes for delays between frames generation.

REPOSITORY

https://github.com/michal-josef-spacek/Video-Delay

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2012-2020 Michal Josef Špaček
BSD 2-Clause License

VERSION

0.07