Go to the source code of this file.
Defines | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | FILE_NAME_LENGTH 150 |
#define | BITMAP_X_SIZE 2048 |
#define | BITMAP_Y_SIZE 2048 |
#define | LOCAL static |
#define | IMPORT extern |
#define | FAST register |
#define | READ_ERROR -1 |
#define | OUT_OF_MEMORY -10 |
#define | BAD_CODE_SIZE -20 |
#define | READ_ERROR -1 |
#define | WRITE_ERROR -2 |
#define | OPEN_ERROR -3 |
#define | CREATE_ERROR -4 |
#define | MAX_CODES 4095 |
Typedefs | |
typedef short | SWORD |
typedef unsigned short | UWORD |
typedef char | TEXT |
typedef unsigned char | UTINY |
typedef long | LONG |
typedef unsigned long | ULONG |
typedef int | INT |
typedef struct Colour_Struct | COLOUR |
typedef struct Colour_Map_Entry | COLOUR_MAP_ENTRY |
typedef struct Colour_Map_Struct | COLOUR_MAP |
typedef struct Image_Struct | IMAGE |
Functions | |
int | out_line (unsigned char *pixels, int linelen) |
int | get_byte (void) |
short | read_gif_image (char *filename, short palette_only) |
LOCAL SWORD | init_exp (SWORD size) |
LOCAL SWORD | get_next_code (void) |
LOCAL SWORD | decoder (SWORD linewidth) |
Variables | |
int | colourmap_size |
int | x_size |
int | y_size |
int | gif_iLace |
unsigned char | p_red [256] |
unsigned char | p_green [256] |
unsigned char | p_blue [256] |
unsigned char * | decoderline |
INT | bad_code_count |
LOCAL SWORD | curr_size |
LOCAL SWORD | clear |
LOCAL SWORD | ending |
LOCAL SWORD | newcodes |
LOCAL SWORD | top_slot |
LOCAL SWORD | slot |
LOCAL SWORD | navail_bytes = 0 |
LOCAL SWORD | nbits_left = 0 |
LOCAL UTINY | b1 |
LOCAL UTINY | byte_buff [257] |
LOCAL UTINY * | pbytes |
LOCAL LONG | code_mask [13] |
LOCAL UTINY | dstack [MAX_CODES+1] |
LOCAL UTINY | suffix [MAX_CODES+1] |
LOCAL UWORD | prefix [MAX_CODES+1] |
#define TRUE 1 |
Definition at line 6 of file GIF.C.
Referenced by _ATMbuilder(), _ExternalPreset(), _ExternalTextureProcedure(), _GetExternalImage(), _GetExternalImageSize(), _HeightField(), _PrintBitmap(), _PutExternalImage(), _RenderImageProcess(), _TTFbuilder(), _Xmodeler(), AbortPrintJob(), AboutDlgProc(), ActionRotate(), ActorNameExists(), AddCopy(), AddCostumeTimeLine(), AddEffect(), AddExternalSkeleton(), AddOnlyNewNode(), AddQuickActor(), AdjustPathTension(), AllocateThreadStorage(), AllocNurbs(), AngleKeyFrame(), AnglerOff(), AnglerOn(), AnimationPlayer(), AnimatorStartup(), AnimatorTriViewWndProc(), AnimatorUndo(), AnimatorViewWndProc(), AttribsDlgProc(), AutoUpdateKeyframerVpos(), Bilinear(), BozoDlgProc(), bSetupPixelFormat(), BuildAccurateCurveDlgProc(), BuildATMfontString(), BuildMapList(), BuildPrimitive(), BuildTTFfontString(), ChangeScreenResolution(), CheckEdgeExists(), CheckFaceExists(), CheckGPUhardware(), CheckInterrupt(), CheckSingleRenderImageMap(), CloneNurbs(), CompleteMovieMapLoading(), ConePrimitiveDlgProc(), configureAVIfile(), CoordinatesDlgProc(), CopyRamImage(), CPushPinBitmapSet::CPushPinBitmapSet(), CreateAttachedCopy(), CreateImageProcess(), CreateMaterial(), CreateMemoryWindows(), CreateVRMLfile(), CubePrimitiveDlgProc(), CursorInTriview(), CylinderPrimitiveDlgProc(), DefaultAttribsDlgProc(), DeleteFramesDlgProc(), DeleteRangeOfFrames(), DeleteSelectedNurbsSurfaces(), DesignStartup(), DestroyTimelineEditor(), DisengageDesignerTool(), DisengageSkeletonTool(), DiskPrimitiveDlgProc(), DlgHelp(), DlgProcScale(), DlgProcSettings(), DllEntryPoint(), DllMain(), Do3dsConvert(), DoDxfConvert(), DotsDlgProc(), DoubleTriangle(), DrawAllNurbsInOne(), DrawExternalMaterialPolys(), DrawGrid(), DrawGridInOne(), DrawNurbsWireFrame(), DrawPerspectiveView(), DrawQuick3dView(), DrawQuickModel(), EditCameraSize(), EditDirectorDialog(), EditGroundDialog(), EditLightDialog(), EditMaterial(), EditObject(), EditObjectDlgProc(), EditObjectImageProcess(), EditObjectXipDlgProc(), EditPathMovement(), EditPathOff(), EditPathOn(), EditSkyDialog(), EditXipDlgProc(), EffectObjectVertices(), EnableGLview(), EngageTool(), EraseAll(), EraseTempImageFiles(), ExecuteBezierModeler(), ExecuteExternalAction(), ExecuteExternalModeler(), ExpandDlgProc(), ExplodeDlgProc(), ExportRobotKeyframes(), ExportRobotSequence(), Extrude(), ExtrudeAlongDlgProc(), FastAntiAliasRenderMultiThreaded(), CPushPinBitmapSet::FillBuffer(), Flare1DlgProc(), Flare2DlgProc(), Flare3DlgProc(), Flare4DlgProc(), Flare5DlgProc(), Flare6DlgProc(), FlipDlgProc(), FocusActiveWindow(), FormatScreen(), FreeExternalTextures(), FunctionPlotDlgProc(), get_centre(), GetCommand(), GetInternalTexture(), GrowSelectedAlongNormal(), HierarchyDlgProc(), hitpoint2(), HULL_ADDOne(), IdentifyCurve(), initialize(), InitializeLastFilesList(), InsertFrames(), InsertFramesDlgProc(), InstantStageGrab(), InstantStageRotate(), InstantStageXpnd(), intriview(), inview(), IsAttribDlgMessage(), IsFOSame(), IsPrimitivesDialogMessage(), ItemSelectDlgProc(), LeaveGrabMode(), LibMain(), LoadAndCompileShader(), LoadAnimationFile(), LoadAnimObject(), LoadExternalTexture(), LoadInternalAction(), LoadMDIviewer(), LoadMeshObject(), CPushPinBitmapSet::LoadNextBitmap(), LoadObject(), LoadParticleImages(), LoadPath(), LoadPreferences(), LoadRamImage(), LoadSingleRenderImageMap(), LoadSystemMAP(), LoadUtility(), LockDlgProc(), LogOnMessage(), MainAnimatorWndProc(), MainModelerWndProc(), MainWndProc(), Make3dDisplayList(), Make3dDisplayListProg(), MakeAutoWireFrame(), MakeScript(), MenuCommand(), ModelerTriViewWndProc(), ModelerViewWndProc(), MoveCtrlWindow(), MoveDlgProc(), MoveNurbsControlPoint(), MoveNurbsSurface(), MoveToolsWindow(), NextKey(), NoAlphaWndProc(), normalise(), Normalize(), Nudge(), O_Normalize(), ObjectTimelineDlgProc(), OnSelectFilter(), openAVIfile(), OpenDraftToolbox(), PackAnimationFile(), PanToolDown(), PanToolMove(), PanToolUp(), PathSetDlgProc(), PathToolDlgProc(), PerspectiveView(), PickClosestNode(), PickClosestPathPoint(), PickNode(), PlanePrimitiveDlgProc(), PolygonPrimitiveDlgProc(), PrimitiveOn(), PrimitivesDlgProc(), PrintImageFile(), PurgeUnusedMaterials(), QuicktimeWndProc(), R_LoadObject(), Read3Reals(), read_gif_image(), ReadRamImage(), RegisterSuperClass(), RegularGridOfStars(), render(), RendererMainWndProc(), RenderHide(), RenderMultiThreaded(), RequestCharString(), RequestEditLightSize(), RequestEditSize(), RequestNumEntry(), reset_mod_maxview(), Resize(), Restore_UndoA(), RotateDlgProc(), RotateNurbsSurface(), RotateOff(), RotatorToolDlgProc(), Save_UndoA(), SaveAnimFile(), SaveObject(), SavePath(), SelectActorDlgProc(), SelectConnectedTo(), SelectFileName(), SelectKeyMaker(), SelectNurbsControlPoint(), SelectNurbsInCircle(), SelectNurbsInLasso(), SelectNurbsInRectangle(), SelectNurbsPatch(), SelectScrolledItemList(), SetColour(), SetFramesDlgProc(), SetTitleBarMessage(), SetUniformMatrix3(), SetUniformMatrix4(), SetUpGlWindow(), SetUpGrid(), SetupImageMap(), SetupMainWindow(), SetUpParticles(), ShadersInit(), ShadersInitTour(), ShiftAllKeys(), ShifterOff(), ShifterOn(), ShiftKeyFrameActivate(), ShiftKeysDlgProc(), ShiftSelectedPositionAllKeys(), SizeOff(), SizerToolDlgProc(), Skeletor(), SkeletorOff(), SkeletorOn(), SkToolAction(), SkToolDown(), SkToolMove(), SnapCursorTo(), SnapTo(), Sphere1PrimitiveDlgProc(), SpherePrimitiveDlgProc(), SpinWndFn(), SpiralsDlgProc(), SplineTweenDlgProc(), SqueezeDlgProc(), StageGrabOff(), StageGrabOn(), StageRotate(), StageRotateOn(), StageSizeOn(), StartDefault(), StartExternGL(), StartGLview(), StartOpenGL(), SwitchWindow(), TimelineEditor(), ToolBtnWndProc(), ToolDown(), ToolMove(), TorusPrimitiveDlgProc(), trace_starting_ray(), TriangulateNurbsSurface(), TubePrimitiveDlgProc(), TwistDlgProc(), UnloadRamImage(), UnpackAnimationFile(), UnstoreRamImage(), UpdateEdgeHeap(), UpdateFaceHeap(), UpdateGLview(), UpdateIconPositions(), UpdateRuler(), UpdateVertexHeap(), WinMain(), WriteRamImage(), WriteTemporaryFileForScript(), XpandNurbsSurface(), Zoom(), Zoom2(), and ZoomView().
#define FALSE 0 |
Definition at line 10 of file GIF.C.
Referenced by _ATMbuilder(), _AttachViewOpenGL(), _BuildAvi(), _BuildAviOld(), _BuildGif(), _ExternalPreset(), _ExternalTextureProcedure(), _GetExternalImage(), _GetExternalImageSize(), _HeightField(), _PrintBitmap(), _PutExternalImage(), _RenderImageProcess(), _SetExternalParameters(), _TTFbuilder(), _Xmodeler(), AbortPrintJob(), AboutDlgProc(), ActionRotate(), ActorNameExists(), AddCopy(), AddCostumeTimeLine(), AddExternalSkeleton(), AddOnlyNewNode(), AddToRenderImagePreview(), AllocateThreadStorage(), AllocNurbs(), AngleKeyFrame(), AnimationPlayer(), AnimatorStartup(), AnimatorTriViewWndProc(), AnimatorViewWndProc(), Bilinear(), BozoDlgProc(), bSetupPixelFormat(), BuildAccurateCurveDlgProc(), BuildATMfontString(), BuildMapList(), BuildPrimitive(), BuildTTFfontString(), ChangeScreenResolution(), check_for_shadow(), CheckEdgeExists(), CheckFaceExists(), CheckGPUhardware(), CheckInterrupt(), CheckSingleRenderImageMap(), CloneNurbs(), CloseGlWindow(), ConePrimitiveDlgProc(), CoordinatesDlgProc(), CopyConnected(), CopyRamImage(), CreateAttachedCopy(), CreateCompressionFilter(), CreateCostume(), CreateFace(), CreateImageMap(), CreateMemoryWindows(), CreateNurbs(), CreateVRMLfile(), CubePrimitiveDlgProc(), CursorInTriview(), CylinderPrimitiveDlgProc(), DeleteFramesDlgProc(), DeleteRamFile(), DeleteRangeOfFrames(), DeleteSelectedNurbsSurfaces(), DesignShutdown(), DesignStartup(), DisengageDesignerTool(), DisengageSkeletonTool(), DisengageTool(), DiskPrimitiveDlgProc(), DlgHelp(), DlgProc(), DlgProcScale(), DlgProcSettings(), DllMain(), Do3dsConvert(), DoDxfConvert(), DotsDlgProc(), DoubleTriangle(), Draw3dCursor(), Draw3dView(), DrawAllNurbsInOne(), DrawBrush(), DrawBrushInOne(), DrawExternalMaterialPolys(), DrawGrid(), DrawGridInOne(), DrawInvertNode(), DrawModel(), DrawNurbsWireFrame(), DrawOneEdgeOnly(), DrawQuick3dView(), DrawQuickModel(), DrawRubber3dLine(), DrawRubberBoundBox(), DrawRubberLines(), DrawShaperSphere(), DrawSkeletonInOne(), DrawTrSkeletonInOne(), DrawVerticesOnly(), DrawViewRobot(), DuplicateSelectedNurbs(), EditAlign(), EditCameraSize(), EditDirectorDialog(), EditGroundDialog(), EditImageMap(), EditLightDialog(), EditObject(), EditObjectDlgProc(), EditObjectXipDlgProc(), EditPathMovement(), EditPosition(), EditSize(), EditSkyDialog(), EditXipDlgProc(), EffectDlgProc(), EnableGLview(), EnableTools(), EngageTool(), EraseTempImageFiles(), ExecuteActorsMenu(), ExecuteBezierModeler(), ExecuteExternalAction(), ExecuteExternalModeler(), ExecuteLockAction(), ExecutePrimitivesMenu(), ExpandDlgProc(), ExplodeDlgProc(), Export3DSmodel(), ExportDXFmodel(), ExportRobotKeyframes(), Extrude(), ExtrudeAlongDlgProc(), FindDevice(), Flare1DlgProc(), Flare2DlgProc(), Flare3DlgProc(), Flare4DlgProc(), Flare5DlgProc(), Flare6DlgProc(), FlipDlgProc(), FocusActiveWindow(), FormatScreen(), FreeExternalTextures(), FreeFrameObjects(), FreeMovieMapImages(), FunctionPlotDlgProc(), GetCommand(), GetInternalTexture(), CPushPinBitmapSet::GetMediaType(), GrowSelectedAlongNormal(), HideNurbs(), HierarchyDlgProc(), hitpoint2(), HULL_ADDOne(), IdentifyCurve(), ImportRobotSequence(), InitialiseParticleSystem(), InitialiseRamImage(), InitializeLastFilesList(), InsertFrames(), InsertFramesDlgProc(), intriview(), inview(), IrotateOn(), IsFOSame(), ItemSelectDlgProc(), IxpandOn(), LibMain(), LoadAndCompileShader(), LoadAnimationFile(), LoadExternalTexture(), LoadHeightField(), LoadInternalAction(), LoadMDIviewer(), LoadMeshObject(), CPushPinBitmapSet::LoadNextBitmap(), LoadObject(), LoadParticleImages(), LoadPath(), LoadPreferences(), LoadRamImage(), LoadUtility(), LockDlgProc(), LogOnMessage(), MainAnimatorWndProc(), MainModelerWndProc(), MainWndProc(), Make3dDisplayList(), Make3dDisplayListProg(), MakeFullMemoryImage(), MakeKey(), MakePreview(), MakeScript(), MenuCommand(), MeshNurbsSurfaces(), MeterWndFn(), ModelerTriViewWndProc(), ModelerViewWndProc(), Move3dCursor(), MoveDlgProc(), MoveNurbsControlPoint(), MoveNurbsSurface(), MoveToolsWindow(), NextKey(), NoAlphaWndProc(), normalise(), Normalize(), Nudge(), NurbsTeapot(), O_Normalize(), ObjectTimelineDlgProc(), OnSelectFilter(), openAVIfile(), OpenDraftToolbox(), OpenRobotDirectory(), PaintMapOutline(), PanToolDown(), PanToolMove(), PanToolUp(), ParticleDlgProc(), PathSetDlgProc(), PathToolDlgProc(), PerspectiveView(), PerspectiveView0(), PickClosestNode(), PickClosestPathPoint(), PlanePrimitiveDlgProc(), PolygonPrimitiveDlgProc(), PositionBrushOnOff(), PrimitiveOff(), PrimitiveOn(), PrimitivesDlgProc(), PrintImageFile(), ProcessChunk3ds(), PurgeUnusedMaps(), QuicktimeWndProc(), R_LoadObject(), Read3Reals(), read_gif_image(), ReadRamImage(), ReDrawStageDisplay(), RegisterSuperClass(), RegularGridOfStars(), render(), RendererMainWndProc(), RenderExternalTexture(), RenderHide(), RenderImageProcess(), RenderRubberBones(), RequestCharString(), RequestEditLightSize(), RequestEditSize(), RequestNumEntry(), reset_mod_maxview(), Resize(), Restore_Undo(), Restore_UndoA(), RotateDlgProc(), RotateNurbsSurface(), RotatorToolDlgProc(), Save_Undo(), SaveObject(), SaveRamImagesFromAllMaps(), SaveRamImagesToFiles(), SelectActorDlgProc(), SelectConnectedTo(), SelectDraftTool(), SelectFileName(), SelectKeyMaker(), SelectMapAndMapVertices(), SelectNurbsControlPoint(), SelectNurbsInCircle(), SelectNurbsInLasso(), SelectNurbsInRectangle(), SelectNurbsPatch(), SelectorDown(), SelectScrolledItemList(), SetColour(), SetExternalParameters(), SetFramesDlgProc(), SetNumberOfFrames(), SetTitleBarMessage(), SetUpGlWindow(), SetUpGrid(), SetupMainWindow(), SetUpParticles(), ShadersInit(), ShadersInitTour(), ShiftAllKeys(), ShiftKeyFrame(), ShiftKeyFrameActivate(), ShiftKeysDlgProc(), ShiftSelectedPositionAllKeys(), SizerToolDlgProc(), SkToolDown(), SkToolUp(), SnapCursorTo(), Sphere1PrimitiveDlgProc(), SpherePrimitiveDlgProc(), SpinWndFn(), SpiralsDlgProc(), SplineTweenDlgProc(), SqueezeDlgProc(), StageGrab(), StageRotate(), StageSizeOn(), StageStepRotate(), StartExternGL(), StartGLview(), StartOpenGL(), SwitchTrackerType(), SwitchWindow(), ToolBtnWndProc(), ToolDown(), ToolUp(), TorusPrimitiveDlgProc(), trace_starting_ray(), TraceImageOutline(), TubePrimitiveDlgProc(), TwistDlgProc(), UnloadCompiledShader(), UnloadParticleImages(), UnloadShaders(), UnstoreRamImage(), UpdateCounters(), UpdateGLview(), UpdateIconPositions(), UpdateNTTrace(), UpdateRuler(), VectorMaps(), Viewer(), WinMain(), WriteTemporaryFileForScript(), XpandNurbsSurface(), Zoom(), and ZoomView().
#define BITMAP_X_SIZE 2048 |
#define BITMAP_Y_SIZE 2048 |
#define FAST register |
#define BAD_CODE_SIZE -20 |
typedef struct Colour_Map_Entry COLOUR_MAP_ENTRY |
typedef struct Colour_Map_Struct COLOUR_MAP |
int get_byte | ( | void | ) |
Definition at line 81 of file GIF.C.
Referenced by decoder(), get_next_code(), GIF_decoder(), and read_gif_image().
short read_gif_image | ( | char * | filename, | |
short | palette_only | |||
) |
Definition at line 217 of file GIF.C.
References clear, curr_size, ending, navail_bytes, nbits_left, newcodes, slot, and top_slot.
Referenced by decoder(), and GIF_decoder().
LOCAL WORD get_next_code | ( | void | ) |
Definition at line 227 of file GIF.C.
References b1, byte_buff, code_mask, curr_size, get_byte(), navail_bytes, nbits_left, pbytes, and x.
Referenced by decoder(), and GIF_decoder().
Definition at line 326 of file GIF.C.
References bad_code_count, BAD_CODE_SIZE, clear, curr_size, decoderline, dstack, ending, FAST, get_byte(), get_next_code(), init_exp(), newcodes, out_line(), prefix, slot, suffix, and top_slot.
Referenced by read_gif_image().
int colourmap_size |
unsigned char p_red[256] |
unsigned char p_green[256] |
unsigned char p_blue[256] |
unsigned char * decoderline |
Definition at line 193 of file GIF.C.
Referenced by decoder(), get_next_code(), GIF_decoder(), and init_exp().
LOCAL SWORD navail_bytes = 0 |
LOCAL SWORD nbits_left = 0 |
Initial value:
{ 0, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF }
Definition at line 206 of file GIF.C.
Referenced by get_next_code().