Changeset 3e828ea in mainline for uspace/lib/draw
- Timestamp:
- 2019-09-23T12:49:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9be2358
- Parents:
- 9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
- Location:
- uspace/lib/draw
- Files:
-
- 1 deleted
- 15 edited
- 9 moved
-
Makefile (deleted)
-
codec/tga.c (modified) (1 diff)
-
codec/tga.gz.c (modified) (1 diff)
-
codec/webp.c (modified) (1 diff)
-
cursor.c (modified) (1 diff)
-
cursor/embedded.c (modified) (1 diff)
-
drawctx.c (modified) (1 diff)
-
font.c (modified) (1 diff)
-
font/bitmap_backend.c (modified) (1 diff)
-
font/embedded.c (modified) (1 diff)
-
font/pcf.c (modified) (1 diff)
-
gfx/cursor-11x18.c (modified) (1 diff)
-
gfx/font-8x16.c (modified) (1 diff)
-
include/draw/codec.h (moved) (moved from uspace/lib/draw/codec/tga.gz.h ) (2 diffs)
-
include/draw/cursor.h (moved) (moved from uspace/lib/draw/cursor.h ) (1 diff)
-
include/draw/drawctx.h (moved) (moved from uspace/lib/draw/drawctx.h )
-
include/draw/font.h (moved) (moved from uspace/lib/draw/font.h ) (3 diffs)
-
include/draw/gfx.h (moved) (moved from uspace/lib/draw/gfx/font-8x16.h ) (3 diffs)
-
include/draw/path.h (moved) (moved from uspace/lib/draw/path.h )
-
include/draw/source.h (moved) (moved from uspace/lib/draw/source.h )
-
include/draw/surface.h (moved) (moved from uspace/lib/draw/surface.h )
-
meson.build (moved) (moved from uspace/drv/fb/amdm37x_dispc/Makefile ) (2 diffs)
-
path.c (modified) (1 diff)
-
source.c (modified) (1 diff)
-
surface.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/draw/codec/tga.c
r9259d20 r3e828ea 40 40 #include <stdbool.h> 41 41 #include <pixconv.h> 42 #include "tga.h"42 #include <draw/codec.h> 43 43 44 44 typedef struct { -
uspace/lib/draw/codec/tga.gz.c
r9259d20 r3e828ea 37 37 #include <gzip.h> 38 38 #include <stdlib.h> 39 #include "tga.gz.h" 40 #include "tga.h" 39 #include <draw/codec.h> 41 40 42 41 /** Decode gzipped Truevision TGA format -
uspace/lib/draw/codec/webp.c
r9259d20 r3e828ea 42 42 #include <stdint.h> 43 43 #include <abi/fourcc.h> 44 #include "webp.h"44 #include <draw/codec.h> 45 45 46 46 /** Check for input buffer overrun condition */ -
uspace/lib/draw/cursor.c
r9259d20 r3e828ea 36 36 #include <stdlib.h> 37 37 38 #include "cursor.h" 39 #include "cursor/embedded.h" 38 #include <draw/cursor.h> 40 39 41 40 void cursor_init(cursor_t *cursor, cursor_decoder_type_t decoder, char *path) -
uspace/lib/draw/cursor/embedded.c
r9259d20 r3e828ea 39 39 #include <stdlib.h> 40 40 41 #include "../gfx/cursor-11x18.h"42 #include "embedded.h"43 #include "../surface.h"41 #include <draw/gfx.h> 42 #include <draw/cursor.h> 43 #include <draw/surface.h> 44 44 45 45 static void cde_init(char *path, uint8_t *state_count, void **data) -
uspace/lib/draw/drawctx.c
r9259d20 r3e828ea 38 38 #include <stdlib.h> 39 39 40 #include "drawctx.h"40 #include <draw/drawctx.h> 41 41 42 42 void drawctx_init(drawctx_t *context, surface_t *surface) -
uspace/lib/draw/font.c
r9259d20 r3e828ea 39 39 #include <str.h> 40 40 41 #include "font.h" 42 #include "font/embedded.h" 43 #include "drawctx.h" 41 #include <draw/font.h> 42 #include <draw/drawctx.h> 44 43 45 44 font_t *font_create(font_backend_t *backend, void *backend_data) -
uspace/lib/draw/font/bitmap_backend.c
r9259d20 r3e828ea 38 38 #include <stdlib.h> 39 39 40 #include "../font.h" 41 #include "../drawctx.h" 42 #include "bitmap_backend.h" 40 #include <draw/font.h> 41 #include <draw/drawctx.h> 43 42 44 43 typedef struct { -
uspace/lib/draw/font/embedded.c
r9259d20 r3e828ea 39 39 #include <stdlib.h> 40 40 41 #include "../gfx/font-8x16.h" 42 #include "embedded.h" 43 #include "../drawctx.h" 44 #include "bitmap_backend.h" 41 #include <draw/gfx.h> 42 #include <draw/font.h> 43 #include <draw/drawctx.h> 45 44 46 45 static errno_t fde_resolve_glyph(void *unused, const wchar_t chr, -
uspace/lib/draw/font/pcf.c
r9259d20 r3e828ea 44 44 #include <str.h> 45 45 46 #include "pcf.h" 47 #include "../drawctx.h" 48 #include "bitmap_backend.h" 46 #include <draw/font.h> 47 #include <draw/drawctx.h> 49 48 50 49 #define PCF_TABLE_ACCELERATORS 0x02 -
uspace/lib/draw/gfx/cursor-11x18.c
r9259d20 r3e828ea 34 34 */ 35 35 36 #include "cursor-11x18.h"36 #include <draw/gfx.h> 37 37 38 38 uint8_t cursor_texture[] = { -
uspace/lib/draw/gfx/font-8x16.c
r9259d20 r3e828ea 35 35 36 36 #include <stdint.h> 37 #include "font-8x16.h"37 #include <draw/gfx.h> 38 38 39 39 /** Convert character to font glyph index -
uspace/lib/draw/include/draw/codec.h
r9259d20 r3e828ea 1 1 /* 2 2 * Copyright (c) 2014 Martin Decky 3 * Copyright (c) 2011 Petr Koupy 3 4 * All rights reserved. 4 5 * … … 34 35 */ 35 36 36 #ifndef DRAW_CODEC_ TGA_GZ_H_37 #define DRAW_CODEC_ TGA_GZ_H_37 #ifndef DRAW_CODEC_H_ 38 #define DRAW_CODEC_H_ 38 39 39 40 #include <stddef.h> 40 #include " ../surface.h"41 #include "surface.h" 41 42 42 43 extern surface_t *decode_tga_gz(void *, size_t, surface_flags_t); 43 44 extern bool encode_tga_gz(surface_t *, void **, size_t *); 45 extern surface_t *decode_tga(void *, size_t, surface_flags_t); 46 extern bool encode_tga(surface_t *, void **, size_t *); 47 extern surface_t *decode_webp(void *, size_t, surface_flags_t); 48 extern bool encode_webp(surface_t *, void **, size_t *); 44 49 45 50 #endif -
uspace/lib/draw/include/draw/cursor.h
r9259d20 r3e828ea 58 58 } cursor_t; 59 59 60 extern cursor_decoder_t cd_embedded; 61 60 62 extern void cursor_init(cursor_t *, cursor_decoder_type_t, char *); 61 63 extern void cursor_release(cursor_t *); -
uspace/lib/draw/include/draw/font.h
r9259d20 r3e828ea 40 40 #include <stdint.h> 41 41 42 #include "font.h" 42 43 #include "surface.h" 43 44 #include "source.h" … … 108 109 } font_t; 109 110 111 typedef struct { 112 errno_t (*resolve_glyph)(void *, const wchar_t, glyph_id_t *); 113 errno_t (*load_glyph_surface)(void *, glyph_id_t, surface_t **); 114 errno_t (*load_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *); 115 void (*release)(void *); 116 } bitmap_font_decoder_t; 117 110 118 extern font_t *font_create(font_backend_t *, void *); 111 119 extern errno_t font_get_metrics(font_t *, font_metrics_t *); … … 120 128 sysarg_t, sysarg_t); 121 129 130 extern errno_t bitmap_font_create(bitmap_font_decoder_t *, void *, uint32_t, 131 font_metrics_t, uint16_t, font_t **); 132 extern errno_t embedded_font_create(font_t **, uint16_t points); 133 extern errno_t pcf_font_create(font_t **, char *path, uint16_t points); 134 122 135 #endif 123 136 -
uspace/lib/draw/include/draw/gfx.h
r9259d20 r3e828ea 1 1 /* 2 * Copyright (c) 2005 Martin Decky 2 * Copyright (c) 2008 Martin Decky 3 * Copyright (c) 2012 Petr Koupy 3 4 * All rights reserved. 4 5 * … … 33 34 */ 34 35 35 #ifndef FONT_8X16_H_36 #define FONT_8X16_H_36 #ifndef GFX_H_ 37 #define GFX_H_ 37 38 38 39 #include <stdint.h> … … 40 41 #include <stddef.h> 41 42 43 #define CURSOR_WIDTH 11 44 #define CURSOR_HEIGHT 18 45 42 46 #define FONT_GLYPHS 2899 43 47 #define FONT_WIDTH 8 44 48 #define FONT_SCANLINES 16 45 49 #define FONT_ASCENDER 12 50 51 extern uint8_t cursor_texture[]; 52 extern uint8_t cursor_mask[]; 46 53 47 54 extern uint16_t fb_font_glyph(const wchar_t, bool *); -
uspace/lib/draw/meson.build
r9259d20 r3e828ea 1 1 # 2 # Copyright (c) 2005 Martin Decky3 # Copyright (c) 2007 Jakub Jermar4 2 # Copyright (c) 2011 Petr Koupy 5 3 # All rights reserved. … … 29 27 # 30 28 31 USPACE_PREFIX = ../../.. 32 33 LIBS = drv graph softrend 34 35 BINARY = amdm37x_dispc 36 37 SOURCES = \ 38 amdm37x_dispc.c \ 39 main.c 40 41 include $(USPACE_PREFIX)/Makefile.common 29 deps = [ 'softrend' , 'compress' ] 30 src = files( 31 'codec/tga.c', 32 'codec/tga.gz.c', 33 'codec/webp.c', 34 'cursor/embedded.c', 35 'font/embedded.c', 36 'font/bitmap_backend.c', 37 'font/pcf.c', 38 'gfx/font-8x16.c', 39 'gfx/cursor-11x18.c', 40 'drawctx.c', 41 'cursor.c', 42 'font.c', 43 'path.c', 44 'source.c', 45 'surface.c', 46 ) -
uspace/lib/draw/path.c
r9259d20 r3e828ea 37 37 #include <stdlib.h> 38 38 39 #include "path.h"39 #include <draw/path.h> 40 40 41 41 struct path { -
uspace/lib/draw/source.c
r9259d20 r3e828ea 36 36 #include <assert.h> 37 37 38 #include "source.h"38 #include <draw/source.h> 39 39 40 40 void source_init(source_t *source) -
uspace/lib/draw/surface.c
r9259d20 r3e828ea 39 39 #include <assert.h> 40 40 #include <stdlib.h> 41 #include "surface.h"41 #include <draw/surface.h> 42 42 43 43 struct surface {
Note:
See TracChangeset
for help on using the changeset viewer.
