avcodec/avcodec: Don't include cpu.h

It is not used here at all; instead, add it where it is used without
including it or any of the arch-specific CPU headers.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-06-12 22:10:11 +02:00
parent cea34b9172
commit 69f120ead7
21 changed files with 20 additions and 1 deletions

View File

@ -31,7 +31,6 @@
#include "libavutil/attributes.h"
#include "libavutil/avutil.h"
#include "libavutil/buffer.h"
#include "libavutil/cpu.h"
#include "libavutil/dict.h"
#include "libavutil/frame.h"
#include "libavutil/log.h"

View File

@ -23,6 +23,7 @@
#include "frame_thread_encoder.h"
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/thread.h"

View File

@ -27,6 +27,7 @@
#include <aom/aomdx.h>
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"

View File

@ -30,6 +30,7 @@
#include "libavutil/avassert.h"
#include "libavutil/base64.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"

View File

@ -22,6 +22,7 @@
#include <dav1d/dav1d.h>
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/film_grain_params.h"
#include "libavutil/mastering_display_metadata.h"
#include "libavutil/imgutils.h"

View File

@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/cpu.h"
#include "avcodec.h"
#include "internal.h"
#include "davs2.h"

View File

@ -24,6 +24,7 @@
#include "libavutil/avassert.h"
#include "libavutil/avutil.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"

View File

@ -29,6 +29,7 @@
#include <vpx/vp8dx.h>
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"

View File

@ -38,6 +38,7 @@
#include "libavutil/avstring.h"
#include "libavutil/base64.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"

View File

@ -18,6 +18,7 @@
#include "config.h"
#include "libavutil/cpu.h"
#include "libavcodec/aarch64/idct.h"
static const struct algo fdct_tab_arch[] = {

View File

@ -18,6 +18,7 @@
#include "config.h"
#include "libavutil/cpu.h"
#include "libavcodec/arm/idct.h"
static const struct algo fdct_tab_arch[] = {

View File

@ -29,6 +29,7 @@
#include "config.h"
#include "libavcodec/me_cmp.h"
#include "libavutil/cpu.h"
#include "libavutil/internal.h"
#include "libavutil/lfg.h"
#include "libavutil/mem.h"

View File

@ -18,6 +18,7 @@
#include "config.h"
#include "libavutil/cpu.h"
#include "libavcodec/ppc/fdct.h"
static const struct algo fdct_tab_arch[] = {

View File

@ -18,6 +18,7 @@
#include "config.h"
#include "libavutil/cpu.h"
#include "libavutil/mem_internal.h"
#include "libavcodec/x86/fdct.h"

View File

@ -27,6 +27,7 @@
#include "dnn_io_proc.h"
#include "libavformat/avio.h"
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/opt.h"
#include "libavutil/avstring.h"
#include "libavutil/detection_bbox.h"

View File

@ -30,6 +30,7 @@
#include "libavformat/avio.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/cpu.h"
#include "../internal.h"
#include "dnn_backend_native_layer_pad.h"
#include "dnn_backend_native_layer_maximum.h"

View File

@ -20,6 +20,7 @@
#include "avassert.h"
#include "buffer.h"
#include "common.h"
#include "cpu.h"
#include "dict.h"
#include "frame.h"
#include "imgutils.h"

View File

@ -17,6 +17,7 @@
*/
#include <stdatomic.h>
#include "cpu.h"
#include "slicethread.h"
#include "mem.h"
#include "thread.h"

View File

@ -76,6 +76,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
#include "config.h"
#include "libavutil/avutil.h"
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/intreadwrite.h"
#include <inttypes.h>
#include <stdio.h>

View File

@ -27,6 +27,7 @@
*/
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "resample.h"
static inline double eval_poly(const double *coeff, int size, double x) {

View File

@ -47,6 +47,7 @@
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"