Motion - Motion Library
You are here: Foswiki>Motion Web>RoadMap>GSTMotionDiscussion>MotionLibrary (03 Oct 2005, VincenzoDiMassa)Edit Attach

Motion compiled as a Library

  • It would be nice to have makefiles and sources that can compile both a motion library and a motion executable (maybe the executable could just call a library loop function).
  • We need to have a function to call each time an image is captured
    • The problem is that motion.c in motion_loop contains: while (cnt->finish || cnt->makemovie) { . This does not fit our needs(cannot be GStreamer chain): you need to return control after each frame is processed. We can write a new motion_chain function that the motion executable calls in a while statement. This is exactly the part that should be in a GStreamer chain function... Everything before while should either be in the init functions or in the main program that sets up the gstreamer chain.
  • The library is not intended to become a motion substitute: it should just expose some of motion internals using a well defined API.
  • motion app itself could then be written to use the API provided by the motion library

-- VincenzoDiMassa - 06 Jun 2005
Topic revision: r2 - 03 Oct 2005, VincenzoDiMassa
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.