comparison spudec.c @ 31631:67f2fb3ff4c7

Try to get subtitle scaling somewhat right with libavcodec decoded bitmap subtitles.
author reimar
date Sun, 11 Jul 2010 09:40:46 +0000
parents 78260a246393
children 36a339f6613a
comparison
equal deleted inserted replaced
31630:78260a246393 31631:67f2fb3ff4c7
641 spu->height = packet->height; 641 spu->height = packet->height;
642 spu->stride = packet->stride; 642 spu->stride = packet->stride;
643 spu->start_col = packet->start_col; 643 spu->start_col = packet->start_col;
644 spu->start_row = packet->start_row; 644 spu->start_row = packet->start_row;
645 645
646 // TODO use correct values 646 // reset scaled image
647 spu->scaled_frame_width = 0; 647 spu->scaled_frame_width = 0;
648 spu->scaled_frame_height = 0; 648 spu->scaled_frame_height = 0;
649 spu->orig_frame_width = 1920;
650 spu->orig_frame_height = 1080;
651 } else { 649 } else {
652 if (spu->auto_palette) 650 if (spu->auto_palette)
653 compute_palette(spu, packet); 651 compute_palette(spu, packet);
654 spudec_process_data(spu, packet); 652 spudec_process_data(spu, packet);
655 } 653 }