[FFmpeg-devel] [RFC] use av_get_cpu_flags for real runtime CPU detection in swscale

Måns Rullgård mans
Wed Sep 8 23:59:49 CEST 2010


Michael Niedermayer <michaelni at gmx.at> writes:

> update_flags_cpu() is called on each sws_getCachedContext() and
> redoing cpu detect on each such calls seems hackish

We could make av_get_cpu_flags() cache the result and do the full
detection only once.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list