2004-04-06 00:04:48 +00:00
|
|
|
/*
|
2009-02-08 03:27:30 +00:00
|
|
|
* video output driver for libcaca
|
|
|
|
*
|
2004-04-06 00:04:48 +00:00
|
|
|
* by Pigeon <pigeon@pigeond.net>
|
|
|
|
*
|
|
|
|
* Some functions/codes/ideas are from x11 and aalib vo
|
|
|
|
*
|
2009-02-08 03:27:30 +00:00
|
|
|
* TODO: support draw_alpha?
|
|
|
|
*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-04-06 00:04:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <errno.h>
|
2012-08-06 21:55:47 +00:00
|
|
|
#include <assert.h>
|
2011-11-09 02:26:58 +00:00
|
|
|
#include <caca.h>
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "video_out.h"
|
2011-01-26 17:40:52 +00:00
|
|
|
#include "sub/sub.h"
|
2012-08-06 21:55:47 +00:00
|
|
|
#include "libmpcodecs/mp_image.h"
|
|
|
|
#include "libmpcodecs/vfcap.h"
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-04-25 06:43:59 +00:00
|
|
|
#include "input/keycodes.h"
|
2011-11-09 02:26:58 +00:00
|
|
|
#include "input/input.h"
|
2004-04-06 00:04:48 +00:00
|
|
|
#include "mp_msg.h"
|
2007-03-29 17:16:11 +00:00
|
|
|
#include "mp_fifo.h"
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
/* caca stuff */
|
2011-11-09 02:26:58 +00:00
|
|
|
static caca_canvas_t *canvas;
|
|
|
|
static caca_display_t *display;
|
|
|
|
static caca_dither_t *dither = NULL;
|
|
|
|
static const char *dither_antialias = "default";
|
|
|
|
static const char *dither_charset = "default";
|
|
|
|
static const char *dither_color = "default";
|
|
|
|
static const char *dither_algo = "none";
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
/* image infos */
|
|
|
|
static int image_format;
|
|
|
|
static int image_width;
|
|
|
|
static int image_height;
|
|
|
|
|
|
|
|
static int screen_w, screen_h;
|
|
|
|
|
|
|
|
/* We want 24bpp always for now */
|
2011-11-09 02:26:58 +00:00
|
|
|
static unsigned int bpp = 24;
|
2004-04-06 00:04:48 +00:00
|
|
|
static unsigned int depth = 3;
|
|
|
|
static unsigned int rmask = 0xff0000;
|
|
|
|
static unsigned int gmask = 0x00ff00;
|
|
|
|
static unsigned int bmask = 0x0000ff;
|
|
|
|
static unsigned int amask = 0;
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
#define MESSAGE_SIZE 512
|
|
|
|
#define MESSAGE_DURATION 5
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
static time_t stoposd = 0;
|
2004-04-06 00:04:48 +00:00
|
|
|
static int showosdmessage = 0;
|
|
|
|
static char osdmessagetext[MESSAGE_SIZE];
|
|
|
|
static char posbar[MESSAGE_SIZE];
|
|
|
|
|
|
|
|
static int osdx = 0, osdy = 0;
|
|
|
|
static int posbary = 2;
|
|
|
|
|
2006-07-13 05:03:43 +00:00
|
|
|
static void osdmessage(int duration, const char *fmt, ...)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
/* for outputting a centered string at the window bottom for a while */
|
2004-04-06 00:04:48 +00:00
|
|
|
va_list ar;
|
|
|
|
char m[MESSAGE_SIZE];
|
|
|
|
|
|
|
|
va_start(ar, fmt);
|
|
|
|
vsprintf(m, fmt, ar);
|
|
|
|
va_end(ar);
|
|
|
|
strcpy(osdmessagetext, m);
|
|
|
|
|
|
|
|
showosdmessage = 1;
|
2011-11-09 02:26:58 +00:00
|
|
|
stoposd = time(NULL) + duration;
|
|
|
|
osdx = (screen_w - strlen(osdmessagetext)) / 2;
|
|
|
|
posbar[0] = '\0';
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
static void osdpercent(int duration, int min, int max, int val,
|
|
|
|
const char *desc, const char *unit)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
/* prints a bar for setting values */
|
2004-04-06 00:04:48 +00:00
|
|
|
float step;
|
|
|
|
int where, i;
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
step = (float)screen_w / (float)(max - min);
|
2004-04-06 00:04:48 +00:00
|
|
|
where = (val - min) * step;
|
2011-11-09 02:26:58 +00:00
|
|
|
osdmessage(duration, "%s: %i%s", desc, val, unit);
|
|
|
|
posbar[0] = '|';
|
2004-04-06 00:04:48 +00:00
|
|
|
posbar[screen_w - 1] = '|';
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
for (i = 0; i < screen_w; i++) {
|
|
|
|
if (i == where)
|
|
|
|
posbar[i] = '#';
|
|
|
|
else
|
|
|
|
posbar[i] = '-';
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
2009-07-06 23:26:13 +00:00
|
|
|
|
2004-04-06 00:04:48 +00:00
|
|
|
if (where != 0)
|
2011-11-09 02:26:58 +00:00
|
|
|
posbar[0] = '|';
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
if (where != (screen_w - 1))
|
2011-11-09 02:26:58 +00:00
|
|
|
posbar[screen_w - 1] = '|';
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
posbar[screen_w] = '\0';
|
|
|
|
}
|
|
|
|
|
2009-05-04 17:35:26 +00:00
|
|
|
static int resize(void)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
screen_w = caca_get_canvas_width(canvas);
|
|
|
|
screen_h = caca_get_canvas_height(canvas);
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
caca_free_dither(dither);
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
dither = caca_create_dither(bpp, image_width, image_height,
|
|
|
|
depth * image_width,
|
|
|
|
rmask, gmask, bmask, amask);
|
|
|
|
if (dither == NULL) {
|
|
|
|
mp_msg(MSGT_VO, MSGL_FATAL, "vo_caca: caca_create_dither failed!\n");
|
|
|
|
return ENOSYS;
|
|
|
|
}
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
/* Default libcaca features */
|
|
|
|
caca_set_dither_antialias(dither, dither_antialias);
|
|
|
|
caca_set_dither_charset(dither, dither_charset);
|
|
|
|
caca_set_dither_color(dither, dither_color);
|
|
|
|
caca_set_dither_algorithm(dither, dither_algo);
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static int config(struct vo *vo, uint32_t width, uint32_t height,
|
|
|
|
uint32_t d_width, uint32_t d_height, uint32_t flags,
|
2011-11-09 02:26:58 +00:00
|
|
|
uint32_t format)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
|
|
|
image_height = height;
|
2011-11-09 02:26:58 +00:00
|
|
|
image_width = width;
|
2004-04-06 00:04:48 +00:00
|
|
|
image_format = format;
|
2009-07-06 23:26:13 +00:00
|
|
|
|
2004-04-06 00:04:48 +00:00
|
|
|
showosdmessage = 0;
|
2011-11-09 02:26:58 +00:00
|
|
|
posbar[0] = '\0';
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
return resize();
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static uint32_t draw_image(struct vo *vo, mp_image_t *mpi)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2012-08-06 21:55:47 +00:00
|
|
|
assert(mpi->stride[0] == image_width * 3);
|
|
|
|
caca_dither_bitmap(canvas, 0, 0, screen_w, screen_h, dither,
|
|
|
|
mpi->planes[0]);
|
|
|
|
return true;
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static int draw_slice(struct vo *vo, uint8_t *src[], int stride[], int w, int h,
|
|
|
|
int x, int y)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static void flip_page(struct vo *vo)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
if (showosdmessage) {
|
|
|
|
if (time(NULL) >= stoposd) {
|
|
|
|
showosdmessage = 0;
|
|
|
|
if (*posbar)
|
|
|
|
posbar[0] = '\0';
|
|
|
|
} else {
|
|
|
|
caca_put_str(canvas, osdx, osdy, osdmessagetext);
|
|
|
|
if (*posbar)
|
|
|
|
caca_put_str(canvas, 0, posbary, posbar);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
caca_refresh_display(display);
|
|
|
|
}
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
static void set_next_str(const char * const *list, const char **str,
|
|
|
|
const char **msg)
|
|
|
|
{
|
|
|
|
int ind;
|
|
|
|
for (ind = 0; list[ind]; ind += 2) {
|
|
|
|
if (strcmp(list[ind], *str) == 0) {
|
|
|
|
if (list[ind + 2] == NULL)
|
|
|
|
ind = -2;
|
|
|
|
*str = list[ind + 2];
|
|
|
|
*msg = list[ind + 3];
|
|
|
|
return;
|
|
|
|
}
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
*str = list[0];
|
|
|
|
*msg = list[1];
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
static const struct mp_keymap keysym_map[] = {
|
|
|
|
{CACA_KEY_RETURN, KEY_ENTER}, {CACA_KEY_ESCAPE, KEY_ESC},
|
|
|
|
{CACA_KEY_UP, KEY_DOWN}, {CACA_KEY_DOWN, KEY_DOWN},
|
|
|
|
{CACA_KEY_LEFT, KEY_LEFT}, {CACA_KEY_RIGHT, KEY_RIGHT},
|
|
|
|
{CACA_KEY_PAGEUP, KEY_PAGE_UP}, {CACA_KEY_PAGEDOWN, KEY_PAGE_DOWN},
|
|
|
|
{CACA_KEY_HOME, KEY_HOME}, {CACA_KEY_END, KEY_END},
|
|
|
|
{CACA_KEY_INSERT, KEY_INSERT}, {CACA_KEY_DELETE, KEY_DELETE},
|
|
|
|
{CACA_KEY_BACKSPACE, KEY_BACKSPACE}, {CACA_KEY_TAB, KEY_TAB},
|
|
|
|
{CACA_KEY_PAUSE, KEY_PAUSE},
|
|
|
|
{CACA_KEY_F1, KEY_F+1}, {CACA_KEY_F2, KEY_F+2},
|
|
|
|
{CACA_KEY_F3, KEY_F+3}, {CACA_KEY_F4, KEY_F+4},
|
|
|
|
{CACA_KEY_F5, KEY_F+5}, {CACA_KEY_F6, KEY_F+6},
|
|
|
|
{CACA_KEY_F7, KEY_F+7}, {CACA_KEY_F8, KEY_F+8},
|
|
|
|
{CACA_KEY_F9, KEY_F+9}, {CACA_KEY_F10, KEY_F+10},
|
|
|
|
{CACA_KEY_F11, KEY_F+11}, {CACA_KEY_F12, KEY_F+12},
|
|
|
|
{CACA_KEY_F13, KEY_F+13}, {CACA_KEY_F14, KEY_F+14},
|
|
|
|
{CACA_KEY_F15, KEY_F+15},
|
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static void check_events(struct vo *vo)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
caca_event_t cev;
|
|
|
|
while (caca_get_event(display, CACA_EVENT_ANY, &cev, 0)) {
|
|
|
|
|
|
|
|
switch (cev.type) {
|
|
|
|
case CACA_EVENT_RESIZE:
|
|
|
|
caca_refresh_display(display);
|
|
|
|
resize();
|
|
|
|
break;
|
|
|
|
case CACA_EVENT_QUIT:
|
2012-08-06 21:55:47 +00:00
|
|
|
mplayer_put_key(vo->key_fifo, KEY_CLOSE_WIN);
|
2011-11-09 02:26:58 +00:00
|
|
|
break;
|
|
|
|
case CACA_EVENT_MOUSE_MOTION:
|
2012-08-06 21:55:47 +00:00
|
|
|
vo_mouse_movement(vo, cev.data.mouse.x, cev.data.mouse.y);
|
2011-11-09 02:26:58 +00:00
|
|
|
break;
|
|
|
|
case CACA_EVENT_MOUSE_PRESS:
|
|
|
|
if (!vo_nomouse_input)
|
2012-08-06 21:55:47 +00:00
|
|
|
mplayer_put_key(vo->key_fifo,
|
|
|
|
(MOUSE_BTN0 + cev.data.mouse.button - 1) | MP_KEY_DOWN);
|
2011-11-09 02:26:58 +00:00
|
|
|
break;
|
|
|
|
case CACA_EVENT_MOUSE_RELEASE:
|
|
|
|
if (!vo_nomouse_input)
|
2012-08-06 21:55:47 +00:00
|
|
|
mplayer_put_key(vo->key_fifo,
|
|
|
|
MOUSE_BTN0 + cev.data.mouse.button - 1);
|
2011-11-09 02:26:58 +00:00
|
|
|
break;
|
|
|
|
case CACA_EVENT_KEY_PRESS:
|
|
|
|
{
|
|
|
|
int key = cev.data.key.ch;
|
|
|
|
int mpkey = lookup_keymap_table(keysym_map, key);
|
|
|
|
const char *msg_name;
|
|
|
|
|
|
|
|
if (mpkey)
|
2012-08-06 21:55:47 +00:00
|
|
|
mplayer_put_key(vo->key_fifo, mpkey);
|
2011-11-09 02:26:58 +00:00
|
|
|
else
|
|
|
|
switch (key) {
|
|
|
|
case 'd':
|
|
|
|
case 'D':
|
|
|
|
/* Toggle dithering algorithm */
|
2012-08-06 21:55:47 +00:00
|
|
|
set_next_str(caca_get_dither_algorithm_list(dither),
|
|
|
|
&dither_algo, &msg_name);
|
2011-11-09 02:26:58 +00:00
|
|
|
caca_set_dither_algorithm(dither, dither_algo);
|
|
|
|
osdmessage(MESSAGE_DURATION, "Using %s", msg_name);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'a':
|
|
|
|
case 'A':
|
|
|
|
/* Toggle antialiasing method */
|
2012-08-06 21:55:47 +00:00
|
|
|
set_next_str(caca_get_dither_antialias_list(dither),
|
|
|
|
&dither_antialias, &msg_name);
|
2011-11-09 02:26:58 +00:00
|
|
|
caca_set_dither_antialias(dither, dither_antialias);
|
|
|
|
osdmessage(MESSAGE_DURATION, "Using %s", msg_name);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'h':
|
|
|
|
case 'H':
|
|
|
|
/* Toggle charset method */
|
2012-08-06 21:55:47 +00:00
|
|
|
set_next_str(caca_get_dither_charset_list(dither),
|
|
|
|
&dither_charset, &msg_name);
|
2011-11-09 02:26:58 +00:00
|
|
|
caca_set_dither_charset(dither, dither_charset);
|
|
|
|
osdmessage(MESSAGE_DURATION, "Using %s", msg_name);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'c':
|
|
|
|
case 'C':
|
|
|
|
/* Toggle color method */
|
2012-08-06 21:55:47 +00:00
|
|
|
set_next_str(caca_get_dither_color_list(dither),
|
|
|
|
&dither_color, &msg_name);
|
2011-11-09 02:26:58 +00:00
|
|
|
caca_set_dither_color(dither, dither_color);
|
|
|
|
osdmessage(MESSAGE_DURATION, "Using %s", msg_name);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
if (key <= 255)
|
2012-08-06 21:55:47 +00:00
|
|
|
mplayer_put_key(vo->key_fifo, key);
|
2011-11-09 02:26:58 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static void uninit(struct vo *vo)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
caca_free_dither(dither);
|
|
|
|
dither = NULL;
|
|
|
|
caca_free_display(display);
|
|
|
|
caca_free_canvas(canvas);
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static void draw_osd(struct vo *vo, struct osd_state *osd)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
|
|
|
if (vo_osd_progbar_type != -1)
|
2011-11-09 02:26:58 +00:00
|
|
|
osdpercent(MESSAGE_DURATION, 0, 255, vo_osd_progbar_value,
|
|
|
|
sub_osd_names[vo_osd_progbar_type], "");
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static int preinit(struct vo *vo, const char *arg)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
if (arg) {
|
|
|
|
mp_msg(MSGT_VO, MSGL_ERR, "vo_caca: Unknown subdevice: %s\n", arg);
|
|
|
|
return ENOSYS;
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
canvas = caca_create_canvas(0, 0);
|
|
|
|
if (canvas == NULL) {
|
|
|
|
mp_msg(MSGT_VO, MSGL_ERR, "vo_caca: failed to create canvas\n");
|
|
|
|
return ENOSYS;
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
display = caca_create_display(canvas);
|
2004-04-06 00:04:48 +00:00
|
|
|
|
2011-11-09 02:26:58 +00:00
|
|
|
if (display == NULL) {
|
|
|
|
mp_msg(MSGT_VO, MSGL_ERR, "vo_caca: failed to create display\n");
|
|
|
|
caca_free_canvas(canvas);
|
|
|
|
return ENOSYS;
|
|
|
|
}
|
|
|
|
|
|
|
|
caca_set_display_title(display, "MPlayer");
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-08-05 01:24:37 +00:00
|
|
|
static int query_format(uint32_t format)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
|
|
|
if (format == IMGFMT_BGR24)
|
2011-11-09 02:26:58 +00:00
|
|
|
return VFCAP_OSD | VFCAP_CSP_SUPPORTED;
|
2004-04-06 00:04:48 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-08-06 21:55:47 +00:00
|
|
|
static int control(struct vo *vo, uint32_t request, void *data)
|
2004-04-06 00:04:48 +00:00
|
|
|
{
|
2011-11-09 02:26:58 +00:00
|
|
|
switch (request) {
|
2004-04-06 00:04:48 +00:00
|
|
|
case VOCTRL_QUERY_FORMAT:
|
2011-11-09 02:26:58 +00:00
|
|
|
return query_format(*((uint32_t *)data));
|
2012-08-06 21:55:47 +00:00
|
|
|
case VOCTRL_DRAW_IMAGE:
|
|
|
|
return draw_image(vo, data);
|
2004-04-06 00:04:48 +00:00
|
|
|
default:
|
2011-11-09 02:26:58 +00:00
|
|
|
return VO_NOTIMPL;
|
2004-04-06 00:04:48 +00:00
|
|
|
}
|
|
|
|
}
|
2012-08-06 21:55:47 +00:00
|
|
|
|
|
|
|
const struct vo_driver video_out_caca = {
|
|
|
|
.is_new = false,
|
|
|
|
.info = &(const vo_info_t) {
|
|
|
|
"libcaca",
|
|
|
|
"caca",
|
|
|
|
"Pigeon <pigeon@pigeond.net>",
|
|
|
|
""
|
|
|
|
},
|
|
|
|
.preinit = preinit,
|
|
|
|
.config = config,
|
|
|
|
.control = control,
|
|
|
|
.draw_slice = draw_slice,
|
|
|
|
.draw_osd = draw_osd,
|
|
|
|
.flip_page = flip_page,
|
|
|
|
.check_events = check_events,
|
|
|
|
.uninit = uninit,
|
|
|
|
};
|