Add additional function PrefetchLastPicForThread and variables for better control of threaded decoding in the case of multi-slice with one slice group contains one slice.
Showing the changes to codec/decoder/core/src/wels_decoder_thread.cpp (1 of 9 files). Show all
Unified · Split
| @@ -57,6 +57,12 @@ · 56 unmodified lines | |||
| 57 | #define HW_NCPU_NAME "hw.ncpu" | 57 | #define HW_NCPU_NAME "hw.ncpu" |
| 58 | #endif | 58 | #endif |
| 59 | #endif | 59 | #endif |
| 60 | #ifdef ANDROID_NDK | ||
| 61 | #include <cpu-features.h> | ||
| 62 | #endif | ||
| 63 | #ifdef __ANDROID__ | ||
| 64 | #include <android/api-level.h> | ||
| 65 | #endif | ||
| 60 | 66 | ||
| 61 | #include "wels_decoder_thread.h" | 67 | #include "wels_decoder_thread.h" |
| 62 | #include <stdio.h> | 68 | #include <stdio.h> |