mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
sws: do not reallocate scratch buffers for each slice
This commit is contained in:
parent
2730639259
commit
0f8e0957d2
3 changed files with 27 additions and 8 deletions
|
|
@ -626,6 +626,18 @@ typedef struct SwsContext {
|
|||
SwsDither dither;
|
||||
|
||||
SwsAlphaBlend alphablend;
|
||||
|
||||
// scratch buffer for converting packed rgb0 sources
|
||||
// filled with a copy of the input frame + fully opaque alpha,
|
||||
// then passed as input to further conversion
|
||||
uint8_t *rgb0_scratch;
|
||||
unsigned int rgb0_scratch_allocated;
|
||||
|
||||
// scratch buffer for converting XYZ sources
|
||||
// filled with the input converted to rgb48
|
||||
// then passed as input to further conversion
|
||||
uint8_t *xyz_scratch;
|
||||
unsigned int xyz_scratch_allocated;
|
||||
} SwsContext;
|
||||
//FIXME check init (where 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue