|
| void | dosavebitmap2 (void) |
| void | dosavebitmap (void) |
| void | dosavescreen (void) |
| void | dosaveshape1 (void) |
| void | dosaveshape2 (void) |
| void | dosavepalette (void) |
| void | bitchk (void) |
| void | bitchk2 (void) |
| void | scrchk (void) |
| void | sschk1 (void) |
| void | sschk2 (void) |
| static void | put_l (UBYTE **p, ULONG v) |
| static void | put_w (UBYTE **p, UWORD v) |
| static void | makehead (const struct BitMap *bm) |
| static void | makecolor (const struct palette *pal) |
| static void | savearow (const UBYTE *row, const struct BitMap *bm) |
| static void | makebody (const struct BitMap *bm) |
| static void | fixhead (void) |
| static void | fixbody (void) |
| static void | savebm (const struct BitMap *bm, const char *name, const struct palette *pal, struct DosLibrary *dos) |
| static void | dosavebitmap2_c (const struct BitMap *bm, const char *name, struct DosLibrary *dos) |
| | SaveBitmap BitMap#,Filename$: save a bitmap as an ILBM file without a CMAP.
|
| | BLITZ_ALIAS (dosavebitmap2, dosavebitmap2_c) |
| static void | dosavebitmap_c (const struct BitMap *bm, const char *name, const struct palette *pal, struct DosLibrary *dos) |
| | SaveBitmap BitMap#,Filename$,Palette#: save a bitmap as an ILBM file with a CMAP; also the nullsub dosavebitmap for other libraries.
|
| static void | saveshape (const struct bb_shape *shape, const char *name, const struct palette *pal, struct DosLibrary *dos) |
| static void | dosaveshape1_c (const struct bb_shape *shape, const char *name, struct DosLibrary *dos) |
| | SaveShape Shape#,Filename$: save a shape as an ILBM file.
|
| | BLITZ_ALIAS (dosaveshape1, dosaveshape1_c) |
| static void | dosaveshape2_c (const struct bb_shape *shape, const char *name, const struct palette *pal, struct DosLibrary *dos) |
| | SaveShape Shape#,Filename$,Palette#: SaveShape with a CMAP of the palette (as SaveBitmap with a palette).
|
| | BLITZ_ALIAS (dosaveshape2, dosaveshape2_c) |
| static void | dosavepalette_c (const struct palette *pal, const char *name, struct DosLibrary *dos) |
| | SavePalette Palette#,Filename$: save a palette as a file with only the CMAP chunk (no FORM).
|
| | BLITZ_ALIAS (dosavepalette, dosavepalette_c) |
| static ULONG | makelong (UWORD v) |
| static void | dosavescreen_c (struct Screen **scr, const char *name, struct GfxBase *gfx, struct DosLibrary *dos) |
| | SaveScreen Screen#,Filename$: save a screen as an ILBM file with its colours.
|
| | BLITZ_ALIAS (dosavescreen, dosavescreen_c) |
| static void | scrchk_c (ULONG *scr) |
| static void | bitchk_c (UWORD *bm) |
| static void | palchk_c (const struct palette *pal) |
| static void | bitchk2_c (UWORD *bm, const struct palette *pal) |
| static void | sschk1_c (UWORD *shape) |
| static void | sschk2_c (UWORD *shape, const struct palette *pal) |
| void dosavebitmap2_c |
( |
const struct BitMap * | bm, |
|
|
const char * | name, |
|
|
struct DosLibrary * | dos ) |
|
static |
SaveBitmap BitMap#,Filename$: save a bitmap as an ILBM file without a CMAP.
FORM/ILBM/BMHD, the ByteRun1 packed BODY (see the head comment). Amiga mode only. Errors: "Can't open File" if the file cannot be created (the message in the normal code, fixed, #185); debugger only: "Uninitialized Bitmap" (bitchk). By design (#181): the row and plane loops run at least once. Fixed (#183): savearow no longer reads the byte behind the row. Fixed (#180): the plane loop compares with the byte Depth (the original: the word over Flags and Depth).
- Parameters
-
| bm | a0: the BitMap (!libs {bitmaplib,$1080}) |
| name | d1: the file name |
| dos | a6: dos.library |
| void dosavebitmap_c |
( |
const struct BitMap * | bm, |
|
|
const char * | name, |
|
|
const struct palette * | pal, |
|
|
struct DosLibrary * | dos ) |
|
static |
SaveBitmap BitMap#,Filename$,Palette#: save a bitmap as an ILBM file with a CMAP; also the nullsub dosavebitmap for other libraries.
As SaveBitmap without a palette, plus the CMAP chunk (3 bytes per colour, the top bytes of the palette's longs) when a palette is given. Errors (debugger only): also "Uninitialized Palette" (bitchk2; also for a palette of 0 colours, fixed #182: the original wrote 65536 colours over the end of the buffer). Fixed (#184): a CMAP of an odd size gets the pad byte.
- Parameters
-
| bm | a0: the BitMap (!libs {bitmaplib,$1080}) |
| name | d1: the file name |
| pal | a1: the palette (!libs {palettelib,$1182}), for other libraries 0 = none |
| dos | a6: dos.library |
| void dosavescreen_c |
( |
struct Screen ** | scr, |
|
|
const char * | name, |
|
|
struct GfxBase * | gfx, |
|
|
struct DosLibrary * | dos ) |
|
static |
SaveScreen Screen#,Filename$: save a screen as an ILBM file with its colours.
The palette from the screen's ColorMap (at most 256 colours): with Exec 39+ (environlib ExecVersion; a signed word compare, not a bug) GetRGB32 one colour at a time, before that the 4 bit values of the ColorTable spread to 32 bits. The BitMap is copied (64 bytes from the RastPort's BitMap, Flags cleared), then saved as SaveBitmap with a palette. Amiga mode only. Errors: as SaveBitmap; debugger only: "Uninitialized
Screen" (scrchk). Not a bug in practice (#182): a ColorMap of 0 colours would run the colour loops 65536 times; a screen always has colours.
- Parameters
-
| scr | a0: the screen object (!libs {screenslib,$1080}) |
| name | d1: the file name |
| gfx | a1: graphics.library |
| dos | a6: dos.library |
| void dosaveshape1_c |
( |
const struct bb_shape * | shape, |
|
|
const char * | name, |
|
|
struct DosLibrary * | dos ) |
|
static |
SaveShape Shape#,Filename$: save a shape as an ILBM file.
The shape is described as a BitMap (BytesPerRow = its even byte width, Rows = its height, the depth word, plane pointers from its data in steps of its plane size); the BMHD width is the shape's pixel width. Amiga mode only. Errors as SaveBitmap; debugger only: "Uninitialized Shape" (sschk1). Errors: also "Illegal Shape Depth" for a depth of 0 or more than 14 (fixed, #326: the original wrote 65536 plane pointers for depth 0 and ran past the 14 pointers of tempbm from depth 15 on).
- Parameters
-
| shape | a0: the shape (!libs {shapeslib,$1080}) |
| name | d1: the file name |
| dos | a6: dos.library |