Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/vncdll/winvnc/translate.h
Views: 11779
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.1//2// This file is part of the VNC system.3//4// The VNC system is free software; you can redistribute it and/or modify5// it under the terms of the GNU General Public License as published by6// the Free Software Foundation; either version 2 of the License, or7// (at your option) any later version.8//9// This program is distributed in the hope that it will be useful,10// but WITHOUT ANY WARRANTY; without even the implied warranty of11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12// GNU General Public License for more details.13//14// You should have received a copy of the GNU General Public License15// along with this program; if not, write to the Free Software16// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,17// USA.18//19// TightVNC distribution homepage on the Web: http://www.tightvnc.com/20//21// If the source code for the VNC system is not available from the place22// whence you received this file, check http://www.uk.research.att.com/vnc or contact23// the authors on [email protected] for information on obtaining it.242526/* translate.h - prototypes of functions in translate.cpp */2728#ifndef TRANSLATE_H__29#define TRANSLATE_H__3031#include "stdhdrs.h"32#include "rfb.h"3334// Translate function prototype!35typedef void (*rfbTranslateFnType)(char *table, rfbPixelFormat *in,36rfbPixelFormat *out,37char *iptr, char *optr,38int bytesBetweenInputLines,39int width, int height);4041// Init function prototype!42typedef void (*rfbInitTableFnType)(char **table, rfbPixelFormat *in,43rfbPixelFormat *out);444546// External translation stuff47extern void rfbTranslateNone(char *table, rfbPixelFormat *in,48rfbPixelFormat *out,49char *iptr, char *optr,50int bytesBetweenInputLines,51int width, int height);5253// Macro to compare pixel formats.54#define PF_EQ(x,y) \55((x.bitsPerPixel == y.bitsPerPixel) && \56(x.depth == y.depth) && \57(x.trueColour == y.trueColour) && \58((x.bigEndian == y.bigEndian) || (x.bitsPerPixel == 8)) && \59(!x.trueColour || ((x.redMax == y.redMax) && \60(x.greenMax == y.greenMax) && \61(x.blueMax == y.blueMax) && \62(x.redShift == y.redShift) && \63(x.greenShift == y.greenShift) && \64(x.blueShift == y.blueShift))))6566// Translation functions themselves67extern rfbInitTableFnType rfbInitTrueColourSingleTableFns[];68extern rfbInitTableFnType rfbInitColourMapSingleTableFns[];69extern rfbInitTableFnType rfbInitTrueColourRGBTablesFns[];70extern rfbTranslateFnType rfbTranslateWithSingleTableFns[3][3];71extern rfbTranslateFnType rfbTranslateWithRGBTablesFns[3][3];7273/*74extern Bool rfbSetTranslateFunction(rfbClientPtr cl);75extern void rfbSetClientColourMaps(int firstColour, int nColours);76extern Bool rfbSetClientColourMap(rfbClientPtr cl, int firstColour,77int nColours);78*/7980#endif818283