FrameRate(3) libltcsmpte FrameRate(3)NAME
FrameRate -
Frame rate data structure.
SYNOPSIS
#include <framerate.h>
Data Fields
int num
numerator; rational framerate: numerator/denominator
int den
denominator; rational framerate: numerator/denominator
int flags
combination of FRFlags;
int samplerate
audio-samplerate for conversion.
long long int aoffset
user-data: offset in audio-frames
long int voffset
user-data: offset in video-frames
Detailed Description
Frame rate data structure.
Examples:
tests/decoder.c, and tests/encoder.c.
Definition at line 55 of file framerate.h.
Field Documentation
long long int FrameRate::aoffset
user-data: offset in audio-frames
Definition at line 61 of file framerate.h.
int FrameRate::den
denominator; rational framerate: numerator/denominator
Definition at line 58 of file framerate.h.
int FrameRate::flags
combination of FRFlags;
Definition at line 59 of file framerate.h.
int FrameRate::num
numerator; rational framerate: numerator/denominator
Definition at line 57 of file framerate.h.
int FrameRate::samplerate
audio-samplerate for conversion.
Definition at line 60 of file framerate.h.
long int FrameRate::voffset
user-data: offset in video-frames
Definition at line 62 of file framerate.h.
Author
Generated automatically by Doxygen for libltcsmpte from the source code.
Version 0.4.4 Fri Apr 27 2012 FrameRate(3)
Check Out this Related Man Page
SDLx::FPS(3pm) User Contributed Perl Documentation SDLx::FPS(3pm)NAME
SDLx::FPS - a more convenient way to set a framerate
SYNOPSIS
use SDLx::FPS;
my $fps = SDLx::FPS->new(fps => 60);
while(1) { # Main game loop
# Do game related stuff
$fps->delay;
}
DESCRIPTION
SDLx::FPS simplifies the task of giving your game a framerate. Basically, it combines the methods of "SDL::GFX::Framerate" and
"SDL::GFX::FPSManager" into a single module. Use it to delay the main loop to keep it at a specified framerate.
METHODS
new
my $fps = SDLx::FPS->new( fps => 30 );
No arguments are required, if no "fps" is specified, the default FPS is 30.
set
$fps->set($new_framerate);
Same as "SDL::GFX::Framerate::set". Set the new desired framerate.
get
Same as "SDL::GFX::Framerate::get". Get the currently set framerate.
delay
Same as "SDL::GFX::Framerate::delay". Generate a delay to accommodate currently set framerate. Call once in the graphics/rendering loop.
If the computer cannot keep up with the rate (i.e. drawing too slow), the delay is 0 and the delay interpolation is reset.
framecount
Return the "framecount".
rateticks
Return the "rateticks".
lastticks
Return the "lastticks".
rate
Return the "rate".
AUTHORS
See "AUTHORS" in SDL.
SEE ALSO
SDL::GFX::Framerate, SDL::GFX::FPSManager
perl v5.14.2 2012-05-28 SDLx::FPS(3pm)
i want to grep to a file the
numerator-denominator, 1.23456, 1.78901
from the following xml tags.
<locks:pair xc:value="numerator/denominator" xc:type="Fields">
<mp:formFactor>1</mp:formFactor>
<mp:quotation>numerator-denominator</mp:quotation>
<mp:one>1.23456</mp:one>... (5 Replies)
Hola, en windows no tengo este problema, pero estoy programando en linux y aca no se como hacer que no vaya tan rapido la velocidad de refresco, estoy tratando de poner a 60Hz como hacia en windows con request_refresh_rate(60); y vsync();, pero estas funciones no sirven en linux, ni en ventanas ni... (1 Reply)