mffd.git
7 years agoMinor cleanups in mffd/mffd.c master
Bryn M. Reeves [Thu, 8 Mar 2012 23:16:53 +0000 (23:16 +0000)]
Minor cleanups in mffd/mffd.c

7 years agoAllow gui to be disabled via configure option
Bryn M. Reeves [Thu, 8 Mar 2012 23:12:19 +0000 (23:12 +0000)]
Allow gui to be disabled via configure option

Add --disable-gui to configure.ac and Makefile.am to turn off the
gtk+-2.0 based graphical user interface.

7 years agomffd_image_buffer should use glib-2.0
Bryn M. Reeves [Thu, 8 Mar 2012 20:35:07 +0000 (20:35 +0000)]
mffd_image_buffer should use glib-2.0

7 years agoUpdate gui for later clutter, cogl, glib and gtk versions
Bryn M. Reeves [Thu, 8 Mar 2012 19:43:32 +0000 (19:43 +0000)]
Update gui for later clutter, cogl, glib and gtk versions

7 years agoImprove function documentation in mffd-internal.h
Bryn M. Reeves [Thu, 8 Mar 2012 19:39:46 +0000 (19:39 +0000)]
Improve function documentation in mffd-internal.h

8 years agoUpdate TODO
Bryn M. Reeves [Fri, 26 Nov 2010 19:44:40 +0000 (19:44 +0000)]
Update TODO

Out-of-tree builds are currently broken.

9 years agoAdd m4/ to .gitignore
Bryn M. Reeves [Sat, 23 Oct 2010 20:16:20 +0000 (21:16 +0100)]
Add m4/ to .gitignore

9 years agoUse m4/ for local macros
Bryn M. Reeves [Sat, 23 Oct 2010 20:15:49 +0000 (21:15 +0100)]
Use m4/ for local macros

10 years agoTidy up ffd_manipulation
Bryn M. Reeves [Wed, 14 Oct 2009 19:28:14 +0000 (20:28 +0100)]
Tidy up ffd_manipulation

10 years agoStart of a command line wrapper for libmffd
Bryn M. Reeves [Wed, 14 Oct 2009 19:14:48 +0000 (20:14 +0100)]
Start of a command line wrapper for libmffd

Begin implementation of a cli morphing tool.

10 years agoFix license headers
Bryn M. Reeves [Wed, 14 Oct 2009 19:13:07 +0000 (20:13 +0100)]
Fix license headers

License headers in source files inadvertently used LGPL wording instead
of GPL v2.

10 years agoCouple of README fixes.
Bryn M. Reeves [Wed, 14 Oct 2009 19:12:43 +0000 (20:12 +0100)]
Couple of README fixes.

10 years agoAdd .libs, .deps, *.o to .gitignore
Bryn M. Reeves [Wed, 14 Oct 2009 18:34:31 +0000 (19:34 +0100)]
Add .libs, .deps, *.o to .gitignore

10 years agoTODO updates
Bryn M. Reeves [Wed, 14 Oct 2009 18:30:31 +0000 (19:30 +0100)]
TODO updates

10 years agoEnsure image cache cleared before new rendering op
Bryn M. Reeves [Tue, 13 Oct 2009 21:41:00 +0000 (22:41 +0100)]
Ensure image cache cleared before new rendering op

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoImprove appearance of the Select Features dialog
Bryn M. Reeves [Tue, 13 Oct 2009 21:40:15 +0000 (22:40 +0100)]
Improve appearance of the Select Features dialog

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoImprove accessibility of UI
Bryn M. Reeves [Tue, 13 Oct 2009 21:39:45 +0000 (22:39 +0100)]
Improve accessibility of UI

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoFix mnemonics so they don't collide
Bryn M. Reeves [Tue, 13 Oct 2009 21:39:23 +0000 (22:39 +0100)]
Fix mnemonics so they don't collide

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoFix a crash when target image selected before source
Bryn M. Reeves [Tue, 13 Oct 2009 21:38:33 +0000 (22:38 +0100)]
Fix a crash when target image selected before source

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoMove the feature rendering into a ClutterActor subclass
Bryn M. Reeves [Tue, 13 Oct 2009 21:36:42 +0000 (22:36 +0100)]
Move the feature rendering into a ClutterActor subclass

