Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <stdio.h>
#include <string.h>
#include "vsfilesystem.h"
#include <jconfig.h>
#include <jmorecfg.h>
#include <jpeglib.h>
Go to the source code of this file.
Classes | |
struct | memory_destination_mgr |
Macros | |
#define | JPEG_SUPPORT |
#define | __JPEG_MEMORY_H |
Typedefs | |
typedef memory_destination_mgr * | mem_dest_ptr |
Functions | |
init_destination (j_compress_ptr cinfo) | |
empty_output_buffer (j_compress_ptr cinfo) | |
term_destination (j_compress_ptr cinfo) | |
GLOBAL (void) jpeg_memory_dest(j_compress_ptr cinfo | |
int | jpeg_compress (char *dst, char *src, int width, int height, int dstsize, int quality) |
int | jpeg_compress_to_file (char *src, char *file, int width, int height, int quality) |
void | jpeg_memory_src (j_decompress_ptr cinfo, unsigned char *ptr, size_t size) |
void | jpeg_decompress (unsigned char *dst, unsigned char *src, int size, int *w, int *h) |
void | jpeg_decompress_from_file (unsigned char *dst, char *file, int size, int *w, int *h) |
Variables | |
JOCTET * | buffer |
JOCTET int | bufsize |
#define __JPEG_MEMORY_H |
Definition at line 5 of file jpeg_memory.h.
#define JPEG_SUPPORT |
Definition at line 2 of file jpeg_memory.h.
typedef memory_destination_mgr* mem_dest_ptr |
Definition at line 52 of file jpeg_memory.h.
empty_output_buffer | ( | j_compress_ptr | cinfo) |
Definition at line 69 of file jpeg_memory.h.
References memory_destination_mgr::buffer, memory_destination_mgr::bufsize, memory_destination_mgr::pub, and TRUE.
Referenced by jpeg_memory_dest().
GLOBAL | ( | void | ) |
init_destination | ( | j_compress_ptr | cinfo) |
Definition at line 58 of file jpeg_memory.h.
References memory_destination_mgr::buffer, memory_destination_mgr::bufsize, memory_destination_mgr::datacount, and memory_destination_mgr::pub.
Referenced by jpeg_memory_dest().
Definition at line 24 of file jpeg_memory.cpp.
References memory_destination_mgr::datacount, height, jpeg_memory_dest(), TRUE, and width.
void jpeg_memory_src | ( | j_decompress_ptr | cinfo, |
unsigned char * | ptr, | ||
size_t | size | ||
) |
set momory-jpeg image to JPEG lib Info struct
cinfo | JPEG lib decompress infomation structure |
ptr | JPEG image |
size | JPEG image size |
Definition at line 139 of file jpeg_memory.cpp.
References fill_input_buffer(), init_source(), size, skip_input_data(), and term_source().
Referenced by jpeg_decompress().
term_destination | ( | j_compress_ptr | cinfo) |
Definition at line 82 of file jpeg_memory.h.
References memory_destination_mgr::bufsize, memory_destination_mgr::datacount, and memory_destination_mgr::pub.
Referenced by jpeg_memory_dest().
JOCTET* buffer |
Definition at line 90 of file jpeg_memory.h.
Referenced by NetBuffer::addBuffer(), NetBuffer::addChar(), NetBuffer::addDouble(), NetBuffer::addFloat(), NetBuffer::addInt32(), NetBuffer::addShort(), NetBuffer::addString(), NetBuffer::addType(), NetBuffer::addUInt32(), AUDAddWatchedPlayed(), AUDDestroy(), AUDQueryAudability(), VsnetDownload::Client::Buffer::childAppend(), ddsDecompress(), NetBuffer::extAddBuffer(), CPK3::ExtractFile(), NetBuffer::getBuffer(), NetBuffer::getChar(), NetBuffer::getData(), NetBuffer::getDouble(), Unit::getFgID(), NetBuffer::getFloat(), NetBuffer::getInt32(), AImissionScript::getOrderDescription(), NetBuffer::getShort(), NetBuffer::getString(), NetBuffer::getType(), NetBuffer::getUInt32(), FileUtil::HashCompute(), XMLDOM::VSFileXMLSerializer::importXML(), XMLDOM::XMLSerializer::importXML(), mmoc::listenThread(), Audio::OpenALSimpleSound::loadImpl(), Audio::OpenALStreamingSound::loadImpl(), LoadTex(), NetBuffer::NetBuffer(), Audio::SoundBuffer::operator=(), Packet::Packet(), Audio::OpenALRenderableStreamingSource::queueALBuffers(), Audio::Stream::read(), Audio::OpenALStreamingSound::readAndFlip(), Audio::SimpleSound::readBuffer(), VsnetUDPSocket::recvbuf(), Audio::SoundBuffer::reserve(), NetBuffer::Reset(), NetBuffer::resizeBuffer(), Audio::SoundBuffer::SoundBuffer(), Audio::SoundBuffer::swap(), Audio::OpenALStreamingSound::unqueueBuffer(), XMLnode::WriteString(), and NetBuffer::~NetBuffer().
JOCTET int bufsize |
Definition at line 90 of file jpeg_memory.h.
Referenced by NetBuffer::addBuffer(), VsnetDownload::Client::File::childAppend(), VsnetDownload::Client::Buffer::childAppend(), NetBuffer::extAddBuffer(), NetBuffer::NetBuffer(), setWeaponInfoToBuffer(), and VSFileSystem::VSFile::VSFile().