OverlayEffect using Paint.ANTI_ALIAS_FLAG does not work

63 views
Skip to first unread message

Đặng Nam

unread,
Jul 29, 2024, 5:00:53 AMJul 29
to Android CameraX Discussion Group
I used Paint.ANTI_ALIAS_FLAG to draw but both the Preview and the output Video are still not anti-aliased. Is there any way to fix this problem?

Xi Zhang (张熹)

unread,
Aug 13, 2024, 10:58:15 AMAug 13
to Đặng Nam, Android CameraX Discussion Group
Could you provide example images with the aliasing problem?

On Mon, Jul 29, 2024 at 2:00 AM Đặng Nam <dangn...@gmail.com> wrote:
I used Paint.ANTI_ALIAS_FLAG to draw but both the Preview and the output Video are still not anti-aliased. Is there any way to fix this problem?

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/48ce8d05-b69a-44f9-9941-4a1419d62c88n%40android.com.

Đặng Nam

unread,
Aug 13, 2024, 10:18:44 PMAug 13
to Android CameraX Discussion Group, xi...@google.com, Android CameraX Discussion Group, Đặng Nam
The camerax version I use is '1.4.0-rc01' on pixel 4
Screenshot_20240814-091234.png

Vào lúc 21:58:15 UTC+7 ngày Thứ Ba, 13 tháng 8, 2024, xi...@google.com đã viết:

Xi Zhang (张熹)

unread,
Aug 14, 2024, 12:42:04 PMAug 14
to Đặng Nam, Android CameraX Discussion Group
Thank you for reporting the issue. I can now reproduce it locally. Unfortunately, I think the issue comes from the Surface.lockCanvas() API, which the current OverlayEffect is based on. I don't think there is a good way to fix it.
Reply all
Reply to author
Forward
0 new messages