CTWM
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/image_jpeg.c File Reference
#include "ctwm.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "screen.h"
#include "image.h"
#include "image_jpeg.h"
#include <setjmp.h>
#include <jpeglib.h>
#include <jerror.h>
#include <X11/Xlib.h>
Include dependency graph for image_jpeg.c:

Go to the source code of this file.

Data Structures

struct  jpeg_error

Typedefs

typedef struct jpeg_errorjerr_ptr

Functions

static ImageLoadJpegImage (const char *name)
static ImageLoadJpegImageCp (const char *name, ColorPair cp)
static void convert_for_16 (int w, int x, int y, int r, int g, int b)
static void convert_for_32 (int w, int x, int y, int r, int g, int b)
static void jpeg_error_exit (j_common_ptr cinfo)
ImageGetJpegImage (const char *name)

Variables

static uint16_t * buffer_16bpp
static uint32_t * buffer_32bpp

Typedef Documentation

◆ jerr_ptr

typedef struct jpeg_error* jerr_ptr

Definition at line 36 of file image_jpeg.c.

Function Documentation

◆ convert_for_16()

void convert_for_16 ( int w,
int x,
int y,
int r,
int g,
int b )
static

Definition at line 204 of file image_jpeg.c.

References buffer_16bpp, x, and y.

◆ convert_for_32()

void convert_for_32 ( int w,
int x,
int y,
int r,
int g,
int b )
static

Definition at line 210 of file image_jpeg.c.

References buffer_32bpp, x, and y.

◆ GetJpegImage()

Image * GetJpegImage ( const char * name)

Definition at line 46 of file image_jpeg.c.

References get_image_anim_cp(), LoadJpegImage(), and LoadJpegImageCp().

Referenced by GetImage().

◆ jpeg_error_exit()

void jpeg_error_exit ( j_common_ptr cinfo)
static

Definition at line 216 of file image_jpeg.c.

References jpeg_error::setjmp_buffer.

Referenced by LoadJpegImage().

◆ LoadJpegImage()

◆ LoadJpegImageCp()

Image * LoadJpegImageCp ( const char * name,
ColorPair cp )
static

Definition at line 66 of file image_jpeg.c.

References LoadJpegImage().

Referenced by GetJpegImage().

Variable Documentation

◆ buffer_16bpp

uint16_t* buffer_16bpp
static

Definition at line 38 of file image_jpeg.c.

◆ buffer_32bpp

uint32_t* buffer_32bpp
static

Definition at line 39 of file image_jpeg.c.