5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 18:40:25 +00:00
matterbridge/vendor/github.com/sizeofint/webpanimation
Benau 53cafa9f3d
Convert .tgs with go libraries (and cgo) (telegram) (#1569)
This commit adds support for go/cgo tgs conversion when building with the -tags `cgo`
The default binaries are still "pure" go and uses the old way of converting.

* Move lottie_convert.py conversion code to its own file

* Add optional libtgsconverter

* Update vendor

* Apply suggestions from code review

* Update bridge/helper/libtgsconverter.go

Co-authored-by: Wim <wim@42.be>
2021-08-24 22:32:50 +02:00
..
.gitignore Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
capi.go Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
config.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_alpha_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_alphai_dec.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_buffer_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_common_dec.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_frame_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_idec_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_io_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_quant_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_tree_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_vp8_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_vp8_dec.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_vp8i_dec.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_vp8l_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_vp8li_dec.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_webp_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dec_webpi_dec.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
demux_anim_decode.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
demux_demux.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_alpha_processing_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_alpha_processing_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_alpha_processing_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_alpha_processing_sse41.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_alpha_processing.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_common_sse2.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_common_sse41.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_cost_mips32.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_cost_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_cost_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_cost_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_cost.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_cpu.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec_clip_tables.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec_mips32.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec_msa.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec_sse41.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dec.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_dsp.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_enc_mips32.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_enc_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_enc_msa.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_enc_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_enc_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_enc_sse41.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_filters_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_filters_msa.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_filters_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_filters_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_filters.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_common.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_enc_mips32.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_enc_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_enc_msa.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_enc_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_enc_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_enc_sse41.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_msa.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_lossless.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_mips_macro.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_msa_macro.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_neon.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_quant.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_rescaler_mips32.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_rescaler_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_rescaler_msa.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_rescaler_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_rescaler_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_rescaler.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_ssim_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_ssim.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_upsampling_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_upsampling_msa.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_upsampling_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_upsampling_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_upsampling_sse41.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_upsampling.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_yuv_mips32.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_yuv_mips_dsp_r2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_yuv_neon.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_yuv_sse2.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_yuv_sse41.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_yuv.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
dsp_yuv.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_alpha_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_analysis_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_backward_references_cost_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_backward_references_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_backward_references_enc.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_config_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_cost_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_cost_enc.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_filter_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_frame_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_histogram_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_histogram_enc.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_iterator_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_near_lossless_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_picture_csp_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_picture_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_picture_psnr_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_picture_rescale_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_picture_tools_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_predictor_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_quant_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_syntax_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_token_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_tree_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_vp8i_enc.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_vp8l_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_vp8li_enc.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
enc_webp_enc.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
generate_from_libwebp.py Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
go.mod Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
LICENSE Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
mux_anim_encode.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
mux_animi.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
mux_muxedit.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
mux_muxi.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
mux_muxinternal.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
mux_muxread.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
readme.md Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_bit_reader_inl_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_bit_reader_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_bit_reader_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_bit_writer_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_bit_writer_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_color_cache_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_color_cache_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_endian_inl_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_filters_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_filters_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_huffman_encode_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_huffman_encode_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_huffman_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_huffman_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_quant_levels_dec_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_quant_levels_dec_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_quant_levels_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_quant_levels_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_random_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_random_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_rescaler_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_rescaler_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_thread_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_thread_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_utils.c Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
utils_utils.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webp_decode.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webp_demux.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webp_encode.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webp_format_constants.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webp_mux_types.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webp_mux.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webp_types.h Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00
webpanimation.go Convert .tgs with go libraries (and cgo) (telegram) (#1569) 2021-08-24 22:32:50 +02:00

webpanimation

Packge is binding to libwebp providing methods to create webp animations from golang image.Image interface

Installing

go get github.com/sizeofint/webpanimation

Examples

Check out examples folder

Dependencies

The only dependency is libwebp, it source code are embeded in package so no additional installations are needed on machine. It can be updated to latest libwebp via ./generate_from_libwebp.py /path/to/clean/libwebp/src/