Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Luc Peurière <jlp@nerim.net>2005-03-09 22:45:59 +0300
committerJean-Luc Peurière <jlp@nerim.net>2005-03-09 22:45:59 +0300
commitc78e44cdc563853c250da78ee78ba622c39126b2 (patch)
treefb116af7e1edd94ef96ae883bea727be372e2bd2 /source/blender/quicktime
parent77d44e88e95d86661fc8b29db923083ec747cf9d (diff)
big warning hunt commit
lot of casts, added prototypes, missing includes and some true errors
Diffstat (limited to 'source/blender/quicktime')
-rw-r--r--source/blender/quicktime/apple/quicktime_export.c8
-rw-r--r--source/blender/quicktime/apple/quicktime_import.c22
2 files changed, 16 insertions, 14 deletions
diff --git a/source/blender/quicktime/apple/quicktime_export.c b/source/blender/quicktime/apple/quicktime_export.c
index 2b455277122..dd97cec736b 100644
--- a/source/blender/quicktime/apple/quicktime_export.c
+++ b/source/blender/quicktime/apple/quicktime_export.c
@@ -112,13 +112,13 @@ static struct QuicktimeComponentData *qtdata;
static int sframe;
-void CheckError(OSErr err, char *msg)
+static void CheckError(OSErr err, char *msg)
{
if(err != noErr) printf("%s: %d\n", msg, err);
}
-OSErr QT_SaveCodecSettingsToScene(void)
+static OSErr QT_SaveCodecSettingsToScene(void)
{
QTAtomContainer myContainer = NULL;
ComponentResult myErr = noErr;
@@ -179,7 +179,7 @@ bail:
}
-OSErr QT_GetCodecSettingsFromScene(void)
+static OSErr QT_GetCodecSettingsFromScene(void)
{
Handle myHandle = NULL;
ComponentResult myErr = noErr;
@@ -221,7 +221,7 @@ bail:
}
-OSErr QT_AddUserDataTextToMovie (Movie theMovie, char *theText, OSType theType)
+static OSErr QT_AddUserDataTextToMovie (Movie theMovie, char *theText, OSType theType)
{
UserData myUserData = NULL;
Handle myHandle = NULL;
diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c
index 1636d9429a4..99618bc3583 100644
--- a/source/blender/quicktime/apple/quicktime_import.c
+++ b/source/blender/quicktime/apple/quicktime_import.c
@@ -236,7 +236,7 @@ void free_anim_quicktime (struct anim *anim) {
}
-OSErr QT_get_frameIndexes(struct anim *anim)
+static OSErr QT_get_frameIndexes(struct anim *anim)
{
int i;
OSErr anErr = noErr;
@@ -348,7 +348,7 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position)
// following two functions only here to get movie pixeldepth
-int GetFirstVideoMedia(struct anim *anim)
+static int GetFirstVideoMedia(struct anim *anim)
{
long numTracks;
OSType mediaType;
@@ -370,10 +370,10 @@ int GetFirstVideoMedia(struct anim *anim)
return 0; // went through all tracks and no video
}
-short GetFirstVideoTrackPixelDepth(struct anim *anim)
+static short GetFirstVideoTrackPixelDepth(struct anim *anim)
{
SampleDescriptionHandle imageDescH = (SampleDescriptionHandle)NewHandle(sizeof(Handle));
- long trackIndex = 0;
+// long trackIndex = 0; /*unused*/
if(!GetFirstVideoMedia(anim))
return -1;
@@ -507,14 +507,16 @@ int imb_is_a_quicktime (char *name)
GraphicsImportComponent theImporter = NULL;
FSSpec theFSSpec;
- Str255 dst;
+#ifdef _WIN32
+ Str255 dst; /*unused*/
+#endif
char theFullPath[255];
- Boolean isMovieFile = false;
- AliasHandle myAlias = NULL;
- Component myImporter = NULL;
+// Boolean isMovieFile = false; /*unused*/
+// AliasHandle myAlias = NULL; /*unused*/
+// Component myImporter = NULL; /*unused*/
#ifdef __APPLE__
- FInfo myFinderInfo;
+// FInfo myFinderInfo; /*unused*/
FSRef myRef;
#endif
OSErr err = noErr;
@@ -564,7 +566,7 @@ ImBuf *imb_quicktime_decode(unsigned char *mem, int size, int flags)
int x, y, depth;
int have_gw = FALSE;
ImBuf *ibuf = NULL;
- ImBuf *imbuf = NULL;
+// ImBuf *imbuf = NULL; /*unused*/
GWorldPtr offGWorld;
PixMapHandle myPixMap = NULL;