![]() |
Notcurses 3.0.17
a blingful library for TUIs and character graphics
|
#include <math.h>#include <string.h>#include "builddef.h"#include "visual-details.h"#include "internal.h"#include "sixel.h"
Go to the source code of this file.
Functions | |
| int | ncvisual_init (int logl) |
| void | ncvisual_printbanner (fbuf *f) |
| int | ncvisual_decode (ncvisual *nc) |
| int | ncvisual_decode_loop (ncvisual *nc) |
| ncvisual * | ncvisual_from_file (const char *filename) |
| int | ncvisual_stream (notcurses *nc, ncvisual *ncv, float timescale, ncstreamcb streamer, const struct ncvisual_options *vopts, void *curry) |
| ncplane * | ncvisual_subtitle_plane (ncplane *parent, const ncvisual *ncv) |
| int | ncvisual_blit_internal (const ncvisual *ncv, int rows, int cols, ncplane *n, const struct blitset *bset, const blitterargs *barg) |
| void | ncvisual_details_seed (struct ncvisual *ncv) |
| ncvisual * | ncvisual_create (void) |
| int | ncvisual_geom_inner (const tinfo *ti, const ncvisual *n, const struct ncvisual_options *vopts, ncvgeom *geom, const struct blitset **bset, unsigned *disppixy, unsigned *disppixx, unsigned *outy, unsigned *outx, int *placey, int *placex) |
| int | ncvisual_geom (const notcurses *nc, const ncvisual *n, const struct ncvisual_options *vopts, ncvgeom *geom) |
| void * | rgb_loose_to_rgba (const void *data, int rows, int *rowstride, int cols, int alpha) |
| void * | rgb_packed_to_rgba (const void *data, int rows, int *rowstride, int cols, int alpha) |
| void * | bgra_to_rgba (const void *data, int rows, int *rowstride, int cols, int alpha) |
| int | ncvisual_bounding_box (const ncvisual *ncv, int *leny, int *lenx, int *offy, int *offx) |
| int | ncvisual_rotate (ncvisual *ncv, double rads) |
| ncvisual * | ncvisual_from_rgba (const void *rgba, int rows, int rowstride, int cols) |
| ncvisual * | ncvisual_from_sixel (const char *s, unsigned leny, unsigned lenx) |
| ncvisual * | ncvisual_from_rgb_packed (const void *rgba, int rows, int rowstride, int cols, int alpha) |
| ncvisual * | ncvisual_from_rgb_loose (const void *rgba, int rows, int rowstride, int cols, int alpha) |
| ncvisual * | ncvisual_from_bgra (const void *bgra, int rows, int rowstride, int cols) |
| ncvisual * | ncvisual_from_palidx (const void *pdata, int rows, int rowstride, int cols, int palsize, int pstride, const uint32_t *palette) |
| int | ncvisual_resize (ncvisual *n, int rows, int cols) |
| int | ncvisual_resize_noninterpolative (ncvisual *n, int rows, int cols) |
| ncplane * | ncvisual_render_cells (ncvisual *ncv, const struct blitset *bset, int placey, int placex, ncvgeom *geom, ncplane *n, uint64_t flags, uint32_t transcolor) |
| ncplane * | ncvisual_render_pixels (notcurses *nc, ncvisual *ncv, const struct blitset *bset, int placey, int placex, const ncvgeom *geom, ncplane *n, uint64_t flags, uint32_t transcolor, int pxoffy, int pxoffx) |
| ncplane * | ncvisual_blit (notcurses *nc, ncvisual *ncv, const struct ncvisual_options *vopts) |
| ncvisual * | ncvisual_from_plane (const ncplane *n, ncblitter_e blit, int begy, int begx, unsigned leny, unsigned lenx) |
| void | ncvisual_destroy (ncvisual *ncv) |
| int | ncvisual_simple_streamer (ncvisual *ncv, struct ncvisual_options *vopts, const struct timespec *tspec, void *curry) |
| int | ncvisual_set_yx (const struct ncvisual *n, unsigned y, unsigned x, uint32_t pixel) |
| int | ncvisual_at_yx (const ncvisual *n, unsigned y, unsigned x, uint32_t *pixel) |
| int | ncvisual_polyfill_yx (ncvisual *n, unsigned y, unsigned x, uint32_t rgba) |
| bool | notcurses_canopen_images (const notcurses *nc __attribute__((unused))) |
| bool | notcurses_canopen_videos (const notcurses *nc __attribute__((unused))) |
Variables | |
| ncvisual_implementation * | visual_implementation = &null_visual_implementation |
| void * bgra_to_rgba | ( | const void * | data, |
| int | rows, | ||
| int * | rowstride, | ||
| int | cols, | ||
| int | alpha | ||
| ) |
Definition at line 508 of file visual.c.