From: Philip Withnall <philip@tecnocode.co.uk>
This makes the code cleaner, meaning future extension of the feature
pair functionality will be much easier. It also provides a redesign of the
way feature pairs appear, to make them look nicer.

10 years agoHook up the remove all features button
Bryn M. Reeves [Tue, 13 Oct 2009 21:34:15 +0000 (22:34 +0100)]
Hook up the remove all features button

  From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoAdd graphical feature editor
Bryn M. Reeves [Tue, 13 Oct 2009 21:32:37 +0000 (22:32 +0100)]
Add graphical feature editor

  From: Philip Withnall <philip@tecnocode.co.uk>
  Add a dialogue to graphically add feature pairs
  to the images

10 years agoFix some GUI resizing issues
Bryn M. Reeves [Tue, 13 Oct 2009 21:25:51 +0000 (22:25 +0100)]
Fix some GUI resizing issues

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoThreaded rendering support
Bryn M. Reeves [Tue, 13 Oct 2009 21:24:04 +0000 (22:24 +0100)]
Threaded rendering support

  From: Philip Withnall <philip@tecnocode.co.uk>
  Move rendering to a thread
  Add cancelation support

10 years agoImprove GUI memory handling
Bryn M. Reeves [Tue, 13 Oct 2009 21:23:42 +0000 (22:23 +0100)]
Improve GUI memory handling

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoAdd a basic GTK+ GUI for the library
Bryn M. Reeves [Tue, 13 Oct 2009 21:22:46 +0000 (22:22 +0100)]
Add a basic GTK+ GUI for the library

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoAdd a function to return the GdkPixbuf of an mffd_image_buffer
Bryn M. Reeves [Tue, 13 Oct 2009 21:22:02 +0000 (22:22 +0100)]
Add a function to return the GdkPixbuf of an mffd_image_buffer

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoIgnore all *.pc files
Bryn M. Reeves [Tue, 13 Oct 2009 21:20:51 +0000 (22:20 +0100)]
Ignore all *.pc files

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoWhitespace fixes
Bryn M. Reeves [Tue, 13 Oct 2009 21:20:04 +0000 (22:20 +0100)]
Whitespace fixes

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoImplemented flag unsetting in mffd_morph_set_render_features
Bryn M. Reeves [Tue, 13 Oct 2009 21:15:27 +0000 (22:15 +0100)]
Implemented flag unsetting in mffd_morph_set_render_features

From: Philip Withnall <philip@tecnocode.co.uk>

10 years agoAdd malloc failure checks, NULL pointer free checks
Bryn M. Reeves [Tue, 13 Oct 2009 21:12:45 +0000 (22:12 +0100)]
Add malloc failure checks, NULL pointer free checks

From: Philip Withnall <philip@tecnocode.co.uk>
Also combined two mutually-exclusive if statements into one, for a
little more efficiency.

10 years agoMisc library fixes
Bryn M. Reeves [Tue, 13 Oct 2009 21:08:14 +0000 (22:08 +0100)]
Misc library fixes

  Make basis table init and exit functions take a library context
  Add mffd_{set,get}_log_level() to public API
  Set initial lattice size to 256

10 years agoMake print_lattice() static
Bryn M. Reeves [Tue, 13 Oct 2009 20:52:05 +0000 (21:52 +0100)]
Make print_lattice() static

10 years agoMake LOG_DEBUG the default log level.
Bryn M. Reeves [Thu, 16 Jul 2009 16:53:14 +0000 (17:53 +0100)]
Make LOG_DEBUG the default log level.

Use LOG_DEBUG as the default log level until there's a command line
interface for setting it in the test driver.

10 years agoUse floor() explicitly in basis.c
Bryn M. Reeves [Thu, 16 Jul 2009 16:51:59 +0000 (17:51 +0100)]
Use floor() explicitly in basis.c

Use floor() to obtain the integer component of a floating point value in
basis.c.

10 years agoDrop the simple interface from the TODO
Bryn M. Reeves [Tue, 14 Jul 2009 22:07:36 +0000 (23:07 +0100)]
Drop the simple interface from the TODO

