Commit Graph

36 Commits

Author SHA1 Message Date
Julian Winkler
e9cf5e7002 API stubs and fixes for composeUI 2024-12-01 14:15:00 +00:00
Kilian "CaféHaine" Guillaume
44d922baea api-impl: stubs and fixes for Open Sudoku 2024-11-20 23:09:53 +01:00
Julian Winkler
da36ebea9a MadiaCodec: allow application to specify input buffer size
This is required for high resolution video playback
2024-11-06 23:32:40 +01:00
Julian Winkler
7c9a32d041 MediaCodec: release all output buffers on release
This prevents leaking video memory
2024-11-06 23:32:39 +01:00
Julian Winkler
bcdf3eb3ce add missing null pointer check in MediaCodec.release()
When the MediaCodec failed to initialize, the native_codec pointer can
be null and releasing it would cause a SEGFAULT in native code.
2024-10-22 18:05:09 +02:00
Julian Winkler
3d38ec9755 add Java APIs needed for WhatsApp settings 2024-10-03 15:57:44 +02:00
Julian Winkler
e3c0931714 prevent reference cycles between Java and native objects 2024-08-02 17:02:53 +02:00
Julian Winkler
29e5298178 MediaCodec: handle end-of-file properly 2024-07-31 18:21:14 +02:00
Julian Winkler
b54bed4784 implementing MediaSession using MPRIS
NotificationManager will now ignore MediaStyle notifications
2024-07-17 22:35:55 +02:00
Julian Winkler
bb50bbfa91 add lots of java APIs needed for Whatsapp 2024-06-16 08:45:31 +02:00
Julian Winkler
5454d9ed3c MediaCodec: throw IOException for unimplemented codecs
fixes SEGFAULT when libavcodec is built without aac decoder
2024-06-13 20:07:01 +02:00
Julian Winkler
ff3c103377 SoundPool: explicitly extract soundfile asset
With the recent changes assets are no longer extracted by default
2024-05-26 16:20:48 +02:00
Julian Winkler
415547a90d add ProgressBar.incrementProgressBy() and AudioManager.setStreamVolume() 2024-05-20 08:12:02 +02:00
Mis012
a99dfd80cc AudioTrack: fix getPlaybackHeadPosition and write
this fixes audio sync in exoplayer
2024-04-28 23:39:07 +02:00
Mis012
2802aaa28d api-impl: add stubs / simple stuff for OsmAnd
without native libs present, launches and renders white square
in map view; with native libs present, segfaults in bundled skia
2024-04-13 15:22:38 +02:00
Markuss Broks
4b2c1835f7 AudioManager: add a stub for isWiredHeadsetOn 2024-04-01 19:41:06 +00:00
Mis012
6443e3977c api-impl: quick&dirty implementations and stubing 2024-03-16 15:03:06 +01:00
Julian Winkler
b7f06e41c1 implement release() methods in MediaCodec and related classes 2024-02-18 10:08:43 +01:00
Julian Winkler
5dfadc9c59 Add some more methods needed by NewPipe. Mostly stubs 2024-02-18 10:08:43 +01:00
Julian Winkler
987058f55d implement AudioTrack.pause() 2023-11-12 12:16:23 +01:00
Julian Winkler
72a8b3a047 add more stubs 2023-11-12 12:16:23 +01:00
Mis012
9ef2151c5e GLSurfaceView: remove old implementation, import the one from AOSP
Now that we have a reasonably well working SurfaceView implementation,
it is actually cleaner to just implement GLSurfaceView the way AOSP
does. In fact, their code doesn't have any weird dependencies, and
can mostly be used as-is.

The AOSP code is pure Java, which means we had to implement some
EGL wrappers.

This change fixes issues with Wayland (it only ever worked because
the pbuffers were allocated using an XWayland EGLDisplay), and
with resizing (which we simply didn't support), all while getting
rid of quite some (arguably not very readable) LoC.
2023-10-20 20:54:37 +02:00
Mis012
621cb866c1 api-impl{-jni}: fix code style issues missed during review 2023-10-17 21:57:48 +02:00
Julian Winkler
f4251af2a2 Add more AudioTrack APIs needed for exoplayer.
Also fix compiler warnings
2023-10-14 18:29:33 +02:00
Julian Winkler
b340032e9f impement android.media.MediaCodec using libavcodec
The current implementation requires a VA-API driver and a Wayland
compositor with YUV-buffer support. GNOME supports YUV-buffers
since the recent version 45 release
2023-10-14 18:29:33 +02:00