|
MediaCodecPlayer implementation (stage 5 - reconfiguration)
This CL addresses a simple case when reconfiguration does
not interfere with prerolling or simultaneous reconfig on
another stream.
When decoder detects that reconfiguration is required,
it enqueues EOS to drain itself. After the drain is completed
the decoder releases the media codec and posts notification to
the player.
The release of the media codec marks that this decoder would
need preroll.
Upon receiving the notificaton the player requests to stop another
stream and also marks it for preroll. The player also sets
the pending start.
After the stop is completed the player will restart,
recreating the deleted MediaCodec and performing the preroll.
BUG= 407577
Committed: https://crrev.com/39392412c833b080409464a2d875ccfcfeb23b5c
Cr-Commit-Position: refs/heads/master@{#346276}
Total comments: 3
Total comments: 4
Total comments: 15
Total comments: 2
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+761 lines, -117 lines) |
Patch |
 |
M |
media/base/android/access_unit_queue.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/base/android/access_unit_queue.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+19 lines, -7 lines |
0 comments
|
Download
|
 |
M |
media/base/android/demuxer_stream_player_params.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/android/demuxer_stream_player_params.cc
|
View
|
1
|
2 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_audio_decoder.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_audio_decoder.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_decoder.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
11 chunks |
+45 lines, -6 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_decoder.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
16 chunks |
+138 lines, -56 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_decoder_unittest.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+65 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_player.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_player.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+73 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_player_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
7 chunks |
+269 lines, -14 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_video_decoder.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/base/android/media_codec_video_decoder.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/base/android/test_data_factory.h
|
View
|
1
2
3
4
5
|
3 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/android/test_data_factory.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+57 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 33 (4 generated)
|