The simple interface is awkward to support and unlikely to be used by
real-world applications; drop it for now.

10 years agoAdd rpm specfile.
Bryn M. Reeves [Mon, 13 Jul 2009 20:23:41 +0000 (21:23 +0100)]
Add rpm specfile.

Add a basic specfile for mffd. Creates packages:

mffd
mffd-libs
mffd-devel
mffd-debuginfo

10 years agoFix pkgconfig data
Bryn M. Reeves [Mon, 13 Jul 2009 19:56:14 +0000 (20:56 +0100)]
Fix pkgconfig data

Rename libmffd-0.1.pc.in -> mffd.pc.in
Fix include path

10 years agoInstall headers to %(includedir)/mffd-$(version)
Bryn M. Reeves [Sun, 12 Jul 2009 02:30:19 +0000 (03:30 +0100)]
Install headers to %(includedir)/mffd-$(version)

10 years agoAutomake fixes
Bryn M. Reeves [Sun, 12 Jul 2009 01:57:50 +0000 (02:57 +0100)]
Automake fixes

Add EXTRA_DIST
Define pkgconfigdif and pkgconfig_DATA
Add DISTCLEAN_FILES (libmffd-0.1.pc)

10 years agoAdd feat.h to src/Makefile.am
Bryn M. Reeves [Sun, 12 Jul 2009 01:56:44 +0000 (02:56 +0100)]
Add feat.h to src/Makefile.am

Make sure that automake knows about the feature header (fixes make
dist).

10 years agoFix line lengths to 80 chars.
Bryn M. Reeves [Sun, 5 Jul 2009 21:28:47 +0000 (22:28 +0100)]
Fix line lengths to 80 chars.

Fix some stray long lines in mffd/

10 years agoKeep src/feat.h under version control.
Bryn M. Reeves [Sun, 5 Jul 2009 21:27:55 +0000 (22:27 +0100)]
Keep src/feat.h under version control.

10 years agoFix description passed to progress callbacks by mffd()
Bryn M. Reeves [Sat, 4 Jul 2009 18:56:09 +0000 (19:56 +0100)]
Fix description passed to progress callbacks by mffd()

Fix direction of the description string passed to progress callbacks
from the mffd() function (0 is source, 1 is target) and change the
descriptions from "forward" and "reverse" to "source" and "target".

10 years agoFix line lengths and comment formatting in mffd.c
Bryn M. Reeves [Sat, 4 Jul 2009 13:34:21 +0000 (14:34 +0100)]
Fix line lengths and comment formatting in mffd.c

10 years agoMove test feature sets to their own header file
Bryn M. Reeves [Fri, 3 Jul 2009 23:20:19 +0000 (00:20 +0100)]
Move test feature sets to their own header file

Move feature array definitions out of main.c into feat.h

10 years agoExport feature and warp rendering accessors in mffd.h
Bryn M. Reeves [Fri, 3 Jul 2009 23:01:28 +0000 (00:01 +0100)]
Export feature and warp rendering accessors in mffd.h

Export routines to let users of the library set and retrieve the flags
conrolling rendering of image features and warp contours.

10 years agoSeparate feature plotting from warp rendering
Bryn M. Reeves [Fri, 3 Jul 2009 22:59:36 +0000 (23:59 +0100)]
Separate feature plotting from warp rendering

Move feature rendering into a separate function, render_features().

Make mffd_apply_morph() check for MORPH_RENDER_FEATURES and call the
function appropriately.

Add routines to get and set feature and warp rendering flags.

10 years agoFix lut counter types.
Bryn M. Reeves [Thu, 2 Jul 2009 23:00:23 +0000 (00:00 +0100)]
Fix lut counter types.

An int isn't big enough to store counters tracking lut usage. Switch to
a long int.

10 years agoDon't track changes to ChangeLog
Bryn M. Reeves [Wed, 1 Jul 2009 22:38:07 +0000 (23:38 +0100)]
Don't track changes to ChangeLog

ChangeLog is automatically generated from the git history; don't keep it
under version control.

