Changeset a4923d5d7294f45979a3b6a6bfadf56abdd0e634
- Timestamp:
- 03/29/04 21:57:07
(4 years ago)
- Author:
- Laurent Aimar <fenrir@videolan.org>
- git-committer:
- Laurent Aimar <fenrir@videolan.org> 1080590227 +0000
- git-parent:
[e89d6931da2ef0ced9818e8cea5d9d18095b1f30]
- git-author:
- Laurent Aimar <fenrir@videolan.org> 1080590227 +0000
- Message:
- *.h: shut up gcc (cast of lvalue).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r636df0d |
ra4923d5 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000, 2004 VideoLAN |
|---|
| 5 | | * $Id: i420_rgb.h,v 1.5 2004/01/31 05:53:35 rocky Exp $ |
|---|
| | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 187 | 187 | *p_pic++ = *p_buffer; p_buffer += *p_offset++; \ |
|---|
| 188 | 188 | } \ |
|---|
| 189 | | (uint8_t*)p_pic += i_right_margin; \ |
|---|
| | 189 | p_pic = (void*)((uint8_t*)p_pic + i_right_margin ); \ |
|---|
| 190 | 190 | } \ |
|---|
| 191 | 191 | else \ |
|---|
| … | … | |
| 193 | 193 | /* No scaling, conversion has been done directly in picture memory. \ |
|---|
| 194 | 194 | * Increment of picture pointer to end of line is still needed */ \ |
|---|
| 195 | | (uint8_t*)p_pic += p_dest->p->i_pitch; \ |
|---|
| | 195 | p_pic = (void*)((uint8_t*)p_pic + p_dest->p->i_pitch ); \ |
|---|
| 196 | 196 | } \ |
|---|
| 197 | 197 | |
|---|
| … | … | |
| 225 | 225 | } \ |
|---|
| 226 | 226 | /* Increment of picture pointer to end of line is still needed */ \ |
|---|
| 227 | | (uint8_t*)p_pic += i_right_margin; \ |
|---|
| | 227 | p_pic = (void*)((uint8_t*)p_pic + i_right_margin ); \ |
|---|
| 228 | 228 | \ |
|---|
| 229 | 229 | /* Increment the Y coordinate in the matrix, modulo 4 */ \ |
|---|
| … | … | |
| 279 | 279 | p_vout->p_vlc->pf_memcpy( p_pic, p_pic_start, \ |
|---|
| 280 | 280 | p_vout->output.i_width * BPP ); \ |
|---|
| 281 | | (uint8_t*)p_pic += p_dest->p->i_pitch; \ |
|---|
| | 281 | p_pic = (void*)((uint8_t*)p_pic + p_dest->p->i_pitch ); \ |
|---|
| 282 | 282 | } \ |
|---|
| 283 | 283 | i_scale_count += p_vout->output.i_height; \ |
|---|
| r41a8349 |
ra4923d5 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000, 2001 VideoLAN |
|---|
| 5 | | * $Id: i420_yuy2.h,v 1.2 2003/08/29 18:58:05 fenrir Exp $ |
|---|
| | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 133 | 133 | |
|---|
| 134 | 134 | #define C_YUV420_Y211( ) \ |
|---|
| 135 | | *(p_line1)++ = *(p_y1); ((uint16_t*)p_y1)++; \ |
|---|
| 136 | | *(p_line2)++ = *(p_y2); ((uint16_t*)p_y2)++; \ |
|---|
| 137 | | *(p_line1)++ = *(p_line2)++ = *(p_u) - 0x80; ((uint16_t*)p_u)++; \ |
|---|
| 138 | | *(p_line1)++ = *(p_y1); ((uint16_t*)p_y1)++; \ |
|---|
| 139 | | *(p_line2)++ = *(p_y2); ((uint16_t*)p_y2)++; \ |
|---|
| 140 | | *(p_line1)++ = *(p_line2)++ = *(p_v) - 0x80; ((uint16_t*)p_v)++; \ |
|---|
| | 135 | *(p_line1)++ = *(p_y1); p_y1 += 2; \ |
|---|
| | 136 | *(p_line2)++ = *(p_y2); p_y2 += 2; \ |
|---|
| | 137 | *(p_line1)++ = *(p_line2)++ = *(p_u) - 0x80; p_u += 2; \ |
|---|
| | 138 | *(p_line1)++ = *(p_y1); p_y1 += 2; \ |
|---|
| | 139 | *(p_line2)++ = *(p_y2); p_y2 += 2; \ |
|---|
| | 140 | *(p_line1)++ = *(p_line2)++ = *(p_v) - 0x80; p_v += 2; \ |
|---|
| 141 | 141 | |
|---|
| 142 | 142 | #endif |
|---|
| r41a8349 |
ra4923d5 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002 VideoLAN |
|---|
| 5 | | * $Id: i422_yuy2.h,v 1.2 2003/08/29 18:58:05 fenrir Exp $ |
|---|
| | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 84 | 84 | |
|---|
| 85 | 85 | #define C_YUV422_Y211( p_line, p_y, p_u, p_v ) \ |
|---|
| 86 | | *(p_line)++ = *(p_y); ((uint16_t*)p_y)++; \ |
|---|
| 87 | | *(p_line)++ = *(p_u) - 0x80; ((uint16_t*)p_u)++; \ |
|---|
| 88 | | *(p_line)++ = *(p_y); ((uint16_t*)p_y)++; \ |
|---|
| 89 | | *(p_line)++ = *(p_v) - 0x80; ((uint16_t*)p_v)++; \ |
|---|
| | 86 | *(p_line)++ = *(p_y); p_y += 2; \ |
|---|
| | 87 | *(p_line)++ = *(p_u) - 0x80; p_u += 2; \ |
|---|
| | 88 | *(p_line)++ = *(p_y); p_y += 2; \ |
|---|
| | 89 | *(p_line)++ = *(p_v) - 0x80; p_v += 2; \ |
|---|
| 90 | 90 | |
|---|
| 91 | 91 | #endif |
|---|