Changeset 8c293bce97592b966b99ffc102c1af3e4eefbf66
- Timestamp:
- 09/20/07 22:13:45
(1 year ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1190319225 +0000
- git-parent:
[56c32065b8526d9edc91ece10ac04d5dd0732104]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1190319225 +0000
- Message:
Adjust height of subpicture region.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3db7e36 |
r8c293bc |
|
| 288 | 288 | fmt.i_width = fmt.i_visible_width = p_page.columns * 12; |
|---|
| 289 | 289 | fmt.i_height = fmt.i_visible_height = p_page.rows * 10; |
|---|
| 290 | | fmt.i_bits_per_pixel = p_sys->b_text ? 0 : 32; |
|---|
| | 290 | fmt.i_bits_per_pixel = p_sys->b_text ? 0 : 32; |
|---|
| 291 | 291 | fmt.i_x_offset = fmt.i_y_offset = 0; |
|---|
| 292 | 292 | |
|---|
| … | … | |
| 310 | 310 | p_spu->b_absolute = VLC_FALSE; |
|---|
| 311 | 311 | p_spu->b_pausable = VLC_TRUE; |
|---|
| | 312 | p_spu->i_width = fmt.i_width; |
|---|
| | 313 | p_spu->i_height = fmt.i_height; |
|---|
| 312 | 314 | p_spu->i_original_picture_width = p_page.columns * 12; |
|---|
| 313 | 315 | p_spu->i_original_picture_height = p_page.rows * 10; |
|---|
| … | … | |
| 319 | 321 | |
|---|
| 320 | 322 | i_total = vbi_print_page_region( &p_page, p_text, i_textsize, |
|---|
| 321 | | "ASCII", 0, 0, 0, 0, p_page.columns, |
|---|
| 322 | | p_page.rows ); |
|---|
| | 323 | "UTF-8", 0, 0, 0, 0, p_page.columns, p_page.rows ); |
|---|
| 323 | 324 | p_text[i_total] = '\0'; |
|---|
| 324 | 325 | /* Strip off the pagenumber */ |
|---|
| … | … | |
| 326 | 327 | p_spu->p_region->psz_text = strdup( &p_text[8] ); |
|---|
| 327 | 328 | |
|---|
| | 329 | p_spu->p_region->fmt.i_height = p_spu->p_region->fmt.i_visible_height = p_page.rows + 1; |
|---|
| 328 | 330 | msg_Dbg( p_dec, "page %x-%x(%d)\n%s", p_page.pgno, p_page.subno, i_total, p_text ); |
|---|
| 329 | 331 | } |
|---|