Change #254111
| Category | ffmpeg |
| Changed by | Ayose <ayosec@gmail.com> |
| Changed at | Sun 04 Jan 2026 14:42:20 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | c7a2646bc772b642167d9d2af3673fd50ae20015 |
Comments
avfilter/vf_drawvg: values from the p() function can be used as colors.
To be able to reuse colors from the original frame, the last value returned by
`p()` is tracked in the eval state, and if it is assigned to a variable, the
original color components are copied to `color_vars`. Thus, commands like
`setcolor` and `colorstop` can use those variables:
setvar pixel (p(0, 0))
...
setcolor pixel
`fate-filter-drawvg-video` now also verifies the `p()` function.
Signed-off-by: Ayose <ayosec@gmail.com>
Changed files
- libavfilter/vf_drawvg.c
- tests/fate/filter-video.mak
- tests/ref/fate/filter-drawvg-video
- tests/ref/lavf/drawvg.lines
- tests/ref/lavf/drawvg.video