Changeset 4b36edd1d545c74ce66ad959e6d08ad1ba947023
- Timestamp:
- 09/04/08 10:34:45
(6 months ago)
- Author:
- Jean-Paul Saman <jean-paul.saman@m2x.nl>
- git-committer:
- Jean-Paul Saman <jean-paul.saman@m2x.nl> 1207730085 +0200
- git-parent:
[91fcbb63196f47ef080ce2c16465a8da294a94c4]
- git-author:
- Jean-Paul Saman <jean-paul.saman@m2x.nl> 1204194705 +0100
- Message:
Patch by Soren Bog <avacore@videolan.org> from GSoC: Overlay - Add alpha component to subpicture regions.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rbf35f49 |
r4b36edd |
|
| 212 | 212 | int i_y; /**< position of region */ |
|---|
| 213 | 213 | int i_align; /**< alignment within a region */ |
|---|
| | 214 | int i_alpha; /**< transparency */ |
|---|
| 214 | 215 | |
|---|
| 215 | 216 | char *psz_text; /**< text string comprising this region */ |
|---|
| rb8610e4 |
r4b36edd |
|
| 292 | 292 | |
|---|
| 293 | 293 | memset( p_region, 0, sizeof(subpicture_region_t) ); |
|---|
| | 294 | p_region->i_alpha = 0xff |
|---|
| 294 | 295 | p_region->p_next = NULL; |
|---|
| 295 | 296 | p_region->p_cache = NULL; |
|---|
| … | … | |
| 337 | 338 | if( !p_region ) return NULL; |
|---|
| 338 | 339 | memset( p_region, 0, sizeof(subpicture_region_t) ); |
|---|
| | 340 | p_region->i_alpha = 0xff; |
|---|
| 339 | 341 | p_region->p_next = 0; |
|---|
| 340 | 342 | p_region->p_cache = 0; |
|---|
| … | … | |
| 902 | 904 | p_region->p_cache->i_y = p_region->i_y * pi_scale_height[ i_scale_idx ] / 1000; |
|---|
| 903 | 905 | p_region->p_cache->i_align = p_region->i_align; |
|---|
| | 906 | p_region->p_cache->i_alpha = p_region->i_alpha; |
|---|
| 904 | 907 | |
|---|
| 905 | 908 | p_pic = p_spu->p_scale->pf_video_filter( |
|---|
| … | … | |
| 1061 | 1064 | p_spu->p_blend->pf_video_blend( p_spu->p_blend, p_pic_dst, |
|---|
| 1062 | 1065 | p_pic_src, &p_region->picture, i_x_offset, i_y_offset, |
|---|
| 1063 | | i_fade_alpha * p_subpic->i_alpha / 255 ); |
|---|
| | 1066 | i_fade_alpha * p_subpic->i_alpha * p_region->i_alpha / 65025 ); |
|---|
| 1064 | 1067 | } |
|---|
| 1065 | 1068 | else |
|---|