| int ncvisual_at_yx | ( | const ncvisual * | n, |
| unsigned | y, | ||
| unsigned | x, | ||
| uint32_t * | pixel | ||
| ) |
| ncplane * ncvisual_blit | ( | notcurses * | nc, |
| ncvisual * | ncv, | ||
| const struct ncvisual_options * | vopts | ||
| ) |
Definition at line 1142 of file visual.c.


| int ncvisual_blit_internal | ( | const ncvisual * | ncv, |
| int | rows, | ||
| int | cols, | ||
| ncplane * | n, | ||
| const struct blitset * | bset, | ||
| const blitterargs * | barg | ||
| ) |
Definition at line 84 of file visual.c.

| int ncvisual_bounding_box | ( | const ncvisual * | ncv, |
| int * | leny, | ||
| int * | lenx, | ||
| int * | offy, | ||
| int * | offx | ||
| ) |
Definition at line 537 of file visual.c.


| ncvisual * ncvisual_create | ( | void | ) |
Definition at line 120 of file visual.c.

| int ncvisual_decode | ( | ncvisual * | nc | ) |
Definition at line 39 of file visual.c.

| int ncvisual_decode_loop | ( | ncvisual * | nc | ) |
Definition at line 46 of file visual.c.

| void ncvisual_destroy | ( | ncvisual * | ncv | ) |
Definition at line 1231 of file visual.c.

| void ncvisual_details_seed | ( | struct ncvisual * | ncv | ) |
Definition at line 114 of file visual.c.

| ncvisual * ncvisual_from_bgra | ( | const void * | bgra, |
| int | rows, | ||
| int | rowstride, | ||
| int | cols | ||
| ) |
Definition at line 895 of file visual.c.

| ncvisual * ncvisual_from_file | ( | const char * | filename | ) |
Definition at line 53 of file visual.c.

| ncvisual * ncvisual_from_palidx | ( | const void * | pdata, |
| int | rows, | ||
| int | rowstride, | ||
| int | cols, | ||
| int | palsize, | ||
| int | pstride, | ||
| const uint32_t * | palette | ||
| ) |
Definition at line 933 of file visual.c.

| ncvisual * ncvisual_from_plane | ( | const ncplane * | n, |
| ncblitter_e | blit, | ||
| int | begy, | ||
| int | begx, | ||
| unsigned | leny, | ||
| unsigned | lenx | ||
| ) |
Definition at line 1214 of file visual.c.


| ncvisual * ncvisual_from_rgb_loose | ( | const void * | rgba, |
| int | rows, | ||
| int | rowstride, | ||
| int | cols, | ||
| int | alpha | ||
| ) |
Definition at line 862 of file visual.c.

| ncvisual * ncvisual_from_rgb_packed | ( | const void * | rgba, |
| int | rows, | ||
| int | rowstride, | ||
| int | cols, | ||
| int | alpha | ||
| ) |
Definition at line 820 of file visual.c.

| ncvisual * ncvisual_from_rgba | ( | const void * | rgba, |
| int | rows, | ||
| int | rowstride, | ||
| int | cols | ||
| ) |
Definition at line 779 of file visual.c.


| ncvisual * ncvisual_from_sixel | ( | const char * | s, |
| unsigned | leny, | ||
| unsigned | lenx | ||
| ) |
Definition at line 809 of file visual.c.

