Nevertheless i want to describe here an issue that seems to be bound just to the android emulator. The example images attached to the post are captured using the code from the references bug-report but from emulator.
```
./sdkmanager --list
Installed packages:=====================] 100% Computing updates...
Path | Version | Description | Location
------- | ------- | ------- | -------
build-tools;29.0.3 | 29.0.3 | Android SDK Build-Tools 29.0.3 | build-tools/29.0.3
build-tools;30.0.2 | 30.0.2 | Android SDK Build-Tools 30.0.2 | build-tools/30.0.2
build-tools;30.0.3 | 30.0.3 | Android SDK Build-Tools 30.0.3 | build-tools/30.0.3
build-tools;31.0.0 | 31.0.0 | Android SDK Build-Tools 31 | build-tools/31.0.0
build-tools;32.0.0 | 32.0.0 | Android SDK Build-Tools 32 | build-tools/32.0.0
build-tools;33.0.0 | 33.0.0 | Android SDK Build-Tools 33 | build-tools/33.0.0
build-tools;33.0.1 | 33.0.1 | Android SDK Build-Tools 33.0.1 | build-tools/33.0.1
emulator | 31.3.13 | Android Emulator | emulator
ndk;25.1.8937393 | 25.1.8937393 | NDK (Side by side) 25.1.8937393 | ndk/25.1.8937393
patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4
platform-tools | 33.0.3 | Android SDK Platform-Tools | platform-tools
platforms;android-29 | 5 | Android SDK Platform 29 | platforms/android-29
platforms;android-31 | 1 | Android SDK Platform 31 | platforms/android-31
platforms;android-32 | 1 | Android SDK Platform 32 | platforms/android-32
platforms;android-33 | 2 | Android SDK Platform 33 | platforms/android-33
sources;android-33 | 1 | Sources for Android 33 | sources/android-33
system-images;android-30;google_apis_playstore;x86 | 9 | Google Play Intel x86 Atom System Image | system-images/android-30/google_apis_playstore/x86
system-images;android-30;google_apis_playstore;x86_64 | 10 | Google Play Intel x86 Atom_64 System Image | system-images/android-30/google_apis_playstore/x86_64
```
The emulator device was created using this call:
```
yes | /opt/android-sdk/cmdline-tools/latest/bin/avdmanager create avd -n x86_64-device -k "system-images;android-30;google_apis_playstore;x86_64" -b x86_64 -c 100M --device "Nexus 6P"
```
I start the emulator with:
```
emulator -avd x86_64-device -no-snapshot -camera-front none -camera-back virtualscene -netfast -wipe-data -no-audio -no-boot-anim
```
The emulator provides correct looking camerax preview and correct looking camerax capture. But the camerax analysis-use case produces the slightly distorted images as in the attachment. The behavior is the same no matter if OUTPUT_IMAGE_FORMAT_YUV_420_888 with java side yuvToRGB conversion or OUTPUT_IMAGE_FORMAT_RGBA_8888 is with camerax side libyuv conversion is used. The images does look exactly the same.
Did maybe anyone run integration tests also for image analysis use-cases for the emulator and and countered maybe same problems here? Is there maybe a quirk in specifc emulator versions?