Ignore:
Timestamp:
May 21, 2009, 10:55:21 PM (11 years ago)
Author:
Sam Hocevar
Message:

Add caca_export_area_to_memory() to export only a selected part of the
current canvas. This is useful to export dirty rectangles. Accordingly,
add caca_import_area_from_memory() and caca_import_area_from_file().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.h

    r3494 r3495  
    426426 *
    427427 *  @{ */
    428 __extern ssize_t caca_import_memory(caca_canvas_t *, void const *,
    429                                      size_t, char const *);
    430 __extern ssize_t caca_import_file(caca_canvas_t *, char const *,
    431                                    char const *);
     428__extern ssize_t caca_import_canvas_from_memory(caca_canvas_t *, void const *,
     429                                                size_t, char const *);
     430__extern ssize_t caca_import_canvas_from_file(caca_canvas_t *, char const *,
     431                                              char const *);
     432__extern ssize_t caca_import_area_from_memory(caca_canvas_t *, int, int,
     433                                              void const *, size_t,
     434                                              char const *);
     435__extern ssize_t caca_import_area_from_file(caca_canvas_t *, int, int,
     436                                            char const *, char const *);
    432437__extern char const * const * caca_get_import_list(void);
    433 __extern void *caca_export_memory(caca_canvas_t const *, char const *,
    434                                    size_t *);
     438__extern void *caca_export_canvas_to_memory(caca_canvas_t const *,
     439                                            char const *, size_t *);
     440__extern void *caca_export_area_to_memory(caca_canvas_t const *, int, int,
     441                                          int, int, char const *, size_t *);
    435442__extern char const * const * caca_get_export_list(void);
    436443/*  @} */
     
    523530__extern caca_canvas_t * cucul_import_canvas(cucul_buffer_t *,
    524531                                              char const *) CACA_DEPRECATED;
     532__extern ssize_t caca_import_memory(caca_canvas_t *, void const *, size_t,
     533                                    char const *) CACA_DEPRECATED;
     534__extern ssize_t caca_import_file(caca_canvas_t *, char const *,
     535                                  char const *) CACA_DEPRECATED;
     536__extern void *caca_export_memory(caca_canvas_t const *, char const *,
     537                                  size_t *) CACA_DEPRECATED;
    525538__extern int cucul_rotate(caca_canvas_t *) CACA_DEPRECATED;
    526539__extern int cucul_set_dither_invert(caca_dither_t *, int) CACA_DEPRECATED;
Note: See TracChangeset for help on using the changeset viewer.