10 years agoSet default log level to LOG_NOTICE
Bryn M. Reeves [Wed, 1 Jul 2009 19:22:04 +0000 (20:22 +0100)]
Set default log level to LOG_NOTICE

10 years agoConvert debug helpers to use log levels
Bryn M. Reeves [Wed, 1 Jul 2009 19:08:26 +0000 (20:08 +0100)]
Convert debug helpers to use log levels

Make:

  debug_print_feature_sets()
  debug_print_lattice()

Use log levels to control output.

10 years agoUpdate TODO
Bryn M. Reeves [Tue, 30 Jun 2009 20:51:10 +0000 (21:51 +0100)]
Update TODO

10 years agoConvert mffd/mffd.c to use log_* interface
Bryn M. Reeves [Tue, 30 Jun 2009 20:47:27 +0000 (21:47 +0100)]
Convert mffd/mffd.c to use log_* interface

Convert use of printf to use an appropriate log level instead.

10 years agoAdd vim temporary files to .gitignore
Bryn M. Reeves [Tue, 30 Jun 2009 20:41:51 +0000 (21:41 +0100)]
Add vim temporary files to .gitignore

10 years agoAdd print_log() implementation
Bryn M. Reeves [Tue, 30 Jun 2009 20:24:37 +0000 (21:24 +0100)]
Add print_log() implementation

Implement print_log() so that we can start moving everything over to the
new logging interface.

10 years agoRework logging interface
Bryn M. Reeves [Tue, 30 Jun 2009 19:54:51 +0000 (20:54 +0100)]
Rework logging interface

Morph context was a silly place to put the current log level; move it to
the library context and have log macros take a lib argument and pass it
through to the logging function.

10 years agoWhitespace cleanups
Bryn M. Reeves [Tue, 30 Jun 2009 19:33:17 +0000 (20:33 +0100)]
Whitespace cleanups

Fix trailing whitespace in mffd/

10 years agoRemove dead interfaces from mffd-internal.h
Bryn M. Reeves [Tue, 30 Jun 2009 19:25:20 +0000 (20:25 +0100)]
Remove dead interfaces from mffd-internal.h

Remove unused image buffer operations from mffd-internal.h

10 years agoTrack changes to .gitignore
Bryn M. Reeves [Mon, 29 Jun 2009 21:46:21 +0000 (22:46 +0100)]
Track changes to .gitignore

10 years agoDon't keep NOTES in git
Bryn M. Reeves [Mon, 29 Jun 2009 21:46:00 +0000 (22:46 +0100)]
Don't keep NOTES in git

10 years agoMove lib/ to mffd/
Bryn M. Reeves [Mon, 29 Jun 2009 21:45:12 +0000 (22:45 +0100)]
Move lib/ to mffd/

Rename lib directory as mffd to be more libtooly.

10 years agoStart NEWS entry
Bryn M. Reeves [Mon, 29 Jun 2009 17:46:00 +0000 (18:46 +0100)]
Start NEWS entry

Begin NEWS entry for 0.1 release.

10 years agoMake src/main.c use progress callbacks
Bryn M. Reeves [Sun, 28 Jun 2009 21:06:58 +0000 (22:06 +0100)]
Make src/main.c use progress callbacks

Simple progress callback in main.c to dump progress updates to stderr.

10 years agoNew progress callback interface
Bryn M. Reeves [Sun, 28 Jun 2009 21:05:49 +0000 (22:05 +0100)]
New progress callback interface

Change interface to take a string description and numeric progress
indication. Implement callback support for mffd_prepare_morph()/mffd().

10 years agoAdd field for progress callback data to morph context.
Bryn M. Reeves [Sun, 28 Jun 2009 21:04:48 +0000 (22:04 +0100)]
Add field for progress callback data to morph context.

10 years agoUpdate TODO
Bryn M. Reeves [Sun, 28 Jun 2009 19:59:38 +0000 (20:59 +0100)]
Update TODO

Remove autotools support from TODO

10 years agoMacroize configure.ac a bit more
Bryn M. Reeves [Sun, 28 Jun 2009 19:24:56 +0000 (20:24 +0100)]
Macroize configure.ac a bit more

