mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
88c49df1b1
DSFG demo can't have luigi s/1.2.0/1.2.1/g
53 lines
1.3 KiB
Markdown
53 lines
1.3 KiB
Markdown
% notcurses_ncvisual(3)
|
||
% nick black <nickblack@linux.com>
|
||
% v1.2.1
|
||
|
||
# NAME
|
||
notcurses_ncvisual - notcurses multimedia
|
||
|
||
# SYNOPSIS
|
||
|
||
**#include <notcurses.h>**
|
||
|
||
```c
|
||
typedef enum {
|
||
NCSCALE_NONE,
|
||
NCSCALE_SCALE,
|
||
NCSCALE_STRETCH,
|
||
} ncscale_e;
|
||
|
||
typedef int (*streamcb)(struct notcurses*, struct ncvisual*, void*);
|
||
```
|
||
|
||
**bool notcurses_canopen(const struct notcurses* nc);**
|
||
|
||
**struct ncvisual* ncplane_visual_open(struct ncplane* nc, const char* file,
|
||
int* averr);**
|
||
|
||
**struct ncvisual* ncvisual_open_plane(struct notcurses* nc, const char* file,
|
||
int* averr, int y, int x,
|
||
ncscale_e style);**
|
||
|
||
**void ncvisual_destroy(struct ncvisual* ncv);**
|
||
|
||
**struct AVFrame* ncvisual_decode(struct ncvisual* nc, int* averr);**
|
||
|
||
**int ncvisual_render(const struct ncvisual* ncv, int begy, int begx,
|
||
int leny, int lenx);**
|
||
|
||
**int ncvisual_simple_streamer(struct notcurses* nc, struct ncvisual* ncv, void* curry);**
|
||
|
||
**int ncvisual_stream(struct notcurses* nc, struct ncvisual* ncv, int* averr,
|
||
float timescale, streamcb streamer, void* curry);**
|
||
|
||
**struct ncplane* ncvisual_plane(struct ncvisual* ncv);**
|
||
|
||
# DESCRIPTION
|
||
|
||
|
||
# RETURN VALUES
|
||
|
||
# SEE ALSO
|
||
|
||
**notcurses(3)**, **notcurses_ncplane(3)**
|