rename avi files (endian.h is common linux include).
authorCampbell Barton <ideasman42@gmail.com>
Sun, 7 Oct 2012 06:27:31 +0000 (06:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 7 Oct 2012 06:27:31 +0000 (06:27 +0000)
13 files changed:
source/blender/avi/AVI_avi.h
source/blender/avi/CMakeLists.txt
source/blender/avi/intern/avi.c
source/blender/avi/intern/avi_codecs.c [moved from source/blender/avi/intern/codecs.c with 96% similarity]
source/blender/avi/intern/avi_endian.c [moved from source/blender/avi/intern/endian.c with 98% similarity]
source/blender/avi/intern/avi_endian.h [moved from source/blender/avi/intern/endian.h with 90% similarity]
source/blender/avi/intern/avi_mjpeg.c [moved from source/blender/avi/intern/mjpeg.c with 99% similarity]
source/blender/avi/intern/avi_mjpeg.h [moved from source/blender/avi/intern/mjpeg.h with 91% similarity]
source/blender/avi/intern/avi_options.c [moved from source/blender/avi/intern/options.c with 98% similarity]
source/blender/avi/intern/avi_rgb.c [moved from source/blender/avi/intern/avirgb.c with 98% similarity]
source/blender/avi/intern/avi_rgb.h [moved from source/blender/avi/intern/avirgb.h with 76% similarity]
source/blender/avi/intern/avi_rgb32.c [moved from source/blender/avi/intern/rgb32.c with 97% similarity]
source/blender/avi/intern/avi_rgb32.h [moved from source/blender/avi/intern/rgb32.h with 76% similarity]

index bdfdbc1..4dc5297 100644 (file)
@@ -178,7 +178,7 @@ typedef struct _AviStreamRec {
 } AviStreamRec;
 
 typedef struct _AviMovie {
-       FILE *fp; 
+       FILE *fp;
        
        int type;
 #define AVI_MOVIE_READ  0
index 79422df..292206d 100644 (file)
@@ -35,19 +35,19 @@ set(INC_SYS
 
 set(SRC
        intern/avi.c
-       intern/avirgb.c
-       intern/codecs.c
-       intern/endian.c
-       intern/mjpeg.c
-       intern/options.c
-       intern/rgb32.c
+       intern/avi_rgb.c
+       intern/avi_codecs.c
+       intern/avi_endian.c
+       intern/avi_mjpeg.c
+       intern/avi_options.c
+       intern/avi_rgb32.c
 
        AVI_avi.h
        intern/avi_intern.h
-       intern/avirgb.h
-       intern/endian.h
-       intern/mjpeg.h
-       intern/rgb32.h
+       intern/avi_rgb.h
+       intern/avi_endian.h
+       intern/avi_mjpeg.h
+       intern/avi_rgb32.h
 )
 
 blender_add_lib(bf_avi "${SRC}" "${INC}" "${INC_SYS}")
index 2845b2f..15d8702 100644 (file)
@@ -32,7 +32,6 @@
  * This is external code.
  */
 
-
 #include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
@@ -49,7 +48,7 @@
 #include "AVI_avi.h"
 #include "avi_intern.h"
 
-#include "endian.h"
+#include "avi_endian.h"
 
 static int AVI_DEBUG = 0;
 static char DEBUG_FCC[4];
similarity index 96%
rename from source/blender/avi/intern/codecs.c
rename to source/blender/avi/intern/avi_codecs.c
index 01e228d..e438260 100644 (file)
@@ -25,7 +25,7 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/avi/intern/codecs.c
+/** \file blender/avi/intern/avi_codecs.c
  *  \ingroup avi
  *
  * This is external code. Identify and convert different avi-files.
@@ -35,9 +35,9 @@
 #include "AVI_avi.h"
 #include "avi_intern.h"
 
-#include "avirgb.h"
-#include "mjpeg.h"
-#include "rgb32.h"
+#include "avi_rgb.h"
+#include "avi_mjpeg.h"
+#include "avi_rgb32.h"
 
 void *avi_format_convert(AviMovie *movie, int stream, void *buffer, AviFormat from, AviFormat to, int *size)
 {
similarity index 98%
rename from source/blender/avi/intern/endian.c
rename to source/blender/avi/intern/avi_endian.c
index 8e5ed80..70add8b 100644 (file)
@@ -26,7 +26,7 @@
  *
  */
 
-/** \file blender/avi/intern/endian.c
+/** \file blender/avi/intern/avi_endian.c
  *  \ingroup avi
  *
  * This is external code. Streams bytes to output depending on the
 
 #include <stdlib.h>
 #include <string.h>
-#include <stdio.h> 
+#include <stdio.h>
+
 #include "AVI_avi.h"
-#include "endian.h"
+#include "avi_endian.h"
 #include "avi_intern.h"
 
 #ifdef __BIG_ENDIAN__
similarity index 90%
rename from source/blender/avi/intern/endian.h
rename to source/blender/avi/intern/avi_endian.h
index 7ef49cb..8cea283 100644 (file)
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/avi/intern/endian.h
+/** \file blender/avi/intern/avi_endian.h
  *  \ingroup avi
  *
  * This is external code.
  */
 
-#ifndef __ENDIAN_H__
-#define __ENDIAN_H__
-
-#include <stdio.h>
-#include "AVI_avi.h"
+#ifndef __AVI_ENDIAN_H__
+#define __AVI_ENDIAN_H__
 
 #define AVI_RAW      0
 #define AVI_CHUNK    1
@@ -48,5 +45,4 @@
 
 void awrite(AviMovie *movie, void *datain, int block, int size, FILE *fp, int type);
 
-#endif
-
+#endif  /* __AVI_ENDIAN_H__ */
similarity index 99%
rename from source/blender/avi/intern/mjpeg.c
rename to source/blender/avi/intern/avi_mjpeg.c
index a700284..b98e03d 100644 (file)
  *
  */
 
-/** \file blender/avi/intern/mjpeg.c
+/** \file blender/avi/intern/avi_mjpeg.c
  *  \ingroup avi
  *
  * This is external code. Converts between avi and mpeg/jpeg.
  */
 
-
-#include "AVI_avi.h"
 #include <stdlib.h>
 #include <string.h>
+
+#include "AVI_avi.h"
+
+#include "MEM_guardedalloc.h"
+
 #include "jpeglib.h"
 #include "jerror.h"
-#include "MEM_guardedalloc.h"
 
-#include "mjpeg.h"
+#include "avi_mjpeg.h"
 
 #define PADUP(num, amt) ((num + (amt - 1)) & ~(amt - 1))
 
similarity index 91%
rename from source/blender/avi/intern/mjpeg.h
rename to source/blender/avi/intern/avi_mjpeg.h
index 7564989..6ae0e56 100644 (file)
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/avi/intern/mjpeg.h
+/** \file blender/avi/intern/avi_mjpeg.h
  *  \ingroup avi
  */
 
+#ifndef __AVI_MJPEG_H__
+#define __AVI_MJPEG_H__
 
 void *avi_converter_from_mjpeg (AviMovie *movie, int stream, unsigned char *buffer, int *size);
 void *avi_converter_to_mjpeg (AviMovie *movie, int stream, unsigned char *buffer, int *size);
 
+#endif /* __AVI_MJPEG_H__ */
similarity index 98%
rename from source/blender/avi/intern/options.c
rename to source/blender/avi/intern/avi_options.c
index 7de9131..f7759a1 100644 (file)
@@ -26,7 +26,7 @@
  *
  */
 
-/** \file blender/avi/intern/options.c
+/** \file blender/avi/intern/avi_options.c
  *  \ingroup avi
  *
  * This is external code. Sets some compression related options
@@ -35,7 +35,7 @@
 
 #include "AVI_avi.h"
 #include "avi_intern.h"
-#include "endian.h"
+#include "avi_endian.h"
 
 #ifdef WIN32
 #  include "BLI_winstuff.h"
similarity index 98%
rename from source/blender/avi/intern/avirgb.c
rename to source/blender/avi/intern/avi_rgb.c
index 7a95972..61587e1 100644 (file)
  *
  */
 
-/** \file blender/avi/intern/avirgb.c
+/** \file blender/avi/intern/avi_rgb.c
  *  \ingroup avi
  *
  * This is external code. Converts rgb-type avi-s.
  */
 
-
-#include "AVI_avi.h"
 #include <stdlib.h>
 #include <string.h>
 
 #include "MEM_guardedalloc.h"
-#include "avirgb.h"
+
+#include "AVI_avi.h"
+#include "avi_rgb.h"
 
 /* implementation */
 
similarity index 76%
rename from source/blender/avi/intern/avirgb.h
rename to source/blender/avi/intern/avi_rgb.h
index 20211d6..773166e 100644 (file)
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/avi/intern/avirgb.h
+/** \file blender/avi/intern/avi_rgb.h
  *  \ingroup avi
  */
 
+#ifndef __AVI_RGB_H__
+#define __AVI_RGB_H__
 
-void *avi_converter_from_avi_rgb (AviMovie *movie, int stream, unsigned char *buffer, int *size);
-void *avi_converter_to_avi_rgb (AviMovie *movie, int stream, unsigned char *buffer, int *size);
+void *avi_converter_from_avi_rgb(AviMovie *movie, int stream, unsigned char *buffer, int *size);
+void *avi_converter_to_avi_rgb(AviMovie *movie, int stream, unsigned char *buffer, int *size);
 
+#endif /* __AVI_RGB_H__ */
similarity index 97%
rename from source/blender/avi/intern/rgb32.c
rename to source/blender/avi/intern/avi_rgb32.c
index 84630f0..5c7a488 100644 (file)
  *
  */
 
-/** \file blender/avi/intern/rgb32.c
+/** \file blender/avi/intern/avi_rgb32.c
  *  \ingroup avi
  *
  * This is external code. Converts between rgb32 and avi.
  */
 
-
-#include "AVI_avi.h"
 #include <stdlib.h>
 #include <string.h>
+
 #include "MEM_guardedalloc.h"
-#include "rgb32.h"
+
+#include "AVI_avi.h"
+#include "avi_rgb32.h"
 
 void *avi_converter_from_rgb32(AviMovie *movie, int stream, unsigned char *buffer, int *size)
 {
similarity index 76%
rename from source/blender/avi/intern/rgb32.h
rename to source/blender/avi/intern/avi_rgb32.h
index 55f9771..523f9e7 100644 (file)
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/avi/intern/rgb32.h
+/** \file blender/avi/intern/avi_rgb32.h
  *  \ingroup avi
  */
 
+#ifndef __AVI_RGB32_H__
+#define __AVI_RGB32_H__
 
-void *avi_converter_from_rgb32 (AviMovie *movie, int stream, unsigned char *buffer, int *size);
-void *avi_converter_to_rgb32 (AviMovie *movie, int stream, unsigned char *buffer, int *size);
+void *avi_converter_from_rgb32(AviMovie *movie, int stream, unsigned char *buffer, int *size);
+void *avi_converter_to_rgb32(AviMovie *movie, int stream, unsigned char *buffer, int *size);
 
+#endif /* __AVI_RGB32_H__ */