10 years agoRemove dead test code
Bryn M. Reeves [Sun, 28 Jun 2009 19:21:13 +0000 (20:21 +0100)]
Remove dead test code

10 years agoAdd GPL copyright headers to source files
Bryn M. Reeves [Sun, 28 Jun 2009 19:20:10 +0000 (20:20 +0100)]
Add GPL copyright headers to source files

10 years agoAutotilisation
Bryn M. Reeves [Sun, 28 Jun 2009 19:10:28 +0000 (20:10 +0100)]
Autotilisation

Switch to using autotools and libtool to build the library.

10 years agoFix some compiler warnings in lib/
Bryn M. Reeves [Sun, 28 Jun 2009 18:50:56 +0000 (19:50 +0100)]
Fix some compiler warnings in lib/

  Make more functions static in basis.c, mffd.c, render.c
  Don't export init_*_warp_function() from mffd.c
  Stub out print_log() int print.c

10 years agoAdd README, AUTHORS, NEWS
Bryn M. Reeves [Fri, 26 Jun 2009 20:52:07 +0000 (21:52 +0100)]
Add README, AUTHORS, NEWS

10 years agoRe-organise source tree to allow autotools support
Bryn M. Reeves [Fri, 26 Jun 2009 19:34:05 +0000 (20:34 +0100)]
Re-organise source tree to allow autotools support

Changes to make the sources easier to autotoolize

 - library code moves into lib/
 - main.c moves into src/
 - mffd.h moves into include/
 - Add recursive Makefile at top level
 - Add shared and static library support for libmffd
 - Link main.o to libmffd dynamically in mffd

10 years agoUpdate TODO
Bryn M. Reeves [Fri, 26 Jun 2009 13:51:32 +0000 (14:51 +0100)]
Update TODO

Remove a bunch of completed tasks from the TODO

10 years agoClean up dead code in print.c
Bryn M. Reeves [Wed, 24 Jun 2009 22:28:32 +0000 (23:28 +0100)]
Clean up dead code in print.c

10 years agoStart adding a logging interface
Bryn M. Reeves [Wed, 24 Jun 2009 19:39:49 +0000 (20:39 +0100)]
Start adding a logging interface

Move morph flags over by a nibble and use the lower bits of the flag
field to store a log level.

Log macros:

  log_debug(...)
  log_info(...)
  log_notice(...)
  log_warn(...)
  log_error(...)
  log_fatal(...)

Each macro takes a format string and variable number of format
arguments.

All macros expand to call print_log()

10 years agoConvert mffd options to use flags.
Bryn M. Reeves [Sat, 20 Jun 2009 13:31:42 +0000 (14:31 +0100)]
Convert mffd options to use flags.

Remove bind_edges from morph context.

Add flags:

    MORPH_BIND_EDGES
    MORPH_RENDER_IMAGE
    MORPH_RENDER_WARP
    MORPH_RENDER_FEATURES

Convert mffd(), mffd_init_morph() and mffd_apply_morph() to use the flags.

10 years agoMore mffd_apply_morph() fixes
Bryn M. Reeves [Sat, 20 Jun 2009 12:50:54 +0000 (13:50 +0100)]
More mffd_apply_morph() fixes

Make warp rendering conditional on (future) morph flag
Fix error handling

10 years agoUpdate TODO
Bryn M. Reeves [Sat, 20 Jun 2009 12:47:24 +0000 (13:47 +0100)]
Update TODO

10 years agoLet mffd_destroy_image_buffer() accept a NULL pointer
Bryn M. Reeves [Sat, 20 Jun 2009 12:42:55 +0000 (13:42 +0100)]
Let mffd_destroy_image_buffer() accept a NULL pointer

10 years agoRestore debug output in ffd_manipulation()
Bryn M. Reeves [Tue, 16 Jun 2009 10:48:27 +0000 (11:48 +0100)]
Restore debug output in ffd_manipulation()

10 years agoCouple of Makefile fixes
Bryn M. Reeves [Tue, 16 Jun 2009 10:35:14 +0000 (11:35 +0100)]
Couple of Makefile fixes

Use c99 instead of gnu99
Fix typo in clean target

