bootanimation: Use 256 colors

And remove unused mkdir rules

Change-Id: Ic6df2c46938c7ecc0bd8a80712b38b57ff15d7c9
This commit is contained in:
Luca Stefani 2024-02-14 23:44:31 +01:00 committed by Łukasz Patron
parent a82e9332a4
commit 74db3872b3

View file

@ -34,10 +34,7 @@ $(TARGET_GENERATED_BOOTANIMATION): $(SOONG_ZIP)
fi; \
IMAGEHEIGHT=$$(expr $$IMAGEWIDTH / 3); \
RESOLUTION="$$IMAGEWIDTH"x"$$IMAGEHEIGHT"; \
for part_cnt in 0 1 2; do \
mkdir -p $(INTERMEDIATES)/part$$part_cnt; \
done; \
prebuilts/tools-lineage/${HOST_OS}-x86/bin/mogrify -resize $$RESOLUTION -colors 250 $(INTERMEDIATES)/*/*.png; \
prebuilts/tools-lineage/${HOST_OS}-x86/bin/mogrify -resize $$RESOLUTION -colors 256 $(INTERMEDIATES)/*/*.png; \
echo "$$IMAGESCALEWIDTH $$IMAGESCALEHEIGHT 60" > $(INTERMEDIATES)/desc.txt; \
cat vendor/lineage/bootanimation/desc.txt >> $(INTERMEDIATES)/desc.txt
$(hide) $(SOONG_ZIP) -L 0 -o $@ -C $(INTERMEDIATES) -D $(INTERMEDIATES)