2020-01-02 02:23:11 +00:00
|
|
|
|
% notcurses_ncvisual(3)
|
|
|
|
|
% nick black <nickblack@linux.com>
|
2020-01-09 10:49:52 +00:00
|
|
|
|
% v1.0.2
|
2020-01-02 02:23:11 +00:00
|
|
|
|
|
|
|
|
|
# NAME
|
2020-01-04 07:37:55 +00:00
|
|
|
|
notcurses_ncvisual - notcurses multimedia
|
2020-01-02 02:23:11 +00:00
|
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
|
|
**#include <notcurses.h>**
|
|
|
|
|
|
2020-01-04 07:37:55 +00:00
|
|
|
|
**struct ncvisual* ncplane_visual_open(struct ncplane* nc, const char* file,
|
|
|
|
|
int* averr);**
|
|
|
|
|
|
|
|
|
|
```c
|
|
|
|
|
typedef enum {
|
|
|
|
|
NCSCALE_NONE,
|
|
|
|
|
NCSCALE_SCALE,
|
|
|
|
|
NCSCALE_STRETCH,
|
|
|
|
|
} ncscale_e;
|
2020-01-14 20:50:17 +00:00
|
|
|
|
|
|
|
|
|
typedef int (*streamcb)(struct notcurses*, struct ncvisual*, void*);
|
2020-01-04 07:37:55 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**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);**
|
|
|
|
|
|
2020-01-14 20:50:17 +00:00
|
|
|
|
**int ncvisual_stream(struct notcurses* nc, struct ncvisual* ncv, int* averr,
|
|
|
|
|
float timescale, streamcb streamer, void* curry);**
|
2020-01-04 07:37:55 +00:00
|
|
|
|
|
|
|
|
|
**struct ncplane* ncvisual_plane(struct ncvisual* ncv);**
|
|
|
|
|
|
2020-01-02 02:23:11 +00:00
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# RETURN VALUES
|
|
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
|
|
**notcurses(3)**, **notcurses_ncplane(3)**
|