ffmpeg: update hevc patch with turbo fix

This commit is contained in:
MilhouseVH 2017-03-21 21:56:30 +00:00
parent 7bdafac236
commit 241b089dbd

View File

@ -11559,10 +11559,10 @@ index 0000000..5898102
+#endif +#endif
diff --git a/libavcodec/rpi_qpu.c b/libavcodec/rpi_qpu.c diff --git a/libavcodec/rpi_qpu.c b/libavcodec/rpi_qpu.c
new file mode 100644 new file mode 100644
index 0000000..a01c051 index 0000000..365f4a6
--- /dev/null --- /dev/null
+++ b/libavcodec/rpi_qpu.c +++ b/libavcodec/rpi_qpu.c
@@ -0,0 +1,991 @@ @@ -0,0 +1,993 @@
+#ifdef RPI +#ifdef RPI
+// Use vchiq service for submitting jobs +// Use vchiq service for submitting jobs
+#define GPUSERVICE +#define GPUSERVICE
@ -11707,6 +11707,7 @@ index 0000000..a01c051
+ if (qpu_enable(mb, 1)) return -2; + if (qpu_enable(mb, 1)) return -2;
+#endif +#endif
+ vcsm_init(); + vcsm_init();
+ vc_gpuserv_init();
+ gpu_malloc_uncached_internal(sizeof(struct GPU), &gpu_mem_ptr, mb); + gpu_malloc_uncached_internal(sizeof(struct GPU), &gpu_mem_ptr, mb);
+ ptr = (volatile struct GPU*)gpu_mem_ptr.arm; + ptr = (volatile struct GPU*)gpu_mem_ptr.arm;
+ memset((void*)ptr, 0, sizeof *ptr); + memset((void*)ptr, 0, sizeof *ptr);
@ -11941,6 +11942,7 @@ index 0000000..a01c051
+ qpu_enable(mb, 0); + qpu_enable(mb, 0);
+ gpu_free_internal(&gpu_mem_ptr); + gpu_free_internal(&gpu_mem_ptr);
+ +
+ vc_gpuserv_deinit();
+ vcsm_exit(); + vcsm_exit();
+ +
+ mbox_close(mb); + mbox_close(mb);
@ -18552,4 +18554,3 @@ index 0000000..d8bdd91
+pi-util/rebase_liblinks.py $DST +pi-util/rebase_liblinks.py $DST
+ +
+ +