Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
gifdecode.h
Go to the documentation of this file.
1/* @(#)root/x11:$Id$ */
2/* Author: S.Linev 20/04/2026 */
3/* C++ interface for gifdecode.c */
4
5#ifndef gifdecode_h
6#define gifdecode_h
7
8class TGifDecode {
9 private:
10 unsigned char *ptr1 = nullptr; /* pointer to GIF array */
11 unsigned char *ptr2 = nullptr; /* pointer to PIX array */
12
13 int CurCodeSize = 0; /* current number of bits per code */
14 int CurMaxCode = 0; /* maximum code, given CurCodeSize */
15 long CurBit = -1; /* current bit in GIF image data */
16
17 long b3[3] = {0, 0, 0};
18 long CurByte = -1;
19 unsigned char lblk = 0;
20
21 int ReadCode();
22 void OutPixel(unsigned char pix);
23
24 public:
25
26 static int GIFinfo(unsigned char *GIFarr, int *Width, int *Height, int *Ncols);
27
28 int GIFdecode(unsigned char *GIFarr, unsigned char *PIXarr, int *Width, int *Height, int *Ncols, unsigned char *R, unsigned char *G, unsigned char *B);
29
30};
31
32
33#endif
#define R(a, b, c, d, e, f, g, h, i)
Definition RSha256.hxx:110
unsigned char lblk
Definition gifdecode.h:19
long b3[3]
Definition gifdecode.h:17
long CurByte
Definition gifdecode.h:18
void OutPixel(unsigned char pix)
Definition gifdecode.cxx:46
static int GIFinfo(unsigned char *GIFarr, int *Width, int *Height, int *Ncols)
Definition gifdecode.cxx:66
int ReadCode()
Definition gifdecode.cxx:18
int CurMaxCode
Definition gifdecode.h:14
unsigned char * ptr1
Definition gifdecode.h:10
int CurCodeSize
Definition gifdecode.h:13
long CurBit
Definition gifdecode.h:15
unsigned char * ptr2
Definition gifdecode.h:11
int GIFdecode(unsigned char *GIFarr, unsigned char *PIXarr, int *Width, int *Height, int *Ncols, unsigned char *R, unsigned char *G, unsigned char *B)
#define G(x, y, z)