< 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 jboolean GetScaledImageName(const char *fileName, char *scaledImgName,
 154                   float *scaleFactor, const size_t scaledImageLength);
 155 typedef struct SplashStream {
 156     int (*read)(void* pStream, void* pData, int nBytes);
 157     int (*peek)(void* pStream);
 158     void (*close)(void* pStream);
 159     union {
 160         struct {
 161             FILE* f;
 162         } stdio;
 163         struct {
 164             unsigned char* pData;
 165             unsigned char* pDataEnd;
 166         } mem;
 167     } arg;
 168 } SplashStream;
 169 
 170 int SplashStreamInitFile(SplashStream * stream, const char* filename);
 171 int SplashStreamInitMemory(SplashStream * stream, void * pData, int size);
 172 
 173 /* image decoding */
 174 int SplashDecodeGifStream(Splash * splash, SplashStream * stream);
< prev index next >