Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HugoSmits86/nativewebp
/ functions
Functions
83 in github.com/HugoSmits86/nativewebp
⨍
Functions
83
◇
Types & classes
8
↓ 51 callers
Method
writeBits
(value uint64, n int)
bitwriter.go:16
↓ 23 callers
Function
generateTestImageNRGBA
(width int, height int, brightness float64, hasAlpha bool)
writer_test.go:20
↓ 8 callers
Method
Len
()
huffman.go:33
↓ 7 callers
Function
Encode
Encode writes the provided image.Image to the specified io.Writer in WebP format. This function always encodes the image using VP8L (lossless WebP).
writer.go:88
↓ 7 callers
Method
writeCode
(code huffmanCode)
bitwriter.go:36
↓ 6 callers
Function
hash
(c color.NRGBA, shifts int)
writer.go:566
↓ 5 callers
Function
getMethodLevel
(lvl CompressionLevel)
writer.go:178
↓ 5 callers
Function
writeImageData
(w *bitWriter, pixels []color.NRGBA, width, height int, isRecursive bool, colorBits int)
writer.go:385
↓ 4 callers
Function
flatten
(img image.Image)
writer.go:643
↓ 4 callers
Function
writeBitStream
(img image.Image, method int)
writer.go:267
↓ 3 callers
Method
Pop
()
huffman.go:37
↓ 3 callers
Method
Push
(x interface{})
huffman.go:36
↓ 3 callers
Function
applyFilter
(pixels []color.NRGBA, width, x, y, prediction int)
transform.go:124
↓ 3 callers
Function
applyPaletteTransform
(pixels *[]color.NRGBA, width, height int)
transform.go:268
↓ 3 callers
Function
buildhuffmanCodes
(histo []int, maxDepth int)
huffman.go:90
↓ 3 callers
Function
prefixEncodeBits
(prefix int)
writer.go:558
↓ 3 callers
Function
prefixEncodeCode
(n int)
writer.go:539
↓ 3 callers
Function
writeBitStreamData
(w *bitWriter, img image.Image, colorBits, histoBits, transBits int, transforms [4]bool)
writer.go:328
↓ 3 callers
Method
writeBytes
(values []byte)
bitwriter.go:30
↓ 3 callers
Function
writeChunkVP8X
(buf *bytes.Buffer, bounds image.Rectangle, flagAlpha, flagAni bool)
writer.go:191
↓ 3 callers
Function
writeFrames
(ani *Animation, method int)
writer.go:214
↓ 3 callers
Method
writeThrough
()
bitwriter.go:56
↓ 2 callers
Function
Decode
Decode reads a WebP image from the provided io.Reader and returns it as an image.Image. This function is a wrapper around the underlying WebP decode
reader.go:35
↓ 2 callers
Function
DecodeIgnoreAlphaFlag
DecodeIgnoreAlphaFlag reads a WebP image from the provided io.Reader and returns it as an image.Image. This function fixes x/image/webp rejecting VP8
reader.go:67
↓ 2 callers
Function
EncodeAll
EncodeAll writes the provided animation sequence to the specified io.Writer in WebP format. This function encodes a list of frames as a WebP animatio
writer.go:141
↓ 2 callers
Method
alignByte
()
bitwriter.go:51
↓ 2 callers
Function
applyColorTransform
(pixels []color.NRGBA, width, height, transBits int)
transform.go:213
↓ 2 callers
Function
applyPredictTransform
(pixels []color.NRGBA, width, height, transBits int)
transform.go:29
↓ 2 callers
Function
applySubtractGreenTransform
(pixels []color.NRGBA)
transform.go:261
↓ 2 callers
Function
buildHuffmanTree
(histo []int, maxDepth int)
huffman.go:45
↓ 2 callers
Function
computeHistograms
(pixels []int, colorBits int)
writer.go:572
↓ 2 callers
Function
encodeImageData
(pixels []color.NRGBA, width, height, colorBits int)
writer.go:429
↓ 2 callers
Function
getHistoBits
(method int, isIndexed bool, width, height int)
writer.go:613
↓ 2 callers
Function
getTransformBits
(method, histoBits int)
writer.go:602
↓ 2 callers
Function
setBitDepths
(node *node, codes *[]huffmanCode, level int)
huffman.go:125
↓ 2 callers
Function
writeBitStreamHeader
(w *bitWriter, bounds image.Rectangle, hasAlpha bool)
writer.go:313
↓ 2 callers
Function
writehuffmanCodes
(w *bitWriter, codes []huffmanCode)
huffman.go:143
↓ 1 callers
Function
DecodeConfig
DecodeConfig reads the image configuration from the provided io.Reader without fully decoding the image. This function is a wrapper around the underl
reader.go:50
↓ 1 callers
Function
writeFullhuffmanCode
(w *bitWriter, codes []huffmanCode)
huffman.go:183
Method
Less
(i, j int)
huffman.go:34
Method
Swap
(i, j int)
huffman.go:35
Function
TestAlignByte
(t *testing.T)
bitwriter_test.go:213
Function
TestApplyColorTransform
(t *testing.T)
transform_test.go:174
Function
TestApplyFilter
(t *testing.T)
transform_test.go:128
Function
TestApplyPaletteTransform
(t *testing.T)
transform_test.go:328
Function
TestApplyPredictTransform
(t *testing.T)
transform_test.go:19
Function
TestApplySubtractGreenTransform
(t *testing.T)
transform_test.go:286
Function
TestBuildHuffmanTree
(t *testing.T)
huffman_test.go:14
Function
TestBuildhuffmanCodes
(t *testing.T)
huffman_test.go:119
Function
TestComputeHistograms
(t *testing.T)
writer_test.go:2634
Function
TestDecode
(t *testing.T)
reader_test.go:41
Function
TestDecodeConfig
(t *testing.T)
reader_test.go:121
Function
TestDecodeIgnoreAlphaFlag
(t *testing.T)
reader_test.go:193
Function
TestDecodeIgnoreAlphaFlagSearchChunk
(t *testing.T)
reader_test.go:251
Function
TestEncode
(t *testing.T)
writer_test.go:83
Function
TestEncodeAll
(t *testing.T)
writer_test.go:421
Function
TestEncodeAllErrors
(t *testing.T)
writer_test.go:373
Function
TestEncodeErrors
(t *testing.T)
writer_test.go:50
Function
TestEncodeImageData
(t *testing.T)
writer_test.go:2405
Function
TestFlatten
(t *testing.T)
writer_test.go:2781
Function
TestGetHistoBits
(t *testing.T)
writer_test.go:2753
Function
TestGetMethodLevel
(t *testing.T)
writer_test.go:2711
Function
TestGetTransformBits
(t *testing.T)
writer_test.go:2730
Function
TestHash
(t *testing.T)
writer_test.go:2562
Function
TestImageDecodeRegistration
(t *testing.T)
reader_test.go:21
Function
TestPrefixEncodeBits
(t *testing.T)
writer_test.go:2522
Function
TestPrefixEncodeCode
(t *testing.T)
writer_test.go:2453
Function
TestSetBitDepths
(t *testing.T)
huffman_test.go:172
Function
TestWritBitStreamErrors
(t *testing.T)
writer_test.go:1567
Function
TestWriteBitStream
(t *testing.T)
writer_test.go:1602
Function
TestWriteBitStreamData
(t *testing.T)
writer_test.go:1931
Function
TestWriteBitStreamDataErrors
(t *testing.T)
writer_test.go:1885
Function
TestWriteBitStreamHeader
(t *testing.T)
writer_test.go:1514
Function
TestWriteBits
(t *testing.T)
bitwriter_test.go:14
Function
TestWriteBytes
(t *testing.T)
bitwriter_test.go:82
Function
TestWriteChunkVP8X
(t *testing.T)
writer_test.go:952
Function
TestWriteCode
(t *testing.T)
bitwriter_test.go:123
Function
TestWriteFrames
(t *testing.T)
writer_test.go:1090
Function
TestWriteFramesErrors
(t *testing.T)
writer_test.go:1022
Function
TestWriteImageData
(t *testing.T)
writer_test.go:2311
Function
TestWriteThrough
(t *testing.T)
bitwriter_test.go:173
Function
TestWritehuffmanCodes
(t *testing.T)
huffman_test.go:262
Function
init
registers the webp decoder so image.Decode can detect and use it.
reader.go:21