Pnm.pm (PDL-2.080) | : | Pnm.pm (PDL-2.081) | ||
---|---|---|---|---|
skipping to change at line 59 | skipping to change at line 59 | |||
my $sz = 8*howbig($type); | my $sz = 8*howbig($type); | |||
$sz-- if !PDL::Type->new($type)->unsigned; | $sz-- if !PDL::Type->new($type)->unsigned; | |||
return ((1 << $sz)-1); | return ((1 << $sz)-1); | |||
} | } | |||
#line 62 "Pnm.pm" | #line 62 "Pnm.pm" | |||
=head1 FUNCTIONS | =head1 FUNCTIONS | |||
=cut | =cut | |||
#line 948 "../../blib/lib/PDL/PP.pm" | #line 949 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | |||
=head2 pnminraw | =head2 pnminraw | |||
=for sig | =for sig | |||
Signature: (type(); byte+ [o] im(m,n); int ms => m; int ns => n; | Signature: (type(); byte+ [o] im(m,n); int ms => m; int ns => n; | |||
int isbin; PerlIO *fp) | int isbin; PerlIO *fp) | |||
=for ref | =for ref | |||
skipping to change at line 85 | skipping to change at line 85 | |||
C<im> follows I<strictly> the type of C<type>). | C<im> follows I<strictly> the type of C<type>). | |||
=for bad | =for bad | |||
pnminraw does not process bad values. | pnminraw does not process bad values. | |||
It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | |||
=cut | =cut | |||
#line 105 "Pnm.pm" | #line 105 "Pnm.pm" | |||
#line 950 "../../blib/lib/PDL/PP.pm" | #line 951 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | |||
*pnminraw = \&PDL::pnminraw; | *pnminraw = \&PDL::pnminraw; | |||
#line 112 "Pnm.pm" | #line 112 "Pnm.pm" | |||
#line 948 "../../blib/lib/PDL/PP.pm" | #line 949 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | |||
=head2 pnminascii | =head2 pnminascii | |||
=for sig | =for sig | |||
Signature: (type(); byte+ [o] im(m,n); int ms => m; int ns => n; | Signature: (type(); byte+ [o] im(m,n); int ms => m; int ns => n; | |||
int format; PerlIO *fp) | int format; PerlIO *fp) | |||
=for ref | =for ref | |||
Read in an ascii pnm file. | Read in an ascii pnm file. | |||
=for bad | =for bad | |||
pnminascii does not process bad values. | pnminascii does not process bad values. | |||
It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | |||
=cut | =cut | |||
#line 140 "Pnm.pm" | #line 140 "Pnm.pm" | |||
#line 950 "../../blib/lib/PDL/PP.pm" | #line 951 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | |||
*pnminascii = \&PDL::pnminascii; | *pnminascii = \&PDL::pnminascii; | |||
#line 147 "Pnm.pm" | #line 147 "Pnm.pm" | |||
#line 948 "../../blib/lib/PDL/PP.pm" | #line 949 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | |||
=head2 pnmout | =head2 pnmout | |||
=for sig | =for sig | |||
Signature: (a(m); int israw; int isbin; PerlIO *fp) | Signature: (a(m); int israw; int isbin; PerlIO *fp) | |||
=for ref | =for ref | |||
Write a line of pnm data. | Write a line of pnm data. | |||
skipping to change at line 139 | skipping to change at line 139 | |||
naturally. | naturally. | |||
=for bad | =for bad | |||
pnmout does not process bad values. | pnmout does not process bad values. | |||
It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | It will set the bad-value flag of all output ndarrays if the flag is set for any of the input ndarrays. | |||
=cut | =cut | |||
#line 177 "Pnm.pm" | #line 177 "Pnm.pm" | |||
#line 950 "../../blib/lib/PDL/PP.pm" | #line 951 "/home/osboxes/pdl-code/blib/lib/PDL/PP.pm" | |||
*pnmout = \&PDL::pnmout; | *pnmout = \&PDL::pnmout; | |||
#line 184 "Pnm.pm" | #line 184 "Pnm.pm" | |||
#line 47 "pnm.pd" | #line 47 "pnm.pd" | |||
=head2 rpnm | =head2 rpnm | |||
=for ref | =for ref | |||
End of changes. 6 change blocks. | ||||
6 lines changed or deleted | 6 lines changed or added |