Re: [FFmpeg-devel] [PATCH 1/2] avutil/timer: define macos kperf as AV_READ_TIME

2024-06-17 Thread Martin Storsjö
On Mon, 17 Jun 2024, Zhao Zhili wrote: On Jun 17, 2024, at 19:15, Martin Storsjö wrote: On Wed, 12 Jun 2024, Zhao Zhili wrote: From: Zhao Zhili Firstly, make ff_kperf_cycles as an implementation of AV_READ_TIME avoids code duplication. Secondly, fix compilation error since 6a18c0bc87e

Re: [FFmpeg-devel] [PATCH 1/2] avutil/timer: define macos kperf as AV_READ_TIME

2024-06-17 Thread Zhao Zhili
> On Jun 17, 2024, at 19:15, Martin Storsjö wrote: > > On Wed, 12 Jun 2024, Zhao Zhili wrote: > >> From: Zhao Zhili >> >> Firstly, make ff_kperf_cycles as an implementation of AV_READ_TIME >> avoids code duplication. >> >> Secondly, fix compilation error since 6a18c0bc87e when macos-kperf >

Re: [FFmpeg-devel] [PATCH 1/2] avutil/timer: define macos kperf as AV_READ_TIME

2024-06-17 Thread Martin Storsjö
On Mon, 17 Jun 2024, Martin Storsjö wrote: On Wed, 12 Jun 2024, Zhao Zhili wrote: From: Zhao Zhili Firstly, make ff_kperf_cycles as an implementation of AV_READ_TIME avoids code duplication. Secondly, fix compilation error since 6a18c0bc87e when macos-kperf is enabled. mach_time.h is includ

Re: [FFmpeg-devel] [PATCH 1/2] avutil/timer: define macos kperf as AV_READ_TIME

2024-06-17 Thread Martin Storsjö
On Wed, 12 Jun 2024, Zhao Zhili wrote: From: Zhao Zhili Firstly, make ff_kperf_cycles as an implementation of AV_READ_TIME avoids code duplication. Secondly, fix compilation error since 6a18c0bc87e when macos-kperf is enabled. mach_time.h is included only when CONFIG_MACOS_KPERF is 0. The err

Re: [FFmpeg-devel] [PATCH 1/2] avutil/timer: define macos kperf as AV_READ_TIME

2024-06-15 Thread Zhao Zhili
> On Jun 12, 2024, at 23:22, Zhao Zhili wrote: > > From: Zhao Zhili > > Firstly, make ff_kperf_cycles as an implementation of AV_READ_TIME > avoids code duplication. > > Secondly, fix compilation error since 6a18c0bc87e when macos-kperf > is enabled. mach_time.h is included only when CONFIG

[FFmpeg-devel] [PATCH 1/2] avutil/timer: define macos kperf as AV_READ_TIME

2024-06-12 Thread Zhao Zhili
From: Zhao Zhili Firstly, make ff_kperf_cycles as an implementation of AV_READ_TIME avoids code duplication. Secondly, fix compilation error since 6a18c0bc87e when macos-kperf is enabled. mach_time.h is included only when CONFIG_MACOS_KPERF is 0. The error happened due to define mach_absolute_ti