mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-17 12:07:38 -04:00
mpegplayer: Make playback engine fully seekable and frame-accurate and split into logical parts. Be sure to have all current features work. Actual UI for seeking will be added soon. Recommended GOP size is about 15-30 frames depending on target or seeking can be slow with really long GOPs (nature of MPEG video). More refined encoding recommendations for a particular player should be posted soon.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15977 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1d0f6b90ff
commit
a222f27c4a
34 changed files with 7850 additions and 2764 deletions
|
@ -92,12 +92,12 @@ void mpeg2_header_state_init (mpeg2dec_t * mpeg2dec)
|
|||
{
|
||||
if (mpeg2dec->sequence.width != (unsigned)-1)
|
||||
{
|
||||
int i;
|
||||
|
||||
mpeg2dec->sequence.width = (unsigned)-1;
|
||||
|
||||
mpeg2_mem_reset(); /* Clean the memory slate */
|
||||
#if 0
|
||||
if (!mpeg2dec->custom_fbuf)
|
||||
{
|
||||
int i;
|
||||
for (i = mpeg2dec->alloc_index_user;
|
||||
i < mpeg2dec->alloc_index; i++)
|
||||
{
|
||||
|
@ -109,6 +109,7 @@ void mpeg2_header_state_init (mpeg2dec_t * mpeg2dec)
|
|||
|
||||
if (mpeg2dec->convert_start)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
mpeg2_free(mpeg2dec->yuv_buf[i][0]);
|
||||
|
@ -121,6 +122,7 @@ void mpeg2_header_state_init (mpeg2dec_t * mpeg2dec)
|
|||
{
|
||||
mpeg2_free(mpeg2dec->decoder.convert_id);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
mpeg2dec->decoder.coding_type = I_TYPE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue