Changeset a4923d5d7294f45979a3b6a6bfadf56abdd0e634

Show
Ignore:
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
  • modules/video_chroma/i420_rgb.h

    r636df0d ra4923d5  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2004 VideoLAN 
    5  * $Id: i420_rgb.h,v 1.5 2004/01/31 05:53:35 rocky Exp
     5 * $Id
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    187187            *p_pic++ = *p_buffer;   p_buffer += *p_offset++;                  \ 
    188188        }                                                                     \ 
    189         (uint8_t*)p_pic += i_right_margin;                                    \ 
     189        p_pic = (void*)((uint8_t*)p_pic + i_right_margin );                   \ 
    190190    }                                                                         \ 
    191191    else                                                                      \ 
     
    193193        /* No scaling, conversion has been done directly in picture memory.   \ 
    194194         * 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 );               \ 
    196196    }                                                                         \ 
    197197 
     
    225225    }                                                                         \ 
    226226    /* 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 );                       \ 
    228228                                                                              \ 
    229229    /* Increment the Y coordinate in the matrix, modulo 4 */                  \ 
     
    279279            p_vout->p_vlc->pf_memcpy( p_pic, p_pic_start,                     \ 
    280280                                      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 );           \ 
    282282        }                                                                     \ 
    283283        i_scale_count += p_vout->output.i_height;                             \ 
  • modules/video_chroma/i420_yuy2.h

    r41a8349 ra4923d5  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000, 2001 VideoLAN 
    5  * $Id: i420_yuy2.h,v 1.2 2003/08/29 18:58:05 fenrir Exp
     5 * $Id
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    133133 
    134134#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;                  \ 
    141141 
    142142#endif 
  • modules/video_chroma/i422_yuy2.h

    r41a8349 ra4923d5  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002 VideoLAN 
    5  * $Id: i422_yuy2.h,v 1.2 2003/08/29 18:58:05 fenrir Exp
     5 * $Id
    66 * 
    77 * Authors: Samuel Hocevar <sam@zoy.org> 
     
    8484 
    8585#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;                                  \ 
    9090 
    9191#endif