From 837c8530caa796e6eed21b9b8f4b897ad50d3632 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Wed, 19 Jun 2024 05:09:54 -0500 Subject: [PATCH] Create macos_kperf.h --- MobileFFmpeg/libavutil/macos_kperf.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 MobileFFmpeg/libavutil/macos_kperf.h diff --git a/MobileFFmpeg/libavutil/macos_kperf.h b/MobileFFmpeg/libavutil/macos_kperf.h new file mode 100644 index 00000000..d0396913 --- /dev/null +++ b/MobileFFmpeg/libavutil/macos_kperf.h @@ -0,0 +1,27 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with FFmpeg; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef AVUTIL_MACOS_KPERF_H +#define AVUTIL_MACOS_KPERF_H + +#include + +void ff_kperf_init(void); +uint64_t ff_kperf_cycles(void); + +#endif /* AVUTIL_MACOS_KPERF_H */