< prev index next >

src/java.desktop/share/native/libsplashscreen/splashscreen_impl.h

Print this page




 133 
 134 void SplashUpdate(Splash * splash);
 135 void SplashReconfigure(Splash * splash);
 136 void SplashClosePlatform(Splash * splash);
 137 
 138 
 139 
 140 /********************* Shared **********************/
 141 Splash *SplashGetInstance();
 142 
 143 int SplashIsStillLooping(Splash * splash);
 144 void SplashNextFrame(Splash * splash);
 145 void SplashStart(Splash * splash);
 146 void SplashDone(Splash * splash);
 147 
 148 void SplashUpdateScreenData(Splash * splash);
 149 
 150 void SplashCleanup(Splash * splash);
 151 void SplashSetScaleFactor(float scaleFactor);
 152 int  SplashGetScaledImgNameMaxPstfixLen(const char *fileName);
 153 


 154 typedef struct SplashStream {
 155     int (*read)(void* pStream, void* pData, int nBytes);
 156     int (*peek)(void* pStream);
 157     void (*close)(void* pStream);
 158     union {
 159         struct {
 160             FILE* f;
 161         } stdio;
 162         struct {
 163             unsigned char* pData;
 164             unsigned char* pDataEnd;
 165         } mem;
 166     } arg;
 167 } SplashStream;
 168 
 169 int SplashStreamInitFile(SplashStream * stream, const char* filename);
 170 int SplashStreamInitMemory(SplashStream * stream, void * pData, int size);
 171 
 172 /* image decoding */
 173 int SplashDecodeGifStream(Splash * splash, SplashStream * stream);


 133 
 134 void SplashUpdate(Splash * splash);
 135 void SplashReconfigure(Splash * splash);
 136 void SplashClosePlatform(Splash * splash);
 137 
 138 
 139 
 140 /********************* Shared **********************/
 141 Splash *SplashGetInstance();
 142 
 143 int SplashIsStillLooping(Splash * splash);
 144 void SplashNextFrame(Splash * splash);
 145 void SplashStart(Splash * splash);
 146 void SplashDone(Splash * splash);
 147 
 148 void SplashUpdateScreenData(Splash * splash);
 149 
 150 void SplashCleanup(Splash * splash);
 151 void SplashSetScaleFactor(float scaleFactor);
 152 int  SplashGetScaledImgNameMaxPstfixLen(const char *fileName);
 153 void cleanUp(char *fName, char *xName, char *pctName, float *scaleFactor);
 154 jboolean GetScaledImageName(const char *fileName, char *scaledImgName,
 155                   float *scaleFactor, const size_t scaledImageLength);
 156 typedef struct SplashStream {
 157     int (*read)(void* pStream, void* pData, int nBytes);
 158     int (*peek)(void* pStream);
 159     void (*close)(void* pStream);
 160     union {
 161         struct {
 162             FILE* f;
 163         } stdio;
 164         struct {
 165             unsigned char* pData;
 166             unsigned char* pDataEnd;
 167         } mem;
 168     } arg;
 169 } SplashStream;
 170 
 171 int SplashStreamInitFile(SplashStream * stream, const char* filename);
 172 int SplashStreamInitMemory(SplashStream * stream, void * pData, int size);
 173 
 174 /* image decoding */
 175 int SplashDecodeGifStream(Splash * splash, SplashStream * stream);
< prev index next >