Changeset 7e00a8db9bf3f9017fb6e58ce71f6b0a8b4e2b9c
- Timestamp:
- 11/11/06 22:43:34
(2 years ago)
- Author:
- Damien Fouilleul <damienf@videolan.org>
- git-committer:
- Damien Fouilleul <damienf@videolan.org> 1163281414 +0000
- git-parent:
[fb635e210354b1be0b04e2e1f941670036dae680]
- git-author:
- Damien Fouilleul <damienf@videolan.org> 1163281414 +0000
- Message:
- make sure chroma converters respect picture line pitch for packed chroma
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd7686e1 |
r7e00a8d |
|
| 143 | 143 | picture_t *p_dest ) |
|---|
| 144 | 144 | { |
|---|
| 145 | | uint8_t *p_line = p_dest->p->p_pixels; |
|---|
| 146 | | uint8_t *p_y = p_source->Y_PIXELS; |
|---|
| 147 | | uint8_t *p_u = p_source->U_PIXELS; |
|---|
| 148 | | uint8_t *p_v = p_source->V_PIXELS; |
|---|
| 149 | | |
|---|
| 150 | | int i_x, i_y; |
|---|
| 151 | | |
|---|
| 152 | | for( i_y = p_vout->render.i_height ; i_y-- ; ) |
|---|
| 153 | | { |
|---|
| | 145 | uint8_t *p_pixels = p_dest->p->p_pixels; |
|---|
| | 146 | int i_pitch = p_dest->p->i_pitch; |
|---|
| | 147 | uint8_t *p_y = p_source->Y_PIXELS; |
|---|
| | 148 | uint8_t *p_u = p_source->U_PIXELS; |
|---|
| | 149 | uint8_t *p_v = p_source->V_PIXELS; |
|---|
| | 150 | |
|---|
| | 151 | int i_x, i_y; |
|---|
| | 152 | |
|---|
| | 153 | for( i_y = p_vout->render.i_height ; i_y-- ; ) |
|---|
| | 154 | { |
|---|
| | 155 | uint8_t *p_line = p_pixels; |
|---|
| 154 | 156 | for( i_x = p_vout->render.i_width / 8 ; i_x-- ; ) |
|---|
| 155 | 157 | { |
|---|
| … | … | |
| 166 | 168 | #endif |
|---|
| 167 | 169 | } |
|---|
| | 170 | p_pixels += i_pitch; |
|---|
| 168 | 171 | } |
|---|
| 169 | 172 | } |
|---|
| … | … | |
| 175 | 178 | picture_t *p_dest ) |
|---|
| 176 | 179 | { |
|---|
| 177 | | uint8_t *p_line = p_dest->p->p_pixels; |
|---|
| 178 | | uint8_t *p_y = p_source->Y_PIXELS; |
|---|
| 179 | | uint8_t *p_u = p_source->U_PIXELS; |
|---|
| 180 | | uint8_t *p_v = p_source->V_PIXELS; |
|---|
| 181 | | |
|---|
| 182 | | int i_x, i_y; |
|---|
| 183 | | |
|---|
| 184 | | for( i_y = p_vout->render.i_height ; i_y-- ; ) |
|---|
| 185 | | { |
|---|
| | 180 | uint8_t *p_pixels = p_dest->p->p_pixels; |
|---|
| | 181 | int i_pitch = p_dest->p->i_pitch; |
|---|
| | 182 | uint8_t *p_y = p_source->Y_PIXELS; |
|---|
| | 183 | uint8_t *p_u = p_source->U_PIXELS; |
|---|
| | 184 | uint8_t *p_v = p_source->V_PIXELS; |
|---|
| | 185 | |
|---|
| | 186 | int i_x, i_y; |
|---|
| | 187 | |
|---|
| | 188 | for( i_y = p_vout->render.i_height ; i_y-- ; ) |
|---|
| | 189 | { |
|---|
| | 190 | uint8_t *p_line = p_pixels; |
|---|
| 186 | 191 | for( i_x = p_vout->render.i_width / 8 ; i_x-- ; ) |
|---|
| 187 | 192 | { |
|---|
| … | … | |
| 198 | 203 | #endif |
|---|
| 199 | 204 | } |
|---|
| | 205 | p_pixels += i_pitch; |
|---|
| 200 | 206 | } |
|---|
| 201 | 207 | } |
|---|
| … | … | |
| 207 | 213 | picture_t *p_dest ) |
|---|
| 208 | 214 | { |
|---|
| 209 | | uint8_t *p_line = p_dest->p->p_pixels; |
|---|
| 210 | | uint8_t *p_y = p_source->Y_PIXELS; |
|---|
| 211 | | uint8_t *p_u = p_source->U_PIXELS; |
|---|
| 212 | | uint8_t *p_v = p_source->V_PIXELS; |
|---|
| 213 | | |
|---|
| 214 | | int i_x, i_y; |
|---|
| 215 | | |
|---|
| 216 | | for( i_y = p_vout->render.i_height ; i_y-- ; ) |
|---|
| 217 | | { |
|---|
| | 215 | uint8_t *p_pixels = p_dest->p->p_pixels; |
|---|
| | 216 | int i_pitch = p_dest->p->i_pitch; |
|---|
| | 217 | uint8_t *p_y = p_source->Y_PIXELS; |
|---|
| | 218 | uint8_t *p_u = p_source->U_PIXELS; |
|---|
| | 219 | uint8_t *p_v = p_source->V_PIXELS; |
|---|
| | 220 | |
|---|
| | 221 | int i_x, i_y; |
|---|
| | 222 | |
|---|
| | 223 | for( i_y = p_vout->render.i_height ; i_y-- ; ) |
|---|
| | 224 | { |
|---|
| | 225 | uint8_t *p_line = p_pixels; |
|---|
| 218 | 226 | for( i_x = p_vout->render.i_width / 8 ; i_x-- ; ) |
|---|
| 219 | 227 | { |
|---|
| … | … | |
| 230 | 238 | #endif |
|---|
| 231 | 239 | } |
|---|
| | 240 | p_pixels += i_pitch; |
|---|
| 232 | 241 | } |
|---|
| 233 | 242 | } |
|---|