patchGNU Octave - Patches: patch #7988, aviread - import a series of...


patch #7988: aviread - import a series of frames at a time

Submitted by:  None
Submitted on:  Mon 01 Apr 2013 08:59:03 AM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue 02 Apr 2013 06:05:41 PM UTC, comment #1:

I just realised that the array storing the frame numbers should be an uint array rather than a double, so

- unsigned int framenr = (unsigned int)args(1).scalar_value();
+ uint32NDArray nf = args(1).array_value();

Sorry for missing that.

Mon 01 Apr 2013 08:59:03 AM UTC, original submission:

Patch for the aviread function from the Octave-forge video package.

The function was changed to be compatible to the matlab version of aviread. Now it can read a series of frames specified by an index vector instead of only a single frame at a time. The returned value is now a struct array with two fields "cdata" containing the images' data in a height x width x 3 uint8 array and a "colormap" field which is, so far, just empty because indexed colors are not implemented in the AVHandler yet. This also speeds up the function by a factor of 3.

The Demo has been changed to illustrate the new behaviour.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #27735: added by None (4kB - text/x-diff)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 01 Apr 2013 08:59:03 AM UTCNoneAttached File-=>Added, #27735

    Back to the top

    Powered by Savane 3.1-cleanup