Subject | Hash | Author | Date (UTC) |
---|---|---|---|
npv/npa: add gcc4 atomic support | d9676b20984dcbfd8df4afbf85178c8ff4295e4f | Sylvain BERTRAND | 2021-06-18 15:04:01 |
npv: better reuse of ffmpeg references, stats | 4bb1b9ab45609f8e5113cc7613ebc1d09499561b | Sylvain BERTRAND | 2021-05-20 18:24:32 |
npv: avoid stale frames | fb20683b7cb91622b639b05e8b324d13edc72522 | Sylvain BERTRAND | 2021-05-16 20:51:34 |
npv: inverted resync logic and rate limiter | 9e772be0d5e19dc4dcef05ee2b4ce47c42788f8e | Sylvain BERTRAND | 2021-05-16 18:06:23 |
npv:trying to work around nasty live streams | 544ddd3381ad56363bb275ae59419e97e8c86895 | Sylvain BERTRAND | 2021-05-14 15:45:19 |
npv:spurious braces | e8678920198c6795420c54a839b92e5d301b4183 | Sylvain BERTRAND | 2021-05-06 20:55:38 |
npv:pts debug tracing, ffmpeg dev tantrum | 8c3bf9cf42fc3419b64c232f905c5c580d6a1942 | Sylvain BERTRAND | 2021-05-06 18:37:35 |
npa: forgot zero-ing before cmp | ceff7a70798b604bdb876a92ba0c446e3ede8a5b | Sylvain BERTRAND | 2021-04-15 20:15:07 |
npv: namespace love | cb385e293aeb094073963c46022f3c430b6bf9c1 | Sylvain BERTRAND | 2021-01-16 18:37:11 |
conservative handling of vulkan linear filtering | 7736b342c3566ac3ffa7a83ff1c7985e5595265f | Sylvain BERTRAND | 2021-01-15 18:18:02 |
npv: spurious AND faulty image creation flag | e7d0d4e9efa15781b323cd092989bc0b95331875 | Sylvain BERTRAND | 2021-01-15 02:01:16 |
npa: buffering | 9b2ec327646a289dae3e4cbb31b4857bf612d7e2 | Sylvain BERTRAND | 2020-11-06 17:20:56 |
npa: tons of love | 68a79110ca4a6f5bdb41ed90e421b6f46c1c1877 | Sylvain BERTRAND | 2020-11-06 15:20:13 |
npv: spurious unsigned | 5b4e039ffd921438a37112f0b4108480366f4d6d | Sylvain BERTRAND | 2020-11-06 04:31:18 |
npv: backward discontinuity handling | 0fc81a53996993992dd86a96a26afd2aab0ac366 | Sylvain BERTRAND | 2020-09-25 16:14:26 |
npv: more monotonic, more pts discontinuity | 1ab37ad2a24ca8f9fbf6d51eac8f996bd2eefacf | Sylvain BERTRAND | 2020-09-25 01:34:41 |
npv: workaround a mesa bug (which leads to linux state corruption) | 780e5bec0b90a9e931778cf68fec62a7c5241c13 | Sylvain BERTRAND | 2020-09-23 15:57:25 |
npv: fix filter time base handling, prepare discontinuity support | 2b7347be805d17a2b6f06e276e897c51431b9c6c | Sylvain BERTRAND | 2020-09-22 17:38:46 |
npv: correct coarse sync of vulkan image acquisition | a9b52940ff2d567dc6c26b28d86eab54f5876819 | Sylvain BERTRAND | 2020-09-20 22:00:32 |
npv: fix channel layout handling and a tad more | 88f74f181a567d108874a936fe3d306d34cfefb7 | Sylvain BERTRAND | 2020-09-19 23:12:04 |
File | Lines added | Lines deleted |
---|---|---|
npa/npa.c | 23 | 3 |
npv/c_fixing.h | 32 | 7 |
npv/thdsws/main.c | 3 | 1 |
File npa/npa.c changed (mode: 100644) (index 815cddf..ddd846a) | |||
83 | 83 | #include <termios.h> | #include <termios.h> |
84 | 84 | #include <stdint.h> | #include <stdint.h> |
85 | 85 | #include <fcntl.h> | #include <fcntl.h> |
86 | #include <stdatomic.h> | ||
86 | #if __GNUC__ > 4 | ||
87 | #include <stdatomic.h> | ||
88 | #endif | ||
87 | 89 | #include <limits.h> | #include <limits.h> |
88 | 90 | #include <time.h> | #include <time.h> |
89 | 91 | #include <stdarg.h> | #include <stdarg.h> |
111 | 113 | #define f32 float | #define f32 float |
112 | 114 | #define loop for(;;) | #define loop for(;;) |
113 | 115 | #if UCHAR_WIDTH == 8 | #if UCHAR_WIDTH == 8 |
114 | #define atomic_u8 atomic_uchar | ||
116 | #if __GNUC__ > 4 | ||
117 | #define atomic_u8 atomic_uchar | ||
118 | #else | ||
119 | #define atomic_u8 u8 | ||
120 | #define atomic_uint unsigned int | ||
121 | #define atomic_int int | ||
122 | #define atomic_load(x) __atomic_load_n(x,__ATOMIC_SEQ_CST) | ||
123 | #define atomic_store(x,y) __atomic_store_n(x,y,__ATOMIC_SEQ_CST) | ||
124 | #endif | ||
115 | 125 | #else | #else |
116 | #error "unable to find the right atomic for a 8 bits byte, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" | ||
126 | #error "unable to find the right atomic for a 8 bits byte, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined on recent gcc" | ||
117 | 127 | #endif | #endif |
118 | 128 | /* fix C -- END */ | /* fix C -- END */ |
119 | 129 | /*----------------------------------------------------------------------------*/ | /*----------------------------------------------------------------------------*/ |
... | ... | int main(int argc, u8 **args) | |
2886 | 2896 | #undef st_idx | #undef st_idx |
2887 | 2897 | #undef sts | #undef sts |
2888 | 2898 | /*----------------------------------------------------------------------------*/ | /*----------------------------------------------------------------------------*/ |
2899 | #if __GNUC__ > 4 | ||
2900 | #undef atomic_u8 | ||
2901 | #else | ||
2902 | #undef atomic_u8 | ||
2903 | #undef atomic_uint | ||
2904 | #undef atomic_int | ||
2905 | #undef atomic_load | ||
2906 | #undef atomic_store | ||
2907 | #endif | ||
2908 | /*----------------------------------------------------------------------------*/ | ||
2889 | 2909 | #undef ARRAY_N | #undef ARRAY_N |
2890 | 2910 | #undef esc_seq_sz | #undef esc_seq_sz |
2891 | 2911 | #undef f32 | #undef f32 |
File npv/c_fixing.h changed (mode: 100644) (index 9516575..70e719c) | |||
6 | 6 | */ | */ |
7 | 7 | #include <stdint.h> | #include <stdint.h> |
8 | 8 | #include <limits.h> | #include <limits.h> |
9 | #include <stdatomic.h> | ||
10 | |||
9 | #if __GNUC__ > 4 | ||
10 | #include <stdatomic.h> | ||
11 | #endif | ||
11 | 12 | #define u8 uint8_t | #define u8 uint8_t |
12 | 13 | #define U8_MAX 0xff | #define U8_MAX 0xff |
13 | 14 | #define s8 int8_t | #define s8 int8_t |
26 | 27 | #define f64 double | #define f64 double |
27 | 28 | ||
28 | 29 | #if UCHAR_WIDTH == 8 | #if UCHAR_WIDTH == 8 |
29 | #define atomic_u8 atomic_uchar | ||
30 | #if __GNUC__ > 4 | ||
31 | #define atomic_u8 atomic_uchar | ||
32 | #else | ||
33 | #define atomic_u8 u8 | ||
34 | #endif | ||
30 | 35 | #else | #else |
31 | 36 | #error "unable to find the right atomic for a 8 bits byte, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" | #error "unable to find the right atomic for a 8 bits byte, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" |
32 | 37 | #endif | #endif |
33 | 38 | #if SHRT_WIDTH == 16 | #if SHRT_WIDTH == 16 |
34 | #define atomic_u16 atomic_ushort | ||
39 | #if __GNUC__ > 4 | ||
40 | #define atomic_u16 atomic_ushort | ||
41 | #else | ||
42 | #define atomic_u16 u16 | ||
43 | #endif | ||
35 | 44 | #else | #else |
36 | 45 | #error "unable to find the right atomic for an unsigned 16 bits word, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" | #error "unable to find the right atomic for an unsigned 16 bits word, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" |
37 | 46 | #endif | #endif |
38 | 47 | #if UINT_WIDTH == 32 | #if UINT_WIDTH == 32 |
39 | #define atomic_u32 atomic_uint | ||
48 | #if __GNUC__ > 4 | ||
49 | #define atomic_u32 atomic_uint | ||
50 | #else | ||
51 | #define atomic_u32 u32 | ||
52 | #endif | ||
40 | 53 | #elif ULONG_WIDTH == 32 | #elif ULONG_WIDTH == 32 |
41 | #define atomic_u32 atomic_ulong | ||
54 | #if __GNUC__ > 4 | ||
55 | #define atomic_u32 atomic_ulong | ||
56 | #else | ||
57 | #define atomic_u32 u32 | ||
58 | #endif | ||
42 | 59 | #else | #else |
43 | 60 | #error "unable to select the right atomic for an unsigned 32 bits word, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" | #error "unable to select the right atomic for an unsigned 32 bits word, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" |
44 | 61 | #endif | #endif |
45 | 62 | #if LONG_WIDTH == 64 | #if LONG_WIDTH == 64 |
46 | #define atomic_s64 atomic_long | ||
63 | #if __GNUC__ > 4 | ||
64 | #define atomic_s64 atomic_long | ||
65 | #else | ||
66 | #define atomic_s64 s64 | ||
67 | #endif | ||
47 | 68 | #else | #else |
48 | 69 | #error "unable to select the right atomic for a 64 bits signed word, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" | #error "unable to select the right atomic for a 64 bits signed word, be sure to have __STDC_WANT_IEC_60559_BFP_EXT__ defined" |
49 | 70 | #endif | #endif |
71 | #if __GNUC__ <= 4 | ||
72 | #define atomic_load(x) __atomic_load_n(x,__ATOMIC_SEQ_CST) | ||
73 | #define atomic_store(x,y) __atomic_store_n(x,y,__ATOMIC_SEQ_CST) | ||
74 | #endif | ||
50 | 75 | ||
51 | 76 | #define loop for(;;) | #define loop for(;;) |
52 | 77 | /* | /* |
File npv/thdsws/main.c changed (mode: 100644) (index fee6e13..844db42) | |||
9 | 9 | #include <signal.h> | #include <signal.h> |
10 | 10 | #include <pthread.h> | #include <pthread.h> |
11 | 11 | #include <errno.h> | #include <errno.h> |
12 | #include <stdatomic.h> | ||
12 | #if __GNUC__ > 4 | ||
13 | #include <stdatomic.h> | ||
14 | #endif | ||
13 | 15 | #include <unistd.h> | #include <unistd.h> |
14 | 16 | #include <time.h> | #include <time.h> |
15 | 17 | #include "npv/c_fixing.h" | #include "npv/c_fixing.h" |