|
NetSurf
|
implementation of content handler for BMP images. More...
#include <stdbool.h>#include <stdlib.h>#include <libnsbmp.h>#include "utils/utils.h"#include "utils/messages.h"#include "netsurf/plotters.h"#include "netsurf/bitmap.h"#include "netsurf/content.h"#include "content/llcache.h"#include "content/content_protected.h"#include "content/content_factory.h"#include "desktop/gui_internal.h"#include "desktop/bitmap.h"#include "image/bmp.h"Go to the source code of this file.
Data Structures | |
| struct | nsbmp_content |
| bmp context. More... | |
Typedefs | |
| typedef struct nsbmp_content | nsbmp_content |
| bmp context. More... | |
Functions | |
| static void * | nsbmp_bitmap_create (int width, int height, unsigned int bmp_state) |
| Callback for libnsbmp; forwards the call to bitmap_create() More... | |
| static nserror | nsbmp_create_bmp_data (nsbmp_content *bmp) |
| static nserror | nsbmp_create (const struct content_handler *handler, lwc_string *imime_type, const struct http_parameter *params, llcache_handle *llcache, const char *fallback_charset, bool quirks, struct content **c) |
| static bool | nsbmp_convert (struct content *c) |
| static bool | nsbmp_redraw (struct content *c, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx) |
| static void | nsbmp_destroy (struct content *c) |
| static nserror | nsbmp_clone (const struct content *old, struct content **newc) |
| static void * | nsbmp_get_internal (const struct content *c, void *context) |
| static content_type | nsbmp_content_type (void) |
| static bool | nsbmp_content_is_opaque (struct content *c) |
| CONTENT_FACTORY_REGISTER_TYPES (nsbmp, nsbmp_types, nsbmp_content_handler) | |
Variables | |
| static const content_handler | nsbmp_content_handler |
| static const char * | nsbmp_types [] |
implementation of content handler for BMP images.
Definition in file bmp.c.
| typedef struct nsbmp_content nsbmp_content |
bmp context.
| CONTENT_FACTORY_REGISTER_TYPES | ( | nsbmp | , |
| nsbmp_types | , | ||
| nsbmp_content_handler | |||
| ) |
|
static |
Callback for libnsbmp; forwards the call to bitmap_create()
| width | width of image in pixels |
| height | width of image in pixels |
| bmp_state | A flag word indicating the initial state |
Definition at line 59 of file bmp.c.
References netsurf_table::bitmap, BITMAP_CLEAR, BITMAP_NONE, BITMAP_OPAQUE, gui_bitmap_table::create, guit, height, and width.
Referenced by nsbmp_create_bmp_data().
Definition at line 222 of file bmp.c.
References nsbmp_content::base, content__clone(), content_destroy(), CONTENT_STATUS_DONE, CONTENT_STATUS_READY, nsbmp_convert(), nsbmp_create_bmp_data(), NSERROR_CLONE_FAILED, NSERROR_NOMEM, NSERROR_OK, and content::status.
|
static |
Definition at line 269 of file bmp.c.
References nsbmp_content::bitmap, netsurf_table::bitmap, gui_bitmap_table::get_opaque, and guit.
|
static |
Definition at line 264 of file bmp.c.
References CONTENT_IMAGE.
|
static |
Definition at line 125 of file bmp.c.
References nsbmp_content::bitmap, nsbmp_content::bmp, content__get_source_data(), content__set_title(), content_broadcast_error(), content_set_done(), content_set_ready(), content_set_status(), content::height, content::llcache, llcache_handle_get_url(), messages_get_buff(), NSERROR_BMP_ERROR, NSERROR_NOMEM, nsurl_access_leaf(), content::size, content::title, and content::width.
Referenced by nsbmp_clone().
|
static |
Definition at line 92 of file bmp.c.
References nsbmp_content::base, content__init(), llcache, nsbmp_create_bmp_data(), NSERROR_NOMEM, and NSERROR_OK.
|
static |
Definition at line 72 of file bmp.c.
References nsbmp_content::base, netsurf_table::bitmap, nsbmp_content::bmp, content_broadcast_error(), gui_bitmap_table::destroy, gui_bitmap_table::get_buffer, guit, nsbmp_bitmap_create(), NSERROR_NOMEM, and NSERROR_OK.
Referenced by nsbmp_clone(), and nsbmp_create().
|
static |
Definition at line 213 of file bmp.c.
References nsbmp_content::bmp.
|
static |
Definition at line 257 of file bmp.c.
References nsbmp_content::bitmap.
|
static |
Definition at line 177 of file bmp.c.
References content_redraw_data::background_colour, nsbmp_content::bitmap, netsurf_table::bitmap, plotter_table::bitmap, bitmap_format_to_client(), BITMAPF_NONE, BITMAPF_REPEAT_X, BITMAPF_REPEAT_Y, nsbmp_content::bmp, guit, content_redraw_data::height, gui_bitmap_table::modified, NSERROR_OK, redraw_context::plot, content_redraw_data::repeat_x, content_redraw_data::repeat_y, content_redraw_data::width, content_redraw_data::x, and content_redraw_data::y.
|
static |
|
static |