From 922b237d9e1ee0721cf5f2b0544f5727abf74de5 Mon Sep 17 00:00:00 2001 From: Henri Chain Date: Mon, 23 May 2016 17:24:00 +0200 Subject: [PATCH] Add changelog --- libvips/foreign/radiance.c | 18 ++++++++++-------- libvips/foreign/radsave.c | 2 ++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libvips/foreign/radiance.c b/libvips/foreign/radiance.c index f52056af..0a663153 100644 --- a/libvips/foreign/radiance.c +++ b/libvips/foreign/radiance.c @@ -15,6 +15,8 @@ * 23/1/14 * - put the reader globals into a struct so we can have many active * readers + * 23/5/16 + * - Add buffer save functions */ /* @@ -1458,10 +1460,10 @@ scanline_write_buf( COLR *scanline, int width, WriteBuf *wbuf ) } /* An RLE scanline. Write magic header. */ - PUTC_BUF( 2 ); - PUTC_BUF( 2 ); - PUTC_BUF( width >> 8 ); - PUTC_BUF( width & 255 ); + PUTC( 2 ); + PUTC( 2 ); + PUTC( width >> 8 ); + PUTC( width & 255 ); for( i = 0; i < 4; i++ ) { for( j = 0; j < width; ) { @@ -1495,17 +1497,17 @@ scanline_write_buf( COLR *scanline, int width, WriteBuf *wbuf ) int k; - PUTC_BUF( len ); + PUTC( len ); for( k = 0; k < len; k++ ) - PUTC_BUF( p[k][i] ); + PUTC( p[k][i] ); j += len; } /* Code the run we found, if any */ if( cnt >= MINRUN ) { - PUTC_BUF( 128 + cnt ); - PUTC_BUF( scanline[j][i] ); + PUTC( 128 + cnt ); + PUTC( scanline[j][i] ); j += cnt; } } diff --git a/libvips/foreign/radsave.c b/libvips/foreign/radsave.c index 8cfca8ae..9d3a6614 100644 --- a/libvips/foreign/radsave.c +++ b/libvips/foreign/radsave.c @@ -2,6 +2,8 @@ * * 2/12/11 * - wrap a class around the rad writer + * 23/5/16 + * - split into file and buffer save classes */ /*