png img proxy fixes, speed zoom segv fix, colapse ins 1frm silence undo, repair rende...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / file.C
index 03348e0a6422f3316a26dc008757157f8ba546f8..13e1b457463a2876c411725d4c6ad2ff700c9336 100644 (file)
@@ -266,13 +266,23 @@ int File::get_options(FormatTools *format,
        return 0;
 }
 
-
-
-
-
-
-
-
+int File::can_scale_input(Asset *asset)
+{
+       switch( asset->format ) {
+       case FILE_MPEG:
+       case FILE_FFMPEG:
+               return 1;
+       case FILE_EXR:
+       case FILE_JPEG:
+       case FILE_PNG:
+       case FILE_PPM:
+       case FILE_TGA:
+       case FILE_TIFF:
+               if( asset->video_length < 0 )
+                       return 1;
+       }
+       return 0;
+}
 
 
 int File::set_processors(int cpus)   // Set the number of cpus for certain codecs