1f4d970ede
A short changelog compared to 2.3: * Input and output support for MKV and FLV containers * Rewritten MP4/MOV/3GP reader * Support for Nellymoser codec * New DV video output support * New MPEG-TS support including H.264 Elementary Stream * OCR support for MPEG-TS subtitles * New video bitstream unpacker (improved compatibility) * Capability to pack video bitstreams * New Yadif filter (ported from Avisynth) * Video filters can be loaded as external plug-ins (sample plug-in included) * Three interfaces now offered: command line, GTK+ and Qt4 (Qt4 is still incomplete) * Several key dialogs have been revamped (GTK+ user interface only) * Preview system refactored * Priority control added for encoding and video playback (Win32 only) * New Jog Shuttle control (GTK+ user interface only) * Support for Jog Shuttle hardware (Linux & GTK+ only) * New iPod and PlayStation Portable profiles * New Glyph Editor * Improved Bitrate Histogram * JACK support (Linux only) * DirectX support (Win32 only) * New Avisynth Proxy GUI (Win32 only) * Improved crash recovery - session settings are saved and reloaded upon application start * Numerous bugs fixed ...and more, see the changelog for more info.
46 lines
1.7 KiB
Text
46 lines
1.7 KiB
Text
$NetBSD: patch-ax,v 1.1 2008/02/19 09:11:43 xtraeme Exp $
|
|
|
|
--- avidemux/ADM_videoFilter/ADM_vidParticle.cpp.orig 2008-02-19 09:16:00.000000000 +0100
|
|
+++ avidemux/ADM_videoFilter/ADM_vidParticle.cpp 2008-02-19 09:21:40.000000000 +0100
|
|
@@ -797,8 +797,13 @@
|
|
|
|
if (my_outImage)
|
|
{
|
|
+#ifdef __NetBSD__
|
|
+ uint32_t px = static_cast <uint32_t> (rintf (my_particle.centroidX));
|
|
+ uint32_t py = static_cast <uint32_t> (rintf (my_particle.centroidY));
|
|
+#else
|
|
uint32_t px = static_cast <uint32_t> (nearbyintf (my_particle.centroidX));
|
|
uint32_t py = static_cast <uint32_t> (nearbyintf (my_particle.centroidY));
|
|
+#endif
|
|
if (validPixel (px, py))
|
|
outPixel (px, py) = 255;
|
|
else
|
|
@@ -1157,8 +1162,13 @@
|
|
char & pixel_char (vector <string> & grid, int16_t xbase, int16_t ybase,
|
|
float cX, float cY, float dX, float dY)
|
|
{
|
|
+#ifdef __NetBSD__
|
|
+ uint16_t x = static_cast <uint16_t> (rintf (cX + dX));
|
|
+ uint16_t y = static_cast <uint16_t> (rintf (cY + dY));
|
|
+#else
|
|
uint16_t x = static_cast <uint16_t> (nearbyintf (cX + dX));
|
|
uint16_t y = static_cast <uint16_t> (nearbyintf (cY + dY));
|
|
+#endif
|
|
return grid [y - ybase][x - xbase];
|
|
}
|
|
|
|
@@ -1319,8 +1329,13 @@
|
|
++plit;
|
|
}
|
|
|
|
+#ifdef __NetBSD__
|
|
+ uint32_t px = static_cast <uint32_t> (rintf (my_particle.centroidX));
|
|
+ uint32_t py = static_cast <uint32_t> (rintf (my_particle.centroidY));
|
|
+#else
|
|
uint32_t px = static_cast <uint32_t> (nearbyintf (my_particle.centroidX));
|
|
uint32_t py = static_cast <uint32_t> (nearbyintf (my_particle.centroidY));
|
|
+#endif
|
|
char & ch = grid [py - ybase][px - xbase];
|
|
if (ch == 'x')
|
|
ch = 'X';
|