Denis Oliver Kropp via CVS wrote:
> CVSROOT:      /cvs/directfb
> Module name:  DirectFB
> Changes by:   dok     20060620 14:08:21
> 
> Modified files:
>       .              : README 
>       include        : directfb.h 
>       src/media      : idirectfbvideoprovider.c 
> 
> Log message:
> Trick modes thanks to Daniel Laird <[EMAIL PROTECTED]>!
> 
> 

I had already scheduled another way to implement that feautures:

  - IDirectFBVideoProvider::SetSpeed( double multiplier )
    Specify a frame rate multiplier (1.0 normal speed);

  - IDirectFBVideoProvider::GetSpeed( double *multiplier )
    Get the current frame rate multiplier;

  - IDirectFBVideoProvider::SetPlaybackFlags( DFBVideoProviderPlaybackFlags )
    DFBVideoProviderPlaybackFlags:
               DVPLAY_NORMAL  = normal playback,
               DVPLAY_REWIND  = reverse playback,
               DVPLAY_LOOPING = restart playback at the end (gapless)
    Specify advanced playback flags.


The method suggested by Daniel has some incoveniences:
   - The speed multiplier is costrained by the defined TrickMode speeds
     and the video provider has to check that values one by one.
   - DVTRICKMODE_FF with speed set to DVTRICKMODE_1 is exactly equal to
     DVTRICKMODE_NONE.
   - The prefix DVTRICKMODE_ is used by different enums, this is a bit
     confusing.
   - DVTRICKMODE_FF doesn't specify a real fast forwad, because *fast*
     depends on the speed mode.
   - Forward is the normal direction of the playback.
   - DVSTATE_FF and DVSTATE_RW doesn't specify a new video provider state
     but only the direction of the playback (i.e. the current state should
     be DVSTATE_PLAY).

If it won't cause too much inconveniences, I will apply the previously 
scheduled 
changes.


-- 
Regards,
      Claudio Ciccani

[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to