CTWM
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions | Variables
/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_tbuffer_16bpp
 
static uint32_tbuffer_32bpp
 

Typedef Documentation

◆ jerr_ptr

Definition at line 36 of file image_jpeg.c.

Function Documentation

◆ convert_for_16()

static 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, PlaceX, x, and y.

Referenced by LoadJpegImage().

◆ convert_for_32()

static 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, PlaceX, x, and y.

Referenced by LoadJpegImage().

◆ GetJpegImage()

Image * GetJpegImage ( const char * name)

Definition at line 46 of file image_jpeg.c.

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

Referenced by GetImage().

◆ jpeg_error_exit()

static void jpeg_error_exit ( j_common_ptr cinfo)
static

Definition at line 216 of file image_jpeg.c.

References PlaceX.

Referenced by LoadJpegImage().

◆ LoadJpegImage()

static Image * LoadJpegImage ( const char * name)
static

◆ LoadJpegImageCp()

static 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.

Referenced by convert_for_16(), and LoadJpegImage().

◆ buffer_32bpp

uint32_t* buffer_32bpp
static

Definition at line 39 of file image_jpeg.c.

Referenced by convert_for_32(), and LoadJpegImage().