Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Droidmedia fixes #108

Merged
merged 3 commits into from Jun 5, 2023
Merged

Droidmedia fixes #108

merged 3 commits into from Jun 5, 2023

Conversation

rainemak
Copy link
Member

@rainemak rainemak commented Jun 5, 2023

No description provided.

d-grigorev and others added 3 commits May 31, 2023 10:50
This commit adds bitrate_mode to the encoder metadata that controls
the video encoder's bitrate control mode. Set this field to 0 or
DROID_MEDIA_CODEC_BITRATE_CONTROL_DEFAULT to keep the default bitrate
mode, which is usually VBR.
When MediaCodec starts up, it spits a number of CB_INPUT_AVAILABLE
messages with indexes of available input buffers. The messages are
queued in message channel, so the output buffer will hang in queue
and will not be processed until all input buffers are filled with
data from MediaSource. It may take some time in case of a slow media
source, e.g. camera. This causes the output frame to be delayed by
12-14 frames.

This commit adds a SourceReader that stores available input buffer
indexes on order to unblock message queue and fetches the data from
the MediaSource in a separate thread.
Signed-off-by: Raine Makelainen <raine.makelainen@jolla.com>
@rainemak rainemak changed the title Fix AsyncCodecSource to be asynchronous Droidmedia fixes Jun 5, 2023
@rainemak rainemak merged commit 328bfd7 into master Jun 5, 2023
@rainemak rainemak deleted the jb57676-v2 branch June 5, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants