replace plugin icon data with CV ver for merge, replace manual.pdf
[goodguy/history.git] / cinelerra-5.0 / plugins / svg / svg.C
index 6abc584be408a8488a0ac483293b37cf99d3cabc..312b0498206d3b0930bb5f526eb08d044090f0ed 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "clip.h"
 #include "filexml.h"
+#include "language.h"
 #include "svg.h"
 #include "svgwin.h"
 #include <sys/types.h>
 #include <sys/mman.h>
 
 
-#include <libintl.h>
-#define _(String) gettext(String)
-#define gettext_noop(String) String
-#define N_(String) gettext_noop (String)
-
 //#include "empty_svg.h"
 
 REGISTER_PLUGIN(SvgMain)
@@ -121,7 +117,7 @@ SvgMain::~SvgMain()
        delete overlayer;
 }
 
-const char* SvgMain::plugin_title() { return N_("SVG via Inkscape"); }
+const char* SvgMain::plugin_title() { return _("SVG via Inkscape"); }
 int SvgMain::is_realtime() { return 1; }
 int SvgMain::is_synthesis() { return 1; }
 
@@ -230,7 +226,7 @@ int SvgMain::process_realtime(VFrame *input, VFrame *output)
                        if( png_buffer != MAP_FAILED ) {
                                if( png_buffer[0] == 0x89 && png_buffer[1] == 0x50 &&
                                    png_buffer[2] == 0x4e && png_buffer[3] == 0x47 ) {
-                                       ofrm = new VFrame(png_buffer, st_png.st_size);
+                                       ofrm = new VFramePng(png_buffer, st_png.st_size, 1., 1.);
                                        if( ofrm->get_color_model() != output->get_color_model() ) {
                                                VFrame *vfrm = new VFrame(ofrm->get_w(), ofrm->get_h(),
                                                        output->get_color_model());