On 27/02/13 23:46, Maxym Dmytrychenko wrote: > ok, if to move into qsv.c - will it be fine ? > if so, next patch will move lines: > > #ifdef HAVE_AV_CONFIG_H > #include "config.h" > #endif > > #if HAVE_THREADS > #if defined (__GNUC__) > #include <pthread.h> > #define ff_qsv_atomic_inc(ptr) __sync_add_and_fetch(ptr,1) > #define ff_qsv_atomic_dec(ptr) __sync_sub_and_fetch (ptr,1) > #elif HAVE_WINDOWS_H // MSVC case > #include <windows.h> > #if HAVE_PTHREADS > #include <pthread.h> > #elif HAVE_W32THREADS > #include "w32pthreads.h" > #endif > #define ff_qsv_atomic_inc(ptr) InterlockedIncrement(ptr) > #define ff_qsv_atomic_dec(ptr) InterlockedDecrement (ptr) > #else > // targeting only for MinGW or MSVC > #endif > > #else > #define ff_qsv_atomic_inc(ptr) ((*ptr)++) > #define ff_qsv_atomic_dec(ptr) ((*ptr)--) > #endif > > into qsv.c
Yes, once the evil plan lands it could be simplified btw. lu _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel