X-Git-Url: http://git.ieval.ro/?p=io-compress-brotli.git;a=blobdiff_plain;f=lib%2FIO%2FCompress%2FBrotli.pm;h=f1b76e219a29dd6dcfa03360a68959caa8c7af33;hp=a41c09bda19e2a8f7b292e86dead062173c59bac;hb=593b81c0d82458c00172fac374508871d21da050;hpb=00ae8d0fa1b1a86190cf9229db8e5d0d860c1871 diff --git a/lib/IO/Compress/Brotli.pm b/lib/IO/Compress/Brotli.pm index a41c09b..f1b76e2 100644 --- a/lib/IO/Compress/Brotli.pm +++ b/lib/IO/Compress/Brotli.pm @@ -3,15 +3,14 @@ package IO::Compress::Brotli; use 5.014000; use strict; use warnings; +use parent qw/Exporter/; use IO::Uncompress::Brotli; -use parent qw/Exporter/; - our @EXPORT = qw/bro/; our @EXPORT_OK = @EXPORT; -our $VERSION = '0.001001'; +our $VERSION = '0.004001'; my %BROTLI_ENCODER_MODE = ( generic => 0, text => 1, font => 2 ); sub mode { @@ -64,10 +63,12 @@ function. =over -=item B(I<$input>) +=item B(I<$input>, I<$quality>, I<$window>) Takes a whole uncompressed buffer as input and returns the compressed -data. +data using the supplied quality and window parameters. If quality and +window parameters are not supplied, default values are used (as +described under the object-oriented interface). Exported by default. @@ -133,9 +134,24 @@ Brotli source code: L Marius Gavrilescu, Emarius@ieval.roE +The encoder bindings, modernisation of the decoder bindings and a +clean up of the overall project were contributed by: + +=over + +=item Quim Rovira, Equim@rovira.catE + +=item Ævar Arnfjörð Bjarmason, Eavarab@gmail.comE + +=item Marcell Szathmári + +=item Mattia Barbon, Emattia@barbon.orgE + +=back + =head1 COPYRIGHT AND LICENSE -Copyright (C) 2015 by Marius Gavrilescu +Copyright (C) 2015-2018 by Marius Gavrilescu This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or,