gimp-gap r750 - in branches/gap-2-4: . gap vid_enc_single



Author: wolfgangh
Date: Sun May 18 16:37:58 2008
New Revision: 750
URL: http://svn.gnome.org/viewvc/gimp-gap?rev=750&view=rev

Log:
applied fixes (bug531735, save jpeg frameswith singleframes encoder)

Modified:
   branches/gap-2-4/ChangeLog
   branches/gap-2-4/gap/gap_lib.c
   branches/gap-2-4/gap/gap_mov_exec.c
   branches/gap-2-4/vid_enc_single/gap_enc_singleframes_main.c

Modified: branches/gap-2-4/gap/gap_lib.c
==============================================================================
--- branches/gap-2-4/gap/gap_lib.c	(original)
+++ branches/gap-2-4/gap/gap_lib.c	Sun May 18 16:37:58 2008
@@ -2108,7 +2108,7 @@
 
   l_rc   = FALSE;
 
-  //if(gap_debug)
+  if(gap_debug)
   {
     printf("DEBUG: p_lib_save_jpg_non_interactive: '%s' imageId:%d, drawableID:%d\n"
            "  jpg quality:%f\n"

Modified: branches/gap-2-4/gap/gap_mov_exec.c
==============================================================================
--- branches/gap-2-4/gap/gap_mov_exec.c	(original)
+++ branches/gap-2-4/gap/gap_mov_exec.c	Sun May 18 16:37:58 2008
@@ -1361,6 +1361,8 @@
     return(-1);
   }
 
+  gimp_image_undo_enable (l_mlayer_image_id);
+
   /* add a display for the animated preview multilayer image */
   gimp_display_new(l_mlayer_image_id);
 

Modified: branches/gap-2-4/vid_enc_single/gap_enc_singleframes_main.c
==============================================================================
--- branches/gap-2-4/vid_enc_single/gap_enc_singleframes_main.c	(original)
+++ branches/gap-2-4/vid_enc_single/gap_enc_singleframes_main.c	Sun May 18 16:37:58 2008
@@ -1,4 +1,4 @@
-/* gap_enc_main_singleframes.c
+/* gap_enc_singleframes_main.c
  *  by hof (Wolfgang Hofer)
  *
  * GAP ... Gimp Animation Plugins
@@ -38,13 +38,14 @@
 
 
 
-#define GAP_PLUGIN_NAME_SINGLEFRAMES_PARAMS     "extension_gap_encpar_singleframes"
+#define GAP_PLUGIN_NAME_SINGLEFRAMES_PARAMS     "extension-gap-encpar-singleframes"
 
 #include "gap_gvetypes.h"
 
 #include "gap_libgapvidutil.h"
 #include "gap_libgimpgap.h"
 
+
 /* Singleframe specific encoder params  */
 typedef struct {
   gint32 dum_par;   /* unused */
@@ -69,7 +70,7 @@
 /* Includes for extra LIBS */
 
 
-#define GAP_PLUGIN_NAME_SINGLEFRAMES_ENCODE     "plug_in_gap_enc_singleframes"
+#define GAP_PLUGIN_NAME_SINGLEFRAMES_ENCODE     "plug-in-gap-enc-singleframes"
 
 /* ------------------------
  * global gap DEBUG switch
@@ -725,10 +726,25 @@
          g_free(l_msg);
        }
 
-       if(!gimp_file_save(l_save_runmode, l_tmp_image_id, l_layer_id, l_sav_name,  l_sav_name))
        {
-         g_message(_("** Save FAILED on file\n%s"), l_sav_name);
-         l_rc = -1;
+         gint32 l_sav_rc;
+
+         if(gap_debug)
+         {
+           printf("SINGLEFRAME mode:%d, image_id:%d save: %s l_sav_name\n"
+              ,(int)l_save_runmode
+              ,(int)l_tmp_image_id
+              ,l_sav_name
+              );
+         }
+
+         l_sav_rc = gap_lib_save_named_image(l_tmp_image_id, l_sav_name, l_save_runmode);
+         
+         if(l_sav_rc < 0)
+         {
+           g_message(_("** Save FAILED on file\n%s"), l_sav_name);
+           l_rc = -1;
+         }
        }
        g_free(l_sav_name);
     }
@@ -762,3 +778,14 @@
 
   return l_rc;
 }  /* end p_singleframe_encode */
+
+
+
+
+
+
+
+
+
+//////////////////////
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]