Changeset 7640ddc6ada933e322eed7087929f2c75f3a6201
- Timestamp:
- 06/15/08 19:48:41
(3 months ago)
- Author:
- Antoine Cellerier <dionoea@videolan.org>
- git-committer:
- Antoine Cellerier <dionoea@videolan.org> 1213552121 +0200
- git-parent:
[65340ca284dea0d1dd337b022934311ace637b65]
- git-author:
- Antoine Cellerier <dionoea@videolan.org> 1213552072 +0200
- Message:
Fix image resizing with non accelerated vouts. Still uses chroma builtin
resizing which is horrible. Upcomming commit will fix that.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rffcd6fe |
r7640ddc |
|
| 1114 | 1114 | } |
|---|
| 1115 | 1115 | |
|---|
| 1116 | | /* Need to reinitialise the chroma plugin */ |
|---|
| | 1116 | /* Need to reinitialise the chroma plugin. Since we might need |
|---|
| | 1117 | * resizing too and it's not sure that we already had it, |
|---|
| | 1118 | * recreate the chroma plugin chain from scratch. */ |
|---|
| | 1119 | /* dionoea */ |
|---|
| 1117 | 1120 | if( p_vout->p_chroma->p_module ) |
|---|
| 1118 | 1121 | { |
|---|
| 1119 | | if( p_vout->p_chroma->p_module->pf_deactivate ) |
|---|
| 1120 | | p_vout->p_chroma->p_module->pf_deactivate( VLC_OBJECT(p_vout->p_chroma) ); |
|---|
| 1121 | | p_vout->p_chroma->p_module->pf_activate( VLC_OBJECT(p_vout->p_chroma) ); |
|---|
| | 1122 | filter_t *p_chroma = p_vout->p_chroma; |
|---|
| | 1123 | module_Unneed( p_chroma, p_chroma->p_module ); |
|---|
| | 1124 | p_chroma->fmt_out.video = p_vout->fmt_out; |
|---|
| | 1125 | p_chroma->fmt_out.video.i_rmask = p_vout->output.i_rmask; |
|---|
| | 1126 | p_chroma->fmt_out.video.i_gmask = p_vout->output.i_gmask; |
|---|
| | 1127 | p_chroma->fmt_out.video.i_bmask = p_vout->output.i_bmask; |
|---|
| | 1128 | p_chroma->fmt_out.video.i_rrshift = p_vout->output.i_rrshift; |
|---|
| | 1129 | p_chroma->fmt_out.video.i_lrshift = p_vout->output.i_lrshift; |
|---|
| | 1130 | p_chroma->fmt_out.video.i_rgshift = p_vout->output.i_rgshift; |
|---|
| | 1131 | p_chroma->fmt_out.video.i_lgshift = p_vout->output.i_lgshift; |
|---|
| | 1132 | p_chroma->fmt_out.video.i_rbshift = p_vout->output.i_rbshift; |
|---|
| | 1133 | p_chroma->fmt_out.video.i_lbshift = p_vout->output.i_lbshift; |
|---|
| | 1134 | p_chroma->p_module = module_Need( p_chroma, "video filter2", NULL, 0 ); |
|---|
| | 1135 | if( !p_chroma->p_module ) |
|---|
| | 1136 | { |
|---|
| | 1137 | msg_Err( p_vout, "WOW THIS SUCKS BIG TIME!!!!!" ); |
|---|
| | 1138 | } |
|---|
| 1122 | 1139 | } |
|---|
| 1123 | 1140 | } |
|---|