| int ncvisual_geom | ( | const notcurses * | nc, |
| const ncvisual * | n, | ||
| const struct ncvisual_options * | vopts, | ||
| ncvgeom * | geom | ||
| ) |
| int ncvisual_geom_inner | ( | const tinfo * | ti, |
| const ncvisual * | n, | ||
| const struct ncvisual_options * | vopts, | ||
| ncvgeom * | geom, | ||
| const struct blitset ** | bset, | ||
| unsigned * | disppixy, | ||
| unsigned * | disppixx, | ||
| unsigned * | outy, | ||
| unsigned * | outx, | ||
| int * | placey, | ||
| int * | placex | ||
| ) |
Definition at line 208 of file visual.c.


| int ncvisual_init | ( | int | logl | ) |
| int ncvisual_polyfill_yx | ( | ncvisual * | n, |
| unsigned | y, | ||
| unsigned | x, | ||
| uint32_t | rgba | ||
| ) |
| void ncvisual_printbanner | ( | fbuf * | f | ) |
Definition at line 30 of file visual.c.

| ncplane * ncvisual_render_cells | ( | ncvisual * | ncv, |
| const struct blitset * | bset, | ||
| int | placey, | ||
| int | placex, | ||
| ncvgeom * | geom, | ||
| ncplane * | n, | ||
| uint64_t | flags, | ||
| uint32_t | transcolor | ||
| ) |
Definition at line 1019 of file visual.c.


| ncplane * ncvisual_render_pixels | ( | notcurses * | nc, |
| ncvisual * | ncv, | ||
| const struct blitset * | bset, | ||
| int | placey, | ||
| int | placex, | ||
| const ncvgeom * | geom, | ||
| ncplane * | n, | ||
| uint64_t | flags, | ||
| uint32_t | transcolor, | ||
| int | pxoffy, | ||
| int | pxoffx | ||
| ) |
Definition at line 1056 of file visual.c.


| int ncvisual_resize | ( | ncvisual * | n, |
| int | rows, | ||
| int | cols | ||
| ) |
Definition at line 988 of file visual.c.

| int ncvisual_resize_noninterpolative | ( | ncvisual * | n, |
| int | rows, | ||
| int | cols | ||
| ) |
Definition at line 998 of file visual.c.


| int ncvisual_rotate | ( | ncvisual * | ncv, |
| double | rads | ||
| ) |
Definition at line 707 of file visual.c.


| int ncvisual_set_yx | ( | const struct ncvisual * | n, |
| unsigned | y, | ||
| unsigned | x, | ||
| uint32_t | pixel | ||
| ) |
| int ncvisual_simple_streamer | ( | ncvisual * | ncv, |
| struct ncvisual_options * | vopts, | ||
| const struct timespec * | tspec, | ||
| void * | curry | ||
| ) |
Definition at line 1244 of file visual.c.


| int ncvisual_stream | ( | notcurses * | nc, |
| ncvisual * | ncv, | ||
| float | timescale, | ||
| ncstreamcb | streamer, | ||
| const struct ncvisual_options * | vopts, | ||
| void * | curry | ||
| ) |
Definition at line 64 of file visual.c.

Definition at line 77 of file visual.c.

| bool notcurses_canopen_images | ( | const notcurses *nc | __attribute__(unused) | ) |
| bool notcurses_canopen_videos | ( | const notcurses *nc | __attribute__(unused) | ) |
| void * rgb_loose_to_rgba | ( | const void * | data, |
| int | rows, | ||
| int * | rowstride, | ||
| int | cols, | ||
| int | alpha | ||
| ) |
Definition at line 461 of file visual.c.

| void * rgb_packed_to_rgba | ( | const void * | data, |
| int | rows, | ||
| int * | rowstride, | ||
| int | cols, | ||
| int | alpha | ||
| ) |
Definition at line 486 of file visual.c.

| ncvisual_implementation* visual_implementation = &null_visual_implementation |