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

Test MediaCodec CB with thread #2240

Closed
wants to merge 2 commits into from

Conversation

borongc
Copy link
Contributor

@borongc borongc commented Jan 18, 2024

Test on_device tests on PR #2044 with thread feature disabled.

b/316008643

@borongc borongc force-pushed the mediacodec_cb_with_thread branch 2 times, most recently from 8d787f4 to dabde16 Compare January 22, 2024 17:54
Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a341dc9) 58.52% compared to head (2e4db9e) 58.51%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2240      +/-   ##
==========================================
- Coverage   58.52%   58.51%   -0.01%     
==========================================
  Files        1904     1904              
  Lines       94537    94537              
==========================================
- Hits        55324    55317       -7     
- Misses      39213    39220       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@borongc borongc force-pushed the mediacodec_cb_with_thread branch from dabde16 to fa8dcf0 Compare January 22, 2024 19:18
mingchou and others added 2 commits January 22, 2024 11:18
Now the MediaCodec callbacks and the activity lifecycle callbacks
are called on the main thread. When pausing YouTube, the MediaCodec
callbacks may be blocked until the lifecycle callbacks are done.
This may cause frame drops on a resource-limited device when the
MediaCodec callback to notify a newly decoded frame is blocked and
we run out of decoded frames. Running the MediaCodec callbacks on a
handler thread could avoid this problem.

Change-Id: I5ffdb1f5a582c3d01964b3f98c99d7aed211674a
@borongc borongc force-pushed the mediacodec_cb_with_thread branch from fa8dcf0 to 2e4db9e Compare January 22, 2024 19:18
@borongc borongc closed this Jan 29, 2024
@borongc borongc deleted the mediacodec_cb_with_thread branch January 29, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants