Movie Clip Node: skip putting frame to cache when rendering animation
[blender.git] / source / blender / imbuf / intern / cineon / logmemfile.c
index 20eabf6dfc3224f094ff9b2db2e54b784c7ba2f0..a9938582f2a34f6f65ea5ec2da6a95f85a83fd6b 100644 (file)
  *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  */
+
+/** \file blender/imbuf/intern/cineon/logmemfile.c
+ *  \ingroup imbcineon
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
 #include "logImageCore.h"
 
+#include "logmemfile.h" /* own include */
+
 int logimage_fseek(void* logfile, intptr_t offsett, int origin)
 {      
        struct _Log_Image_File_t_ *file = (struct _Log_Image_File_t_*) logfile;
@@ -34,10 +41,12 @@ int logimage_fseek(void* logfile, intptr_t offsett, int origin)
                if (origin==SEEK_SET) {
                        if (offset > file->membuffersize) return 1;
                        file->memcursor = file->membuffer + offset;
-               } else if (origin==SEEK_END) {
+               }
+               else if (origin==SEEK_END) {
                        if (offset > file->membuffersize) return 1;
                        file->memcursor = (file->membuffer + file->membuffersize) - offset;
-               } else if (origin==SEEK_CUR) {
+               }
+               else if (origin==SEEK_CUR) {
                        uintptr_t pos = (uintptr_t)file->membuffer - (uintptr_t)file->memcursor;
                        if (pos + offset > file->membuffersize) return 1;
                        if (pos < 0) return 1;
@@ -63,8 +72,8 @@ int logimage_fread(void *buffer, unsigned int size, unsigned int count, void *lo
        if (file->file) return fread(buffer, size, count, file->file);
        else { /*we're reading from memory*/
                int i;
-               /*we convert ot uchar just on the off chance some platform can't handle
-                 pointer arithmetic with type (void*). */
+               /* we convert ot uchar just on the off chance some platform can't handle
+                * pointer arithmetic with type (void*). */
                unsigned char *buf = (unsigned char *) buffer; 
                
                for (i=0; i<count; i++) {