Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7263

Specify delay of last image of the gif animation (loop forever)

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Medium
    • Resolution: Fixed
    • 5.34/28
    • None
    • Graphics
    • Debian

    • Feature request
    • 3 - Normal

    Description

      saving a gif file in ROOT has the current behaviour.

      "gif+NN" sets a delay of NN*10ms to the next image.
      "gif++" has to be called for the last image for setting an infinite loop, but the delay of last image cannot be specified.
      "gif++NN" has to be called for the last image for setting a finite (NN repeats) instead of infinite loop. The delay between last and first image is set to funnily/buggily to NN*10ms.

      So there are two things one can not control here:
      (a) Setting an infinite loop with a controllable last-image delay
      (b) Setting a finite loop with a controllable last-image-delay (i.e. not equal the number of repeats)

      I have created an implementation to account for these new two features. I am happy to discuss or improve it and suggest including it in future versions. This is a follow-up of this post:
      https://root.cern.ch/phpBB3/viewtopic.php?f=3&t=19476&sid=fbad5808b6acca008a3444d2665de9ae&p=83650#p83650

      My implementation is (see attachment):
      (a) "gif+NN+" for infinite loop with NN delay of last image
      (b) "gif+DD++NN" for finite loop with NN repetas and DD delay of last image.

      Function documentation should be also updated at several points.

      Attachments

        1. hsumanim.C
          2 kB
        2. TASImage.cxx
          189 kB
        3. test_gifs.cpp
          2 kB
        4. TGQt.cxx
          98 kB
        5. TPad.cxx
          218 kB

        Activity

          People

            couet Olivier Couet
            2e7f1fb192878048ddc9 Fernando Hueso González (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified