Commit bb58dbfa authored by Antoine Cellerier's avatar Antoine Cellerier

Keep a good rendering quality when rendering zvbi subs as text.

parent 859a6608
...@@ -351,9 +351,12 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) ...@@ -351,9 +351,12 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
VLC_FOURCC('R','G','B','A'); VLC_FOURCC('R','G','B','A');
#endif #endif
fmt.i_aspect = p_sys->b_text ? 0 : VOUT_ASPECT_FACTOR; fmt.i_aspect = p_sys->b_text ? 0 : VOUT_ASPECT_FACTOR;
fmt.i_sar_num = fmt.i_sar_den = 1; if( !p_sys->b_text )
fmt.i_width = fmt.i_visible_width = p_page.columns * 12; {
fmt.i_height = fmt.i_visible_height = p_page.rows * 10; fmt.i_sar_num = fmt.i_sar_den = 1;
fmt.i_width = fmt.i_visible_width = p_page.columns * 12;
fmt.i_height = fmt.i_visible_height = p_page.rows * 10;
}
fmt.i_bits_per_pixel = p_sys->b_text ? 0 : 32; fmt.i_bits_per_pixel = p_sys->b_text ? 0 : 32;
fmt.i_x_offset = fmt.i_y_offset = 0; fmt.i_x_offset = fmt.i_y_offset = 0;
...@@ -376,10 +379,13 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) ...@@ -376,10 +379,13 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
p_spu->b_ephemer = VLC_TRUE; p_spu->b_ephemer = VLC_TRUE;
p_spu->b_absolute = VLC_FALSE; p_spu->b_absolute = VLC_FALSE;
p_spu->b_pausable = VLC_TRUE; p_spu->b_pausable = VLC_TRUE;
p_spu->i_width = fmt.i_width; if( !p_sys->b_text )
p_spu->i_height = fmt.i_height; {
p_spu->i_original_picture_width = p_page.columns * 12; p_spu->i_width = fmt.i_width;
p_spu->i_original_picture_height = p_page.rows * 10; p_spu->i_height = fmt.i_height;
p_spu->i_original_picture_width = p_page.columns * 12;
p_spu->i_original_picture_height = p_page.rows * 10;
}
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN
# define ZVBI_PIXFMT_RGBA32 VBI_PIXFMT_RGBA32_BE # define ZVBI_PIXFMT_RGBA32 VBI_PIXFMT_RGBA32_BE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment