Search completed in 0.94 seconds.
readSegments
this content is now available at nsiinputstream.read
segments().
writeSegments
this content is now available at nsioutputstream.write
segments().
nsITransport
method overview void close(in nsresult areason); nsiinputstream openinputstream(in unsigned long aflags, in unsigned long a
segmentsize, in unsigned long asegmentcount); nsioutputstream openoutputstream(in unsigned long aflags, in unsigned long a
segmentsize, in unsigned long asegmentcount); void seteventsink(in nsitransporteventsink asink, in nsieventtarget aeventtarget); constants open flags.
...nsiinputstream openinputstream( in unsigned long aflags, in unsigned long a
segmentsize, in unsigned long asegmentcount ); parameters aflags optional transport specific flags.
...open_unbuffered if specified, the resulting stream may not support read
segments.
...And 8 more matches
SourceBuffer.mode - Web APIs
the mode property of the sourcebuffer interface controls whether media
segments can be appended to the sourcebuffer in any order, or in a strict sequence.
... the two available values are:
segments: the media segment timestamps determine the order in which the
segments are played.
... the
segments can be appended to the sourcebuffer in any order.
...And 8 more matches
nsIInputStream
a blocking input stream may suspend the calling thread in order to satisfy a call to close(), available(), read(), or read
segments().
... unsigned long read
segments(in nswritesegmentfun awriter, in voidptr aclosure, in unsigned long acount); native code only!
...this method causes subsequent calls to read() and read
segments() to return 0 bytes read to indicate end-of-file.
...And 6 more matches
nsIOutputStream
a blocking output stream may suspend the calling thread in order to satisfy a call to close(), flush(), write(), writefrom(), or write
segments().
... method overview void close(); void flush(); boolean isnonblocking(); unsigned long write(in string abuf, in unsigned long acount); unsigned long writefrom(in nsiinputstream afromstream, in unsigned long acount); unsigned long write
segments(in nsreadsegmentfun areader, in voidptr aclosure, in unsigned long acount); native code only!
...typically, output streams that do not have an internal buffer will not implement this method since such an implementation would require an intermediate buffer unless afromstream supported nsiinputstream.read
segments(), but that is not guaranteed.
...And 6 more matches
Applying styles and colors - Web APIs
setlinedash(
segments) sets the current line dash pattern.
... note also that only start and final endpoints of a path are affected: if a path is closed with closepath(), there's no start and final endpoint; instead, all endpoints in the path are connected to their attached previous and next segment using the current setting of the linejoin style, whose default value is miter, with the effect of automatically extending the outer borders of the connected
segments to their intersection point, so that the rendered stroke will exactly cover full pixels centered at each endpoint if those connected
segments are horizontal and/or vertical).
...x.strokestyle = 'black'; for (var i = 0; i < linecap.length; i++) { ctx.linewidth = 15; ctx.linecap = linecap[i]; ctx.beginpath(); ctx.moveto(25 + i * 50, 10); ctx.lineto(25 + i * 50, 140); ctx.stroke(); } } <canvas id="canvas" width="150" height="150"></canvas> draw(); screenshotlive sample a linejoin example the linejoin property determines how two connecting
segments (of lines, arcs or curves) with non-zero lengths in a shape are joined together (degenerate
segments with zero lengths, whose specified endpoints and control points are exactly at the same position, are skipped).
...And 6 more matches
Setting up adaptive streaming media sources - Developer guides
various bitrate streams are broken into
segments and placed in appropriate server folders — we have to provide our media players with a link to lookup files or playlists specifying the name and location of these stream folders.
...ma:mpd:2011" xsi:schemalocation="urn:mpeg:dash:schema:mpd:2011 dash-mpd.xsd" type="static" mediapresentationduration="pt654s" minbuffertime="pt2s" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011"> <baseurl>http://example.com/ondemand/</baseurl> <period> <!-- english audio --> <adaptationset mimetype="audio/mp4" codecs="mp4a.40.5" lang="en" subsegmentalignment="true" sub
segmentstartswithsap="1"> <representation id="1" bandwidth="64000"> <baseurl>elephantsdream_aac48k_064.mp4.dash</baseurl> </representation> </adaptationset> <!-- video --> <adaptationset mimetype="video/mp4" codecs="avc1.42401e" subsegmentalignment="true" sub
segmentstartswithsap="1"> <representation id="2" bandwidth="100000" width="480" height="360"> <baseurl>...
... once encoded your file structure may look something like this: play list -> /
segments/news.mp4.mpd main segment folder -> /
segments/main/ 100 kbps segment folder -> /
segments/main/news100 contains (1.m4s, 2.m4s, 3.m4s ...
...And 6 more matches
stroke-linejoin - SVG: Scalable Vector Graphics
the arcs value indicates that an arcs corner is to be used to join path
segments.
...path for each stroke --> <g id="p"> <path d="m1,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3" stroke="pink" fill="none" stroke-width="0.025" /> <circle cx="1" cy="5" r="0.05" fill="pink" /> <circle cx="3" cy="2" r="0.05" fill="pink" /> <circle cx="5" cy="5" r="0.05" fill="pink" /> </g> </svg> bevel the bevel value indicates that a bevelled corner is to be used to join path
segments.
... the position of the path for each stroke --> <g id="p"> <path d="m1,5 l2,-3 l2,3" stroke="pink" fill="none" stroke-width="0.025" /> <circle cx="1" cy="5" r="0.05" fill="pink" /> <circle cx="3" cy="2" r="0.05" fill="pink" /> <circle cx="5" cy="5" r="0.05" fill="pink" /> </g> </svg> miter the miter value indicates that a sharp corner is to be used to join path
segments.
...And 5 more matches
Index - Web APIs
nvas, canvasrenderingcontext2d, property, reference the canvasrenderingcontext2d.linedashoffset property of the canvas 2d api sets the line dash offset, or "phase." 581 canvasrenderingcontext2d.linejoin api, canvas, canvasrenderingcontext2d, property, reference the canvasrenderingcontext2d.linejoin property of the canvas 2d api determines the shape used to join two line
segments where they meet.
...this can be made up of one or several media
segments.
... 4020 sourcebuffer.mode api, audio, experimental, mse, media source extensions, property, reference, sourcebuffer, video, mode the mode property of the sourcebuffer interface controls whether media
segments can be appended to the sourcebuffer in any order, or in a strict sequence.
...And 4 more matches
Using XMLHttpRequest - Web APIs
*/ var oajaxreq = new xmlhttprequest(); oajaxreq.submitteddata = odata; oajaxreq.onload = ajaxsuccess; if (odata.technique === 0) { /* method is get */ oajaxreq.open("get", odata.receiver.replace(/(?:\?.*)?$/, odata.
segments.length > 0 ?
... "?" + odata.
segments.join("&") : ""), true); oajaxreq.send(null); } else { /* method is post */ oajaxreq.open("post", odata.receiver, true); if (odata.technique === 3) { /* enctype is multipart/form-data */ var sboundary = "---------------------------" + date.now().tostring(16); oajaxreq.setrequestheader("content-type", "multipart\/form-data; boundary=" + sboundary); oajaxreq.sendasbinary("--" + sboundary + "\r\n" + odata.
segments.join("--" + sboundary + "\r\n") + "--" + sboundary + "--\r\n"); } else { /* enctype is application/x-www-form-urlencoded or text/plain */ oajaxreq.setrequestheader("content-type", odata.contenttype); oajaxreq.send(odata.
segments.join(odata.technique === 2 ?
...submitting..."); */ submitdata (odata); } function pushsegment (ofrevt) { this.owner.
segments[this.segmentidx] += ofrevt.target.result + "\r\n"; this.owner.status--; processstatus(this.owner); } function plainescape (stext) { /* how should i treat a text/plain form encoding?
...And 4 more matches
CanvasRenderingContext2D.lineJoin - Web APIs
the canvasrenderingcontext2d.linejoin property of the canvas 2d api determines the shape used to join two line
segments where they meet.
... this property has no effect wherever two connected
segments have the same direction, because no joining area will be added in this case.
... degenerate
segments with a length of zero (i.e., with all endpoints and control points at the exact same position) are also ignored.
...And 3 more matches
SourceBuffer - Web APIs
this can be made up of one or several media
segments.
... sourcebuffer.mode controls how the order of media
segments in the sourcebuffer is handled, in terms of whether they can be appended in any order, or they have to be kept in a strict sequence.
... sourcebuffer.timestampoffset controls the offset applied to timestamps inside media
segments that are subsequently appended to the sourcebuffer.
...And 3 more matches
Index
a blocking input stream may suspend the calling thread in order to satisfy a call to close(), available(), read(), or read
segments().
... 699 read
segments no summary!
... 729 nsimemory interfaces, interfaces:scriptable, xpcom, xpcom api reference, xpcom interface reference, memory nsimemory is used to allocate and deallocate memory
segments from a heap.
...And 2 more matches
-moz-image-rect - CSS: Cascading Style Sheets
examples this example loads an image and uses it in four
segments to draw the firefox logo in four <div> blocks.
... clicking on their container causes the four
segments to rotate around by swapping the background-image property values among the four <div> blocks.
... the container looks like this: #container { width:267px; height:272px; top:100px; left:100px; position:absolute; font-size:16px; text-shadow:white 0px 0px 6px; text-align:center; } then the four boxes defining the
segments of the image are defined.
...And 2 more matches
URIs and URLs - Archive of obsolete content
nsstandardurl also contains the facilities to parse these typ of urls, to break the specification of the url "spec" down into the most basic
segments.
...together these
segments form the url spec with the following syntax: scheme://username:password@host:port/directory/filebasename.fileextension;param?query#ref for performance reasons the complete spec is stored in escaped form in the nsstandardurl object with pointers (position and length) to each basic segment and for the more global
segments like path and prehost for example.
...this implies that the
segments of urls are escaped differently.
... also the handling of query
segments is different from the examples given in rfc 2396: within an object with a well-defined base uri of http://a/b/c/d;p?q the relative uri would be resolved as follows: ...
Building up a basic demo with A-Frame - Game development
let's try adding a torus — add this element below the previous code: <a-entity geometry=" primitive: torus; radius: 1; radiustubular: 0.1;
segmentstubular: 12;" rotation="10 0 0" position="-3 1 0"> </a-entity> our entity has a torus primitive, which represents its shape.
... we are passing some initial variables to that shape: the radius of the outer edge of the torus, the radius of the tube, and number of
segments along the circumference of the tube face respectively.
...edit the <a-entity> defining the torus to look like the following: <a-entity geometry=" primitive: torus; radius: 1; radiustubular: 0.1;
segmentstubular: 12;" material=" color: #eaeff2; roughness: 0.1; metalness: 0.5;" rotation="10 0 0" position="-3 1 0"> </a-entity> in the new material attribute, we set up the color of the material, then its roughness (a rougher material will scatter reflected light in more directions than a smooth material) and metalness (how metallic the material is).
...add the following <a-animation> element to your torus: <a-entity geometry=" primitive: torus; radius: 1; radiustubular: 0.1;
segmentstubular: 12;" material=" color: #eaeff2; roughness: 0.1; metalness: 0.5;" rotation="10 0 0" position="-3 1 0"> <a-animation attribute="scale" to="1 0.5 1" direction="alternate" dur="2000" repeat="indefinite" easing="linear"> </a-animation> </a-entity> the attribute we want to animate for the torus is scale.
fill-rule - SVG: Scalable Vector Graphics
ct only on the following eight elements: <altglyph>, <path>, <polygon>, <polyline>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="-10 -10 220 120" xmlns="http://www.w3.org/2000/svg"> <!-- default value for fill-rule --> <polygon fill-rule="nonzero" stroke="red" points="50,0 21,90 98,35 2,35 79,90"/> <!-- the center of the shape has two path
segments (shown by the red stroke) between it and infinity.
... example html,body,svg { height:100% } <svg viewbox="-10 -10 320 120" xmlns="http://www.w3.org/2000/svg"> <!-- effect of nonzero fill rule on crossing path
segments --> <polygon fill-rule="nonzero" stroke="red" points="50,0 21,90 98,35 2,35 79,90"/> <!-- effect of nonzero fill rule on a shape inside a shape with the path segment moving in the same direction (both squares drawn clockwise, to the "right") --> <path fill-rule="nonzero" stroke="red" d="m110,0 h90 v90 h-90 z m130,20 h50 v50 h-50 z"/> <!-- effec...
... segment moving in the opposite direction (one square drawn clockwise, the other anti-clockwise) --> <path fill-rule="nonzero" stroke="red" d="m210,0 h90 v90 h-90 z m230,20 v50 h50 v-50 z"/> </svg> evenodd the value evenodd determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction and counting the number of path
segments from the given shape that the ray crosses.
... example html,body,svg { height:100% } <svg viewbox="-10 -10 320 120" xmlns="http://www.w3.org/2000/svg"> <!-- effect of evenodd fill rule on crossing path
segments --> <polygon fill-rule="evenodd" stroke="red" points="50,0 21,90 98,35 2,35 79,90"/> <!-- effect of evenodd fill rule on on a shape inside a shape with the path segment moving in the same direction (both squares drawn clockwise, to the "right") --> <path fill-rule="evenodd" stroke="red" d="m110,0 h90 v90 h-90 z m130,20 h50 v50 h-50 z"/> <!-- effect of evenodd fill rule on a shape inside a shape with the path segment moving in opposite direction (one square drawn clockwise, the other anti-clockwise) ...
nsIPipe
inherits from: nsisupports last changed in gecko 1.6 method overview void init(in boolean nonblockinginput, in boolean nonblockingoutput, in unsigned long
segmentsize, in unsigned long segmentcount, in nsimemory segmentallocator); attributes attribute type description inputstream nsiasyncinputstream the pipe's input end, which also implements nsisearchableinputstream.
...void init( in boolean nonblockinginput, in boolean nonblockingoutput, in unsigned long
segmentsize, in unsigned long segmentcount, in nsimemory segmentallocator ); parameters nonblockinginput true specifies non-blocking input stream behavior.
...
segmentsize specifies the segment size in bytes (pass 0 to use default value) segmentcount specifies the max number of
segments (pass 0 to use default value).
CanvasRenderingContext2D.arcTo() - Web APIs
examples how arcto works one way to think about arcto() is to imagine two straight
segments: one from the starting point to a first control point, and another from there to a second control point.
... without arcto(), these two
segments would form a sharp corner: arcto() creates a circular arc that fits this corner and smooths is out.
... in other words, the arc is tangential to both
segments.
Fills and Strokes - SVG: Scalable Vector Graphics
use stroke-linejoin to control how the joint between two line
segments is drawn.
..."20" stroke-linecap="butt" fill="none" stroke-linejoin="miter"/> <polyline points="40 140 80 100 120 140" stroke="black" stroke-width="20" stroke-linecap="round" fill="none" stroke-linejoin="round"/> <polyline points="40 220 80 180 120 220" stroke="black" stroke-width="20" stroke-linecap="square" fill="none" stroke-linejoin="bevel"/> </svg> each of these polylines has two
segments.
...bevel creates a new angle to aid in the transition between the two
segments.
Necko walkthrough
nshttpconnection::activate this connection is passed the transaction nshttpconnection::onoutputstreamready nshttpconnection::onsocketwritable tries to write the request data from the current transaction (mtransaction) tells the transaction to now wait (`resumerecv) nshttpconnection::resumerecv nshttptransaction::read
segments readrequestsegment is passed to mrequeststream->read
segments - this function pointer is called and used to read the request bytes, which in turn calls ...
... nshttpconnection::oninputstreamready nshttpconnection::onsocketreadable nshttptransaction::write
segments nshttpconnection::onwritesegment passes bytes from msocketin->read to the transaction's pipe nspipeoutputstream::write
segments nspipe::advancewritecursor nspipeinputstream::oninputreadable so now the response is hitting the other end of the pipe, saying it has bytes to read nspipeevents::notifyinputready puts the callback object into an nspipeevents object.
nsIAsyncStreamCopier
asourcebuffered true if asource implements nsiinputstream.read
segments().
... asinkbuffered true if asink implements nsiinputstream.write
segments() .
nsIFile
this method will create any path
segments that do not already exist.
...this method will create any path
segments that do not already exist.
border-style - CSS: Cascading Style Sheets
dashed displays a series of short square-ended dashes or line
segments.
... the exact size and length of the
segments are not defined by the specification and are implementation-specific.
stroke-miterlimit - SVG: Scalable Vector Graphics
<path stroke="pink" fill="none" stroke-width="0.05" d="m1, 9 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3 m1,19 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3 m1,29 l7,-3 l7,3 m2,0 l3.5,-3 l3.5,3 m2,0 l2,-3 l2,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5,-3 l0.5,3" /> </svg> when two line
segments meet at a sharp angle and miter joins have been specified for stroke-linejoin, it is possible for the miter to extend far beyond the thickness of the line stroking the path.
... the ratio of miter length (distance between the outer tip and the inner corner of the miter) to stroke-width is directly related to the angle (theta) between the
segments in user space by the formula: stroke-miterlimit = miterlength stroke-width = 1 sin ( θ 2 ) for example, a miter limit of 1.414 converts miters to bevels for theta less than 90 degrees, a limit of 4.0 converts them for theta less than approximately 29 degrees, and a limit of 10.0 converts them for theta less than approximately 11.5 degrees.
Building up a basic demo with Babylon.js - Game development
torus let's try adding a torus — add the following lines below the previous code: var torus = babylon.mesh.createtorus("torus", 2, 0.5, 15, scene); torus.position.x = -5; torus.rotation.x = 1.5; this will create a torus and add it to the scene; the parameters are: name, diameter, thickness, tessellation (number of
segments) and the scene to add it to.
Routing in Ember - Learn web development
it also tells ember how to interact with your route, such as when loading arbitrary data, handling errors while loading that data, or interpreting dynamic
segments of the url.
Cross browser testing - Learn web development
what browsers, devices, and other
segments should you make sure are tested), lo-fi testing strategies (get yourself a range of devices and some virtual machines and do ad-hoc tests when needed), higher tech strategies (automation, using dedicated testing apps), and testing with user groups.
nsIMemory
inherits from: nsisupports last changed in gecko 0.9.6 nsimemory is used to allocate and deallocate memory
segments from a heap.
nsIUploadChannel
most implementations of this interface require that the stream: implement threadsafe addref and release implement nsiinputstream.read
segments() implement nsiseekablestream.seek().
nsIUploadChannel2
most implementations of this interface require that the stream: implement threadsafe addref and release implement nsiinputstream.read
segments() implement nsiseekablestream.seek().
Drawing shapes with canvas - Web APIs
a path is a list of points, connected by
segments of lines that can be of different shapes, curved or not, of different width and of different color.
Checking when a deadline is due - Web APIs
alue.minutes) == minutecheck && +(cursor.value.day) == daycheck && monthnumber == monthcheck && cursor.value.year == yearcheck && notified == "no") { // if the numbers all do match, run the createnotification() // function to create a system notification createnotification(cursor.value.tasktitle); } with the current time and date
segments that we want to check against the indexeddb stored values all assembled, it is time to perform the checks.
Media Source API - Web APIs
trackdefault provides a sourcebuffer with kind, label, and language information for tracks that do not contain this information in the initialization
segments of a media chunk.
Resource Timing API - Web APIs
this would be a nice place to have a diagram showing the relationships between these
segments of the resource loading time.
SourceBuffer.removeAsync() - Web APIs
the removeasync() method of the sourcebuffer interface starts the process of asynchronously removing from the sourcebuffer media
segments found within a specific time range.
SourceBuffer.timestampOffset - Web APIs
the timestampoffset property of the sourcebuffer interface controls the offset applied to timestamps inside media
segments that are appended to the sourcebuffer.
TrackDefault - Web APIs
the trackdefault interface provides a sourcebuffer with kind, label, and language information for tracks that do not contain this information in the initialization
segments of a media chunk.
WebGL constants - Web APIs
line_strip 0x0003 passed to drawelements or drawarrays to draw a connected group of line
segments from the first vertex to the last.
XPath
transforming xml with xslt xslt uses xpath to address code
segments in an xml document that it wishes to transform.