Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
magick_QuantizeInfo.c
Package: verifidecoder_src.rar [view]
Upload User: qingzhou
Upload Date: 2013-04-21
Package Size: 733k
Code Size: 3k
Category:
Crack_Hack
Development Platform:
Java
- #include <jni.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <time.h>
- #include <sys/types.h>
- #include <magick/api.h>
- #include "jmagick.h"
- #include "magick_ImageInfo.h"
- /*
- * Class: magick_QuantizeInfo
- * Method: init
- * Signature: ()V
- */
- JNIEXPORT void JNICALL Java_magick_QuantizeInfo_init
- (JNIEnv *env, jobject self)
- {
- QuantizeInfo *quantizeInfo = NULL;
- jfieldID fid = 0;
- quantizeInfo =
- (QuantizeInfo*) getHandle(env, self, "quantizeInfoHandle", &fid);
- if (quantizeInfo == NULL) {
- quantizeInfo = (QuantizeInfo *) AcquireMemory(sizeof(QuantizeInfo));
- if (quantizeInfo == NULL) {
- throwMagickException(env, "Unable to allow memory for handle");
- return;
- }
- }
- GetQuantizeInfo(quantizeInfo);
- setHandle(env, self, "quantizeInfoHandle", (void*) quantizeInfo, &fid);
- }
- /*
- * Class: magick_QuantizeInfo
- * Method: destroyQuantizeInfo
- * Signature: ()V
- */
- JNIEXPORT void JNICALL Java_magick_QuantizeInfo_destroyQuantizeInfo
- (JNIEnv *env, jobject self)
- {
- QuantizeInfo *quantizeInfo = NULL;
- jfieldID handleFid = 0;
- quantizeInfo = (QuantizeInfo*) getHandle(env, self,
- "quantizeInfoHandle", &handleFid);
- if (quantizeInfo != NULL) {
- setHandle(env, self, "quantizeInfoHandle", NULL, &handleFid);
- DestroyQuantizeInfo(quantizeInfo);
- }
- }
- /*
- * Class: magick_QuantizeInfo
- * Method: setNumberColors
- * Signature: (I)V
- */
- setIntMethod(Java_magick_QuantizeInfo_setNumberColors,
- number_colors,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: getNumberColors
- * Signature: ()I
- */
- getIntMethod(Java_magick_QuantizeInfo_getNumberColors,
- number_colors,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: setTreeDepth
- * Signature: (I)V
- */
- setIntMethod(Java_magick_QuantizeInfo_setTreeDepth,
- tree_depth,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: getTreeDepth
- * Signature: ()I
- */
- getIntMethod(Java_magick_QuantizeInfo_getTreeDepth,
- tree_depth,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: setDither
- * Signature: (I)V
- */
- setIntMethod(Java_magick_QuantizeInfo_setDither,
- dither,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: getDither
- * Signature: ()I
- */
- getIntMethod(Java_magick_QuantizeInfo_getDither,
- dither,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: setColorspace
- * Signature: (I)V
- */
- setIntMethod(Java_magick_QuantizeInfo_setColorspace,
- colorspace,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: getColorspace
- * Signature: ()I
- */
- getIntMethod(Java_magick_QuantizeInfo_getColorspace,
- colorspace,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: setMeasureError
- * Signature: (I)V
- */
- setIntMethod(Java_magick_QuantizeInfo_setMeasureError,
- measure_error,
- "quantizeInfoHandle",
- QuantizeInfo)
- /*
- * Class: magick_QuantizeInfo
- * Method: getMeasureError
- * Signature: ()I
- */
- getIntMethod(Java_magick_QuantizeInfo_getMeasureError,
- measure_error,
- "quantizeInfoHandle",
- QuantizeInfo)