10 years agoStart implementing progress callbacks in mffd()
Bryn M. Reeves [Mon, 15 Jun 2009 23:02:19 +0000 (00:02 +0100)]
Start implementing progress callbacks in mffd()

Maintain a percentage counter in mffd()

10 years agoTidy up debug statements in mffdd()
Bryn M. Reeves [Mon, 15 Jun 2009 22:47:26 +0000 (23:47 +0100)]
Tidy up debug statements in mffdd()

10 years agoTidy up whitespace and comments in features.c and lattice.c
Bryn M. Reeves [Thu, 11 Jun 2009 21:47:37 +0000 (22:47 +0100)]
Tidy up whitespace and comments in features.c and lattice.c

10 years agoCouple of fixes in main.c
Bryn M. Reeves [Thu, 11 Jun 2009 21:14:16 +0000 (22:14 +0100)]
Couple of fixes in main.c

Release image buffers before exiting and check that source and target
images are the same size.

10 years agoUpdate TODO
Bryn M. Reeves [Thu, 11 Jun 2009 20:48:20 +0000 (21:48 +0100)]
Update TODO

10 years agoFix whitespace and useless braces in mffd.c
Bryn M. Reeves [Thu, 11 Jun 2009 20:47:04 +0000 (21:47 +0100)]
Fix whitespace and useless braces in mffd.c

10 years agoFix memory leak in mffd_apply_morph()
Bryn M. Reeves [Thu, 11 Jun 2009 20:29:22 +0000 (21:29 +0100)]
Fix memory leak in mffd_apply_morph()

If mffd_apply_morph() allocates warp functions it also needs to destroy
them.

10 years agoTest driver fixes
Bryn M. Reeves [Thu, 11 Jun 2009 10:45:43 +0000 (11:45 +0100)]
Test driver fixes

  New feature sets (l2l)
  Fix format string for output frames
  Report progress during mffd_apply_morph() loop

10 years agoFix some comments in mffd-internal.h
Bryn M. Reeves [Thu, 11 Jun 2009 00:01:01 +0000 (01:01 +0100)]
Fix some comments in mffd-internal.h

10 years agoUpdate TODO
Bryn M. Reeves [Wed, 10 Jun 2009 21:33:43 +0000 (22:33 +0100)]
Update TODO

10 years agoRename interpolate_warp() as interpolate_warp_function()
Bryn M. Reeves [Wed, 10 Jun 2009 21:27:48 +0000 (22:27 +0100)]
Rename interpolate_warp() as interpolate_warp_function()

10 years agoFix typo in mffd_apply_morph()
Bryn M. Reeves [Wed, 10 Jun 2009 21:24:47 +0000 (22:24 +0100)]
Fix typo in mffd_apply_morph()

  'q' passed to render_warp_surface twice instead of q and p

10 years agoFix render_warp_surface()
Bryn M. Reeves [Wed, 10 Jun 2009 21:21:48 +0000 (22:21 +0100)]
Fix render_warp_surface()

  Let caller allocate and clear image buffer
  Get rid of pg parameter
  Don't write image buffer to disk
  Don't destroy image buffer before return
  Move warp(t) allocation and interpolation to mffd_apply_morph()

10 years agoMake mffd_apply_morph() suck a bit less:
Bryn M. Reeves [Wed, 10 Jun 2009 21:02:48 +0000 (22:02 +0100)]
Make mffd_apply_morph() suck a bit less:

  Use render_warp_surface() to overlay warp surface and features on
  warped images for debugging.

  Report errors properly.

10 years agoMake comments and naming for clip_warp_position make sense.
Bryn M. Reeves [Tue, 9 Jun 2009 11:18:35 +0000 (12:18 +0100)]
Make comments and naming for clip_warp_position make sense.

10 years agoClean ups and changes to debug output in mffd.c
Bryn M. Reeves [Mon, 8 Jun 2009 22:59:21 +0000 (23:59 +0100)]
Clean ups and changes to debug output in mffd.c

10 years agoAdd more comments and change order of debug output in mffd.c
Bryn M. Reeves [Mon, 8 Jun 2009 22:54:40 +0000 (23:54 +0100)]
Add more comments and change order of debug output in mffd.c