mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
1cf3cae5e1
Add an element that converts AYUV video frames to a DVB subpicture stream. It's fairly simple for now. Later it would be good to support input via a stream that contains only GstVideoOverlayComposition meta. The element searches each input video frame for the largest sub-region containing non-transparent pixels and encodes that as a single DVB subpicture region. It can also do palette reduction of the input frames using code taken from libimagequant. There are various FIXME for potential improvements for now, but it works. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1227>
8 lines
355 B
C
8 lines
355 B
C
//
|
|
// nearest.h
|
|
// pngquant
|
|
//
|
|
struct nearest_map;
|
|
LIQ_PRIVATE struct nearest_map *nearest_init(const colormap *palette, const bool fast);
|
|
LIQ_PRIVATE unsigned int nearest_search(const struct nearest_map *map, const f_pixel px, const int palette_index_guess, const float min_opaque, float *diff);
|
|
LIQ_PRIVATE void nearest_free(struct nearest_map *map);
|