MCPcopy Create free account

hub / github.com/HugoSmits86/nativewebp / functions

Functions83 in github.com/HugoSmits86/nativewebp

↓ 51 callersMethodwriteBits
(value uint64, n int)
bitwriter.go:16
↓ 23 callersFunctiongenerateTestImageNRGBA
(width int, height int, brightness float64, hasAlpha bool)
writer_test.go:20
↓ 8 callersMethodLen
()
huffman.go:33
↓ 7 callersFunctionEncode
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 callersMethodwriteCode
(code huffmanCode)
bitwriter.go:36
↓ 6 callersFunctionhash
(c color.NRGBA, shifts int)
writer.go:566
↓ 5 callersFunctiongetMethodLevel
(lvl CompressionLevel)
writer.go:178
↓ 5 callersFunctionwriteImageData
(w *bitWriter, pixels []color.NRGBA, width, height int, isRecursive bool, colorBits int)
writer.go:385
↓ 4 callersFunctionflatten
(img image.Image)
writer.go:643
↓ 4 callersFunctionwriteBitStream
(img image.Image, method int)
writer.go:267
↓ 3 callersMethodPop
()
huffman.go:37
↓ 3 callersMethodPush
(x interface{})
huffman.go:36
↓ 3 callersFunctionapplyFilter
(pixels []color.NRGBA, width, x, y, prediction int)
transform.go:124
↓ 3 callersFunctionapplyPaletteTransform
(pixels *[]color.NRGBA, width, height int)
transform.go:268
↓ 3 callersFunctionbuildhuffmanCodes
(histo []int, maxDepth int)
huffman.go:90
↓ 3 callersFunctionprefixEncodeBits
(prefix int)
writer.go:558
↓ 3 callersFunctionprefixEncodeCode
(n int)
writer.go:539
↓ 3 callersFunctionwriteBitStreamData
(w *bitWriter, img image.Image, colorBits, histoBits, transBits int, transforms [4]bool)
writer.go:328
↓ 3 callersMethodwriteBytes
(values []byte)
bitwriter.go:30
↓ 3 callersFunctionwriteChunkVP8X
(buf *bytes.Buffer, bounds image.Rectangle, flagAlpha, flagAni bool)
writer.go:191
↓ 3 callersFunctionwriteFrames
(ani *Animation, method int)
writer.go:214
↓ 3 callersMethodwriteThrough
()
bitwriter.go:56
↓ 2 callersFunctionDecode
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 callersFunctionDecodeIgnoreAlphaFlag
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 callersFunctionEncodeAll
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 callersMethodalignByte
()
bitwriter.go:51
↓ 2 callersFunctionapplyColorTransform
(pixels []color.NRGBA, width, height, transBits int)
transform.go:213
↓ 2 callersFunctionapplyPredictTransform
(pixels []color.NRGBA, width, height, transBits int)
transform.go:29
↓ 2 callersFunctionapplySubtractGreenTransform
(pixels []color.NRGBA)
transform.go:261
↓ 2 callersFunctionbuildHuffmanTree
(histo []int, maxDepth int)
huffman.go:45
↓ 2 callersFunctioncomputeHistograms
(pixels []int, colorBits int)
writer.go:572
↓ 2 callersFunctionencodeImageData
(pixels []color.NRGBA, width, height, colorBits int)
writer.go:429
↓ 2 callersFunctiongetHistoBits
(method int, isIndexed bool, width, height int)
writer.go:613
↓ 2 callersFunctiongetTransformBits
(method, histoBits int)
writer.go:602
↓ 2 callersFunctionsetBitDepths
(node *node, codes *[]huffmanCode, level int)
huffman.go:125
↓ 2 callersFunctionwriteBitStreamHeader
(w *bitWriter, bounds image.Rectangle, hasAlpha bool)
writer.go:313
↓ 2 callersFunctionwritehuffmanCodes
(w *bitWriter, codes []huffmanCode)
huffman.go:143
↓ 1 callersFunctionDecodeConfig
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 callersFunctionwriteFullhuffmanCode
(w *bitWriter, codes []huffmanCode)
huffman.go:183
MethodLess
(i, j int)
huffman.go:34
MethodSwap
(i, j int)
huffman.go:35
FunctionTestAlignByte
(t *testing.T)
bitwriter_test.go:213
FunctionTestApplyColorTransform
(t *testing.T)
transform_test.go:174
FunctionTestApplyFilter
(t *testing.T)
transform_test.go:128
FunctionTestApplyPaletteTransform
(t *testing.T)
transform_test.go:328
FunctionTestApplyPredictTransform
(t *testing.T)
transform_test.go:19
FunctionTestApplySubtractGreenTransform
(t *testing.T)
transform_test.go:286
FunctionTestBuildHuffmanTree
(t *testing.T)
huffman_test.go:14
FunctionTestBuildhuffmanCodes
(t *testing.T)
huffman_test.go:119
FunctionTestComputeHistograms
(t *testing.T)
writer_test.go:2634
FunctionTestDecode
(t *testing.T)
reader_test.go:41
FunctionTestDecodeConfig
(t *testing.T)
reader_test.go:121
FunctionTestDecodeIgnoreAlphaFlag
(t *testing.T)
reader_test.go:193
FunctionTestDecodeIgnoreAlphaFlagSearchChunk
(t *testing.T)
reader_test.go:251
FunctionTestEncode
(t *testing.T)
writer_test.go:83
FunctionTestEncodeAll
(t *testing.T)
writer_test.go:421
FunctionTestEncodeAllErrors
(t *testing.T)
writer_test.go:373
FunctionTestEncodeErrors
(t *testing.T)
writer_test.go:50
FunctionTestEncodeImageData
(t *testing.T)
writer_test.go:2405
FunctionTestFlatten
(t *testing.T)
writer_test.go:2781
FunctionTestGetHistoBits
(t *testing.T)
writer_test.go:2753
FunctionTestGetMethodLevel
(t *testing.T)
writer_test.go:2711
FunctionTestGetTransformBits
(t *testing.T)
writer_test.go:2730
FunctionTestHash
(t *testing.T)
writer_test.go:2562
FunctionTestImageDecodeRegistration
(t *testing.T)
reader_test.go:21
FunctionTestPrefixEncodeBits
(t *testing.T)
writer_test.go:2522
FunctionTestPrefixEncodeCode
(t *testing.T)
writer_test.go:2453
FunctionTestSetBitDepths
(t *testing.T)
huffman_test.go:172
FunctionTestWritBitStreamErrors
(t *testing.T)
writer_test.go:1567
FunctionTestWriteBitStream
(t *testing.T)
writer_test.go:1602
FunctionTestWriteBitStreamData
(t *testing.T)
writer_test.go:1931
FunctionTestWriteBitStreamDataErrors
(t *testing.T)
writer_test.go:1885
FunctionTestWriteBitStreamHeader
(t *testing.T)
writer_test.go:1514
FunctionTestWriteBits
(t *testing.T)
bitwriter_test.go:14
FunctionTestWriteBytes
(t *testing.T)
bitwriter_test.go:82
FunctionTestWriteChunkVP8X
(t *testing.T)
writer_test.go:952
FunctionTestWriteCode
(t *testing.T)
bitwriter_test.go:123
FunctionTestWriteFrames
(t *testing.T)
writer_test.go:1090
FunctionTestWriteFramesErrors
(t *testing.T)
writer_test.go:1022
FunctionTestWriteImageData
(t *testing.T)
writer_test.go:2311
FunctionTestWriteThrough
(t *testing.T)
bitwriter_test.go:173
FunctionTestWritehuffmanCodes
(t *testing.T)
huffman_test.go:262
Functioninit
registers the webp decoder so image.Decode can detect and use it.
reader.go:21