From d7535bf1529ac104c795f17e44f23333c548db0e Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Tue, 6 Apr 1999 02:39:22 +0200 Subject: [PATCH] Fixed documentation Rev: src/modules/Image/encodings/tga.c:1.2 --- src/modules/Image/encodings/tga.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/modules/Image/encodings/tga.c b/src/modules/Image/encodings/tga.c index 7aa97f752e..66f25b3eb7 100644 --- a/src/modules/Image/encodings/tga.c +++ b/src/modules/Image/encodings/tga.c @@ -1,8 +1,8 @@ /* - * $Id: tga.c,v 1.1 1999/04/06 00:37:29 per Exp $ + * $Id: tga.c,v 1.2 1999/04/06 00:39:22 per Exp $ * - * TGA codec for pike. Based on the tga plugin for gimp. + * Targa codec for pike. Based on the tga plugin for gimp. * * The information below is from the original TGA module. * @@ -27,8 +27,6 @@ - - /* **! module Image **! submodule TGA @@ -805,15 +803,10 @@ static struct buffer save_tga(struct image *img, struct image *alpha, - - - - - -/* Pike wrappers. */ +/* Pike functions. */ /* **! method object _decode(string data) -**! Decodes a TGA image to a mapping. +**! Decodes a Targa image to a mapping. **! The mapping follows this format: **! ([ "image":img_object, "alpha":alpha_channel ]) **! @@ -838,7 +831,7 @@ void image_tga__decode( INT32 args ) /* **! method object decode(string data) -**! Decodes a PNG image. +**! Decodes a Targa image. **! **! note **! Throws upon error in data. @@ -858,7 +851,7 @@ void image_tga_decode( INT32 args ) /* **! method string encode(object image) **! method string encode(object image, mapping options) -**! Encodes a PNG image. +**! Encodes a Targa image. **! **! The <tt>options</tt> argument may be a mapping **! containing zero or more encoding options: @@ -867,7 +860,7 @@ void image_tga_decode( INT32 args ) **! normal options: **! "alpha":image object **! Use this image as alpha channel -**! (Note: TGA alpha channel is grey. +**! (Note: Targa alpha channel is grey. **! The values are calculated by (r+2g+b)/4.) **! **! "raw":1 @@ -875,8 +868,6 @@ void image_tga_decode( INT32 args ) **! **! </pre> **! -**! note -**! Please read some about PNG files. */ static struct pike_string *param_raw; -- GitLab