diff --git a/Android.mk b/Android.mk index 0f40b4f..387b694 100644 --- a/Android.mk +++ b/Android.mk @@ -167,10 +167,12 @@ LOCAL_REQUIRED_MODULES := $2 include $$(BUILD_PREBUILT) endef -# vainfo -$(eval $(call define-redroid-prebuilt-bin,vainfo,$(va_libs))) +# vaapi +bins:=avcenc h264encode hevcencode jpegenc vp8enc vp9enc vainfo +$(foreach i,$(bins),\ + $(eval $(call define-redroid-prebuilt-bin,$(i),$(va_libs)))) -bins := ffmpeg ffprobe +# ffmpeg +bins:=ffmpeg ffprobe $(foreach i,$(bins),\ $(eval $(call define-redroid-prebuilt-bin,$(i),$(ffmpeg_libs)))) - diff --git a/prebuilts.mk b/prebuilts.mk index 871f80b..d692e5f 100644 --- a/prebuilts.mk +++ b/prebuilts.mk @@ -7,6 +7,9 @@ PRODUCT_PACKAGES += \ vulkan.virtio \ gralloc.cros \ gralloc.gbm \ - vainfo \ ffmpeg \ ffprobe \ + + +# vaapi +PRODUCT_PACKAGES += avcenc h264encode hevcencode jpegenc vp8enc vp9enc vainfo diff --git a/prebuilts/aarch64/bin/avcenc b/prebuilts/aarch64/bin/avcenc new file mode 100755 index 0000000..51e3566 Binary files /dev/null and b/prebuilts/aarch64/bin/avcenc differ diff --git a/prebuilts/aarch64/bin/h264encode b/prebuilts/aarch64/bin/h264encode new file mode 100755 index 0000000..a8f7ab0 Binary files /dev/null and b/prebuilts/aarch64/bin/h264encode differ diff --git a/prebuilts/aarch64/bin/hevcencode b/prebuilts/aarch64/bin/hevcencode new file mode 100755 index 0000000..296beb8 Binary files /dev/null and b/prebuilts/aarch64/bin/hevcencode differ diff --git a/prebuilts/aarch64/bin/jpegenc b/prebuilts/aarch64/bin/jpegenc new file mode 100755 index 0000000..818fa51 Binary files /dev/null and b/prebuilts/aarch64/bin/jpegenc differ diff --git a/prebuilts/aarch64/bin/vp8enc b/prebuilts/aarch64/bin/vp8enc new file mode 100755 index 0000000..6d3c19a Binary files /dev/null and b/prebuilts/aarch64/bin/vp8enc differ diff --git a/prebuilts/aarch64/bin/vp9enc b/prebuilts/aarch64/bin/vp9enc new file mode 100755 index 0000000..0bb3281 Binary files /dev/null and b/prebuilts/aarch64/bin/vp9enc differ diff --git a/prebuilts/x86_64/bin/avcenc b/prebuilts/x86_64/bin/avcenc new file mode 100755 index 0000000..4840f45 Binary files /dev/null and b/prebuilts/x86_64/bin/avcenc differ diff --git a/prebuilts/x86_64/bin/h264encode b/prebuilts/x86_64/bin/h264encode new file mode 100755 index 0000000..69eb124 Binary files /dev/null and b/prebuilts/x86_64/bin/h264encode differ diff --git a/prebuilts/x86_64/bin/hevcencode b/prebuilts/x86_64/bin/hevcencode new file mode 100755 index 0000000..61a6584 Binary files /dev/null and b/prebuilts/x86_64/bin/hevcencode differ diff --git a/prebuilts/x86_64/bin/jpegenc b/prebuilts/x86_64/bin/jpegenc new file mode 100755 index 0000000..91e3c75 Binary files /dev/null and b/prebuilts/x86_64/bin/jpegenc differ diff --git a/prebuilts/x86_64/bin/vp8enc b/prebuilts/x86_64/bin/vp8enc new file mode 100755 index 0000000..8df6513 Binary files /dev/null and b/prebuilts/x86_64/bin/vp8enc differ diff --git a/prebuilts/x86_64/bin/vp9enc b/prebuilts/x86_64/bin/vp9enc new file mode 100755 index 0000000..750c6b4 Binary files /dev/null and b/prebuilts/x86_64/bin/vp9enc differ