Search completed in 1.01 seconds.
5 results for "currentFrame":
imgIContainer
MozillaTechXPCOMReferenceInterfaceimgIContainer
obsolete since gecko 2.0 void clear(); obsolete since gecko 1.9.2 gfximagesurface copycurrentframe(); native code only!
... obsolete since gecko 2.0 imgicontainer extractcurrentframe([const] in nsintrect arect); native code only!
... obsolete since gecko 2.0 void getcurrentframerect(in nsintrect aframerect); native code only!
...And 9 more matches
imgIDecoderObserver
MozillaTechXPCOMReferenceInterfaceimgIDecoderObserver
method overview void ondataavailable(in imgirequest arequest, in boolean acurrentframe, [const] in nsintrect arect); native code only!
...void ondataavailable( in imgirequest arequest, in boolean acurrentframe, [const] in nsintrect arect ); parameters arequest the request on which data is available, or null if being called for an imgidecoder object.
... acurrentframe missing description arect missing description ondiscard() called when the decoded image data is discarded.
Rendering and the WebXR frame animation callback - Web APIs
WebAPIWebXR Device APIRendering
let lastframetime = 0; function mydrawframe(currentframetime, frame) { let session = frame.session; let viewerpose; // schedule the next frame to be painted when the time comes.
... const deltatime = currentframetime - lastframetime; lastframetime = time; // now call the scene rendering code once for each of // the session's views.
... next, the time elapsed since the previous frame was rendered is calculated by subtracting from the current time as specified by the currentframetime parameter the saved time at which the last frame was rendered, lastframetime.
AudioWorkletGlobalScope - Web APIs
WebAPIAudioWorkletGlobalScope
properties currentframe read only returns an integer that represents the ever-increasing current sample-frame of the audio block being processed.
... // test-processor.js class testprocessor extends audioworkletprocessor { constructor () { super() // current sample-frame and time at the moment of instantiation // to see values change, you can put these two lines in process method console.log(currentframe) console.log(currenttime) } // the process method is required - simply output silence, // which the outputs are already filled with process (inputs, outputs, parameters) { return true } } // the sample rate is not going to change ever, // because it's a read-only property of a baseaudiocontext // and is set only during its instantiation console.log(samplerate) // you can decla...
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
WebAPIWebXR Device APISpatial tracking
for example, given an xrsession whose reference space is worldrefspace, the following line of code would request the first frame of animation to be scheduled: animationframerequestid = xrsession.requestanimationframe(mydrawframe); then, the mydrawframe() function—the callback executed when it's time to draw the frame—might be something like this: function mydrawframe(currentframetime, frame) { let session = frame.session; let viewerpose = frame.getviewerpose(viewerrefspace); animationframerequestid = session.requestanimationframe(mydrawframe); if (viewerpose) { /* ...
... let previousviewerpose = null; function mydrawframe(currentframetime, frame) { let session = frame.session; let viewerpose = frame.getviewerpose(viewerrefspace); animationframerequestid = session.requestanimationframe(mydrawframe); if (viewerpose) { if (!previousviewerpose) { previousviewerpose = viewerpose; } let offsetmatrix = mat4.create(); mat4.sub(offsetmatrix, previousviewerpose.transform.matrix, viewerpose.t...