PageRenderTime 267ms queryFilters 0ms Sphinxql 15ms GetByIds 198ms meta 0ms repositoryFilters 29ms languageFilters 0ms sourceFilters 1ms

2,043 results for 'FrameDelay repo:akravets/yahoo-weather-example' (267 ms)

Source

Language

Repository

JSIL.XNA.Core.js git://github.com/kevingadd/JSIL.git | JavaScript | 2,978 lines
1363  $.RawMethod(false, "_FixedTimeStep", function Game_FixedTimeStep (
1364    elapsed, frameDelay, millisecondInTicks, maxElapsedTimeMs, longFrame
1365  ) {
1366    var tInt64 = $jsilcore.System.Int64;
1367    var frameLength64 = tInt64.FromNumber(frameDelay * millisecondInTicks);
1368    this._gameTime.elapsedGameTime._ticks = frameLength64;
1376
1377    var numFrames = Math.floor(elapsed / frameDelay);
1378    if (numFrames < 1) {
1379      numFrames = 1;
1380      this._extraTime = elapsed - frameDelay;
1381    } else {
1381    } else {
1382      this._extraTime = elapsed - (numFrames * frameDelay);
1383    }
duckHunt.rb https://github.com/amozoss/ece3710.git | Ruby | 283 lines
29      @duckCount = 5
30      @frameDelay = 2
31    end
116    @watcher.observe_sensors if @serialEnable
117    if hits >= 1 and hits < @frameDelay 
118      @black.blit @screen,[0,0]
122    # Draw each duck as a white square
123    if hits >= @frameDelay and hits < @frameDelay*(@ducks.count) + @frameDelay 
124      puts "******** drawOffset: #{@drawOffset} ****************"
124      puts "******** drawOffset: #{@drawOffset} ****************"
125      if hits % @frameDelay == 0
126        @drawOffset += 1 
165    # Go back to normal
166    elsif hits >= @frameDelay*(@ducks.count) + @frameDelay 
167      @drawOffset = -1
TextureByReference.java http://i-weboffice.googlecode.com/svn/trunk/ | Java | 548 lines
83  private JButton animationB;
84  private JSlider frameDelay;
85
266
267    frameDelay = new JSlider(0, 50, 0);
268    frameDelay.addChangeListener(this);
268    frameDelay.addChangeListener(this);
269    frameDelay.setSnapToTicks(true);
270    frameDelay.setPaintTicks(true);
271    frameDelay.setPaintLabels(true);
272    frameDelay.setMajorTickSpacing(10);
273    frameDelay.setMinorTickSpacing(1);
499    if (o == frameDelay) {
500      animate.setFrameDelay(frameDelay.getValue());
501    }
Choreographer.java https://bitbucket.org/seandroid/frameworks-base.git | Java | 932 lines
92    // The number of milliseconds between animation frames.
93    private static volatile long sFrameDelay = DEFAULT_FRAME_DELAY;
94
249     */
250    public static long getFrameDelay() {
251        return sFrameDelay;
268     */
269    public static void setFrameDelay(long frameDelay) {
270        sFrameDelay = frameDelay;
283     * This method is somewhat conservative about how much of the frame delay it
284     * subtracts.  It uses the same value returned by {@link #getFrameDelay} which by
285     * default is 10ms even though many parts of the system assume 16ms.  Consequently,
295    public static long subtractFrameDelay(long delayMillis) {
296        final long frameDelay = sFrameDelay;
297        return delayMillis <= frameDelay ? 0 : delayMillis - frameDelay;
Choreographer.java https://bitbucket.org/iainh/projectzzz-platform-frameworks-base.git | Java | 798 lines
82    // The number of milliseconds between animation frames.
83    private static volatile long sFrameDelay = DEFAULT_FRAME_DELAY;
84
201     */
202    public static long getFrameDelay() {
203        return sFrameDelay;
220     */
221    public static void setFrameDelay(long frameDelay) {
222        sFrameDelay = frameDelay;
235     * This method is somewhat conservative about how much of the frame delay it
236     * subtracts.  It uses the same value returned by {@link #getFrameDelay} which by
237     * default is 10ms even though many parts of the system assume 16ms.  Consequently,
247    public static long subtractFrameDelay(long delayMillis) {
248        final long frameDelay = sFrameDelay;
249        return delayMillis <= frameDelay ? 0 : delayMillis - frameDelay;
Choreographer.java https://bitbucket.org/codefirex/frameworks_base.git | Java | 822 lines
83    // The number of milliseconds between animation frames.
84    private static volatile long sFrameDelay = DEFAULT_FRAME_DELAY;
85
208     */
209    public static long getFrameDelay() {
210        return sFrameDelay;
227     */
228    public static void setFrameDelay(long frameDelay) {
229        sFrameDelay = frameDelay;
242     * This method is somewhat conservative about how much of the frame delay it
243     * subtracts.  It uses the same value returned by {@link #getFrameDelay} which by
244     * default is 10ms even though many parts of the system assume 16ms.  Consequently,
254    public static long subtractFrameDelay(long delayMillis) {
255        final long frameDelay = sFrameDelay;
256        return delayMillis <= frameDelay ? 0 : delayMillis - frameDelay;
HRTFKernel.h https://bitbucket.org/codefirex/external_webkit.git | C Header | 98 lines
48//      m_fftFrame is the frequency-domain representation of the impulse response with the delay removed
49//      m_frameDelay is the leading delay of the original impulse response.
50class HRTFKernel : public RefCounted<HRTFKernel> {
58
59    static PassRefPtr<HRTFKernel> create(PassOwnPtr<FFTFrame> fftFrame, float frameDelay, float sampleRate)
60    {
60    {
61        return adoptRef(new HRTFKernel(fftFrame, frameDelay, sampleRate));
62    }
69    size_t fftSize() const { return m_fftFrame->fftSize(); }
70    float frameDelay() const { return m_frameDelay; }
71
83        : m_fftFrame(fftFrame)
84        , m_frameDelay(frameDelay)
85        , m_sampleRate(sampleRate)
HRTFKernel.h https://bitbucket.org/ariya/qt4-retrofit.git | C++ Header | 101 lines
48//      m_fftFrame is the frequency-domain representation of the impulse response with the delay removed
49//      m_frameDelay is the leading delay of the original impulse response.
50class HRTFKernel : public RefCounted<HRTFKernel> {
58
59    static PassRefPtr<HRTFKernel> create(PassOwnPtr<FFTFrame> fftFrame, float frameDelay, float sampleRate)
60    {
60    {
61        return adoptRef(new HRTFKernel(fftFrame, frameDelay, sampleRate));
62    }
69    size_t fftSize() const { return m_fftFrame->fftSize(); }
70    float frameDelay() const { return m_frameDelay; }
71
85        : m_fftFrame(fftFrame)
86        , m_frameDelay(frameDelay)
87        , m_sampleRate(sampleRate)
Choreographer.java https://bitbucket.org/htchoi1995/frameworks_base.git | Java | 822 lines
83    // The number of milliseconds between animation frames.
84    private static volatile long sFrameDelay = DEFAULT_FRAME_DELAY;
85
208     */
209    public static long getFrameDelay() {
210        return sFrameDelay;
227     */
228    public static void setFrameDelay(long frameDelay) {
229        sFrameDelay = frameDelay;
242     * This method is somewhat conservative about how much of the frame delay it
243     * subtracts.  It uses the same value returned by {@link #getFrameDelay} which by
244     * default is 10ms even though many parts of the system assume 16ms.  Consequently,
254    public static long subtractFrameDelay(long delayMillis) {
255        final long frameDelay = sFrameDelay;
256        return delayMillis <= frameDelay ? 0 : delayMillis - frameDelay;
CSprite.cpp https://bitbucket.org/digaomatias/pucgalaga.git | C++ | 246 lines
24    curframe = 0;
25    framedelay = 10;
26}
135// Recebe por parametro o valor que sera usado para especificar o atributo
136// framedelay, responsavel por diminuir ou aumentar a taxa de animacao.
137void CSprite::setAnimRate(int fdelay)
139	if (fdelay >= 0)
140		framedelay = fdelay;
141	else
141	else
142		framedelay = 0;
143
155
156    curFrameD += (double)framedelay/1000*updateInterval;
157    curframe = (int) curFrameD;
StreamCoder.cpp https://github.com/extremolo/xuggle-xuggler.git | C++ | 2,113 lines
1188        mFakeCurrPts = mFakeNextPts;
1189        double frameDelay = av_rescale(timeBase->getNumerator(),
1190            AV_TIME_BASE, timeBase->getDenominator());
1190            AV_TIME_BASE, timeBase->getDenominator());
1191        frameDelay += avFrame->repeat_pict * (frameDelay * 0.5);
1192
1193        // adjust our next Pts pointer
1194        mFakeNextPts += (int64_t) frameDelay;
1195        //          VS_LOG_DEBUG("frame complete: %s; pts: %lld; packet ts: %lld; opaque ts: %lld; tb: %ld/%ld",
RPGFrame.java https://github.com/MackValentine/LTDC.git | Java | 223 lines
33	private long wait;
34	private long frameDelay;
35	private long milli;
71		if (getDesiredRate() == 0) {
72			this.frameDelay = 0;
73		} else {
73		} else {
74			this.frameDelay = TIME_LONG / getDesiredRate();
75		}
171			try {
172				this.wait = this.frameDelay - time;
173				if (this.wait > 0) {
ZE_ZAnimation.cpp https://github.com/jamesturk/zengine.git | C++ | 152 lines
24
25ZAnimation::ZAnimation(ZImage *images, int numFrames, Uint32 frameDelay, ZAnimType type, bool backwards)
26{
27    rEngine = ZEngine::GetInstance();
28    Create(images,numFrames,frameDelay,type,backwards);
29}
40    rNumFrames = numFrames;
41    rFrameDelay = frameDelay;
42    rAnimType = type;
54
55void ZAnimation::SetFrameDelay(Uint32 frameDelay)
56{
56{
57    rFrameDelay = frameDelay;
58}
Choreographer.java git://github.com/CyanogenMod/android_frameworks_base.git | Java | 947 lines
93    // The number of milliseconds between animation frames.
94    private static volatile long sFrameDelay = DEFAULT_FRAME_DELAY;
95
263     */
264    public static long getFrameDelay() {
265        return sFrameDelay;
282     */
283    public static void setFrameDelay(long frameDelay) {
284        sFrameDelay = frameDelay;
297     * This method is somewhat conservative about how much of the frame delay it
298     * subtracts.  It uses the same value returned by {@link #getFrameDelay} which by
299     * default is 10ms even though many parts of the system assume 16ms.  Consequently,
309    public static long subtractFrameDelay(long delayMillis) {
310        final long frameDelay = sFrameDelay;
311        return delayMillis <= frameDelay ? 0 : delayMillis - frameDelay;
Configuration.xml https://hg01.codeplex.com/ipcamemu | XML | 78 lines
17      <Uri>http://+:1777/</Uri>
18      <FrameDelay>1000</FrameDelay>
19      <Source Type="folder" Name="QA Images Sequence 'A'">
27      <Uri>http://+:1776/</Uri>
28      <FrameDelay>10</FrameDelay>
29      <Source Type="folder" Name="QA Images Sequence 'B'">
37      <Uri>http://+:1775/</Uri>
38      <FrameDelay>10</FrameDelay>
39      <Source Type="webcam" Name="QA WebCam Test (Per Server)">
49      <Uri>http://+:1774/</Uri>
50      <FrameDelay>100</FrameDelay>
51      <Source Type="videoFile" Name="QA WMV Testing">
63      <Uri>http://+:1880/</Uri>
64      <FrameDelay>33</FrameDelay>
65      <Source Type="videoFile" Name="QA AVI Testing">
splashscreen_gif.c https://bitbucket.org/weijun/jdk8-tl-jdk | C | 325 lines
138        int transparentColor = -1;
139        int frameDelay = 100;
140        int disposeMethod = GIF_DISPOSE_RESTORE;
167
168                    frameDelay = (((int)pExtension[2]) << 8) | pExtension[1];
169                    if (frameDelay < 10)
169                    if (frameDelay < 10)
170                        frameDelay = 10;
171                    if (flag & GIF_TRANSPARENT) {
267
268        splash->frames[imageIndex].delay = frameDelay * 10;     // 100ths of second to milliseconds
269        switch (disposeMethod) {
scene.py https://bitbucket.org/lordmauve/metalwork | Python | 309 lines
57#		def draw(self, screen, x, y):
58#			framedelay = self.a.framedelay
59#			frames = self.a.frames
64#			self.ftime += 1
65#			if self.ftime == framedelay:
66#				self.ftime = 0
84#	def __init__(self, frames, framedelay=3, loop=True):
85#		self.framedelay = framedelay
86#		self.frames = frames
92#	@staticmethod
93#	def load(path, range, framedelay=3, loop=True):
94#		fs = [(0, 0, load_sprite(path % i)) for i in range]
94#		fs = [(0, 0, load_sprite(path % i)) for i in range]
95#		return AnimatedSprite(fs, framedelay, loop)
96
animation.py https://bitbucket.org/lordmauve/metalwork | Python | 243 lines
73		"""
74		def __init__(self, a, framedelay, loop):
75			self.a = a
78			self.loop = loop
79			self.framedelay = framedelay
80			self.paused = False
122		def draw(self, screen, x, y):
123			framedelay = self.framedelay
124
130
131			if self.ftime == framedelay:
132				self.ftime = 0
163	def new(self, framedelay=3, loop=True, start_paused=False):
164		inst = AnimatedSprite.Instance(self, framedelay=framedelay, loop=loop)
165		if start_paused:
splashscreen_gif.c https://bitbucket.org/hamishm/haiku-jdk-jdk | C | 325 lines
138        int transparentColor = -1;
139        int frameDelay = 100;
140        int disposeMethod = GIF_DISPOSE_RESTORE;
167
168                    frameDelay = (((int)pExtension[2]) << 8) | pExtension[1];
169                    if (frameDelay < 10)
169                    if (frameDelay < 10)
170                        frameDelay = 10;
171                    if (flag & GIF_TRANSPARENT) {
267
268        splash->frames[imageIndex].delay = frameDelay * 10;     // 100ths of second to milliseconds
269        switch (disposeMethod) {
splashscreen_gif.c https://bitbucket.org/chegar/jigsaw_jigsaw_jdk | C | 325 lines
138        int transparentColor = -1;
139        int frameDelay = 100;
140        int disposeMethod = GIF_DISPOSE_RESTORE;
167
168                    frameDelay = (((int)pExtension[2]) << 8) | pExtension[1];
169                    if (frameDelay < 10)
169                    if (frameDelay < 10)
170                        frameDelay = 10;
171                    if (flag & GIF_TRANSPARENT) {
267
268        splash->frames[imageIndex].delay = frameDelay * 10;     // 100ths of second to milliseconds
269        switch (disposeMethod) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21