Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Merovius/srvfb
/ functions
Functions
60 in github.com/Merovius/srvfb
⨍
Functions
60
◇
Types & classes
50
↓ 19 callers
Method
Write
An encoder is an io.Writer that satisfies writes by writing PNG IDAT chunks, including an 8-byte header and 4-byte CRC checksum per Write call. Such c
internal/png/writer.go:196
↓ 10 callers
Method
Error
()
internal/png/reader.go:129
↓ 8 callers
Function
abs8
The absolute value of a byte interpreted as a signed int8.
internal/png/writer.go:88
↓ 7 callers
Method
verifyChecksum
()
internal/png/reader.go:932
↓ 6 callers
Method
Get
()
internal/png/writer.go:31
↓ 6 callers
Function
abs
(x int)
internal/png/paeth.go:10
↓ 5 callers
Method
Close
()
internal/fb/fb.go:90
↓ 5 callers
Method
writeChunk
(b []byte, name string)
internal/png/writer.go:95
↓ 4 callers
Method
Close
()
srvfb.go:551
↓ 4 callers
Method
readImage
(im *image.Gray16)
srvfb.go:368
↓ 3 callers
Function
cbPaletted
(cb int)
internal/png/reader.go:53
↓ 3 callers
Method
readImagePass
readImagePass reads a single image pass, sized according to the pass number.
internal/png/reader.go:414
↓ 2 callers
Method
Encode
Encode writes the Image m to w in PNG format.
internal/png/writer.go:571
↓ 2 callers
Method
Read
Read presents one or more IDAT chunks as one continuous stream (minus the intermediate chunk headers and footers). If the PNG data looked like: ... le
internal/png/reader.go:335
↓ 2 callers
Method
checkHeader
()
internal/png/reader.go:942
↓ 2 callers
Method
close
()
srvfb.go:469
↓ 2 callers
Function
dialProxy
(addr string)
srvfb.go:397
↓ 2 callers
Function
min
(a, b int)
internal/png/reader.go:138
↓ 2 callers
Function
opaque
Returns whether or not the image is fully opaque.
internal/png/writer.go:71
↓ 2 callers
Method
parseChunk
()
internal/png/reader.go:862
↓ 2 callers
Method
skip
(b []byte)
srvfb.go:483
↓ 1 callers
Function
Encode
Encode writes the Image m to w in PNG format. Any Image may be encoded, but images that are not image.NRGBA might be encoded lossily.
internal/png/writer.go:565
↓ 1 callers
Method
Image
()
internal/fb/fb.go:67
↓ 1 callers
Method
Opaque
()
internal/png/writer.go:67
↓ 1 callers
Function
Open
(dev string)
internal/fb/fb.go:33
↓ 1 callers
Method
Put
(*EncoderBuffer)
internal/png/writer.go:32
↓ 1 callers
Method
VarScreeninfo
()
internal/fb/fb.go:58
↓ 1 callers
Method
decode
decode decodes the IDAT data into an image.
internal/png/reader.go:366
↓ 1 callers
Function
filter
Chooses the filter to use for encoding the current row, and applies it. The return value is the index of the filter and also of the row in cr that has
internal/png/writer.go:206
↓ 1 callers
Function
filterPaeth
filterPaeth applies the Paeth filter to the cdat slice. cdat is the current row's data, pdat is the previous row's data.
internal/png/paeth.go:47
↓ 1 callers
Function
levelToZlib
This function is required because we want the zero value of Encoder.CompressionLevel to map to zlib.DefaultCompression.
internal/png/writer.go:546
↓ 1 callers
Method
mergePassInto
mergePassInto merges a single pass into a full sized image.
internal/png/reader.go:788
↓ 1 callers
Function
paeth
paeth implements the Paeth filter function, as per the PNG specification.
internal/png/paeth.go:23
↓ 1 callers
Method
parseIDAT
(length uint32)
internal/png/reader.go:846
↓ 1 callers
Method
parseIEND
(length uint32)
internal/png/reader.go:855
↓ 1 callers
Method
parseIHDR
(length uint32)
internal/png/reader.go:145
↓ 1 callers
Method
parsePLTE
(length uint32)
internal/png/reader.go:234
↓ 1 callers
Method
parsetRNS
(length uint32)
internal/png/reader.go:268
↓ 1 callers
Method
readHdr
(resp *http.Response)
srvfb.go:410
↓ 1 callers
Function
run
()
srvfb.go:53
↓ 1 callers
Method
serveImage
(w http.ResponseWriter, r *http.Request)
srvfb.go:268
↓ 1 callers
Method
serveIndex
(w http.ResponseWriter, r *http.Request)
srvfb.go:296
↓ 1 callers
Method
serveRaw
(w http.ResponseWriter, r *http.Request)
srvfb.go:145
↓ 1 callers
Method
serveVideo
(w http.ResponseWriter, r *http.Request)
srvfb.go:214
↓ 1 callers
Function
wrapListener
wrapListener wraps l with an idle timeout, if possible. A zero timeout disables timeouts. If setting a timeout fails, the returned Listener falls back
srvfb.go:502
↓ 1 callers
Method
writeIDATs
Write the actual image data to one or more IDAT chunks.
internal/png/writer.go:528
↓ 1 callers
Method
writeIEND
()
internal/png/writer.go:561
↓ 1 callers
Method
writeIHDR
()
internal/png/writer.go:125
↓ 1 callers
Method
writeImage
(w io.Writer, m image.Image, cb int, level int)
internal/png/writer.go:304
↓ 1 callers
Method
writePLTEAndTRNS
(p color.Palette)
internal/png/writer.go:168
↓ 1 callers
Function
zeroMemory
(v []uint8)
internal/png/writer.go:298
Method
Accept
Accept implements net.Conn. Connections returned by Accept are tracked. Once all active connections are closed and the idle timeout expires, Accept re
srvfb.go:523
Function
Decode
Decode reads a PNG image from r and returns it as an image.Image. The type of Image returned depends on the PNG contents.
internal/png/reader.go:955
Function
DecodeConfig
DecodeConfig returns the color model and dimensions of a PNG image without decoding the entire image.
internal/png/reader.go:979
Method
Error
()
internal/png/reader.go:136
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
srvfb.go:111
Function
init
()
srvfb.go:562
Function
init
()
internal/png/reader.go:1033
Function
main
()
srvfb.go:46
Method
readImage
(im *image.Gray16)
srvfb.go:449