Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a4923d5d
Commit
a4923d5d
authored
Mar 29, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* *.h: shut up gcc (cast of lvalue).
parent
e89d6931
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
modules/video_chroma/i420_rgb.h
modules/video_chroma/i420_rgb.h
+5
-5
modules/video_chroma/i420_yuy2.h
modules/video_chroma/i420_yuy2.h
+7
-7
modules/video_chroma/i422_yuy2.h
modules/video_chroma/i422_yuy2.h
+5
-5
No files found.
modules/video_chroma/i420_rgb.h
View file @
a4923d5d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_rgb.h : YUV to bitmap RGB conversion module for vlc
* i420_rgb.h : YUV to bitmap RGB conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2004 VideoLAN
* Copyright (C) 2000, 2004 VideoLAN
* $Id
: i420_rgb.h,v 1.5 2004/01/31 05:53:35 rocky Exp
$
* $Id$
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -186,13 +186,13 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
...
@@ -186,13 +186,13 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
{ \
{ \
*p_pic++ = *p_buffer; p_buffer += *p_offset++; \
*p_pic++ = *p_buffer; p_buffer += *p_offset++; \
} \
} \
(uint8_t*)p_pic += i_right_margin;
\
p_pic = (void*)((uint8_t*)p_pic + i_right_margin );
\
} \
} \
else \
else \
{ \
{ \
/* No scaling, conversion has been done directly in picture memory. \
/* No scaling, conversion has been done directly in picture memory. \
* Increment of picture pointer to end of line is still needed */
\
* Increment of picture pointer to end of line is still needed */
\
(uint8_t*)p_pic += p_dest->p->i_pitch;
\
p_pic = (void*)((uint8_t*)p_pic + p_dest->p->i_pitch );
\
} \
} \
/*****************************************************************************
/*****************************************************************************
...
@@ -224,7 +224,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
...
@@ -224,7 +224,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
} \
} \
} \
} \
/* Increment of picture pointer to end of line is still needed */
\
/* Increment of picture pointer to end of line is still needed */
\
(uint8_t*)p_pic += i_right_margin;
\
p_pic = (void*)((uint8_t*)p_pic + i_right_margin );
\
\
\
/* Increment the Y coordinate in the matrix, modulo 4 */
\
/* Increment the Y coordinate in the matrix, modulo 4 */
\
i_real_y = (i_real_y + 1) & 0x3; \
i_real_y = (i_real_y + 1) & 0x3; \
...
@@ -278,7 +278,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
...
@@ -278,7 +278,7 @@ void E_(I420_RGB32) ( vout_thread_t *, picture_t *, picture_t * );
/* Height increment: copy previous picture line */
\
/* Height increment: copy previous picture line */
\
p_vout->p_vlc->pf_memcpy( p_pic, p_pic_start, \
p_vout->p_vlc->pf_memcpy( p_pic, p_pic_start, \
p_vout->output.i_width * BPP ); \
p_vout->output.i_width * BPP ); \
(uint8_t*)p_pic += p_dest->p->i_pitch;
\
p_pic = (void*)((uint8_t*)p_pic + p_dest->p->i_pitch );
\
} \
} \
i_scale_count += p_vout->output.i_height; \
i_scale_count += p_vout->output.i_height; \
break; \
break; \
...
...
modules/video_chroma/i420_yuy2.h
View file @
a4923d5d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i420_yuy2.h : YUV to YUV conversion module for vlc
* i420_yuy2.h : YUV to YUV conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id
: i420_yuy2.h,v 1.2 2003/08/29 18:58:05 fenrir Exp
$
* $Id$
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -132,12 +132,12 @@ movq %%mm1, (%1) # Store YUYV \n\
...
@@ -132,12 +132,12 @@ movq %%mm1, (%1) # Store YUYV \n\
*(p_line1)++ = *(p_y1)++; *(p_line2)++ = *(p_y2)++; \
*(p_line1)++ = *(p_y1)++; *(p_line2)++ = *(p_y2)++; \
#define C_YUV420_Y211( ) \
#define C_YUV420_Y211( ) \
*(p_line1)++ = *(p_y1);
((uint16_t*)p_y1)++;
\
*(p_line1)++ = *(p_y1);
p_y1 += 2;
\
*(p_line2)++ = *(p_y2);
((uint16_t*)p_y2)++;
\
*(p_line2)++ = *(p_y2);
p_y2 += 2;
\
*(p_line1)++ = *(p_line2)++ = *(p_u) - 0x80;
((uint16_t*)p_u)++;
\
*(p_line1)++ = *(p_line2)++ = *(p_u) - 0x80;
p_u += 2;
\
*(p_line1)++ = *(p_y1);
((uint16_t*)p_y1)++;
\
*(p_line1)++ = *(p_y1);
p_y1 += 2;
\
*(p_line2)++ = *(p_y2);
((uint16_t*)p_y2)++;
\
*(p_line2)++ = *(p_y2);
p_y2 += 2;
\
*(p_line1)++ = *(p_line2)++ = *(p_v) - 0x80;
((uint16_t*)p_v)++;
\
*(p_line1)++ = *(p_line2)++ = *(p_v) - 0x80;
p_v += 2;
\
#endif
#endif
modules/video_chroma/i422_yuy2.h
View file @
a4923d5d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* i422_yuy2.h : YUV to YUV conversion module for vlc
* i422_yuy2.h : YUV to YUV conversion module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id
: i422_yuy2.h,v 1.2 2003/08/29 18:58:05 fenrir Exp
$
* $Id$
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -83,10 +83,10 @@ movq %%mm1, 8(%0) # Store high UYVY \n\
...
@@ -83,10 +83,10 @@ movq %%mm1, 8(%0) # Store high UYVY \n\
*(p_line)++ = *(p_y)++; \
*(p_line)++ = *(p_y)++; \
#define C_YUV422_Y211( p_line, p_y, p_u, p_v ) \
#define C_YUV422_Y211( p_line, p_y, p_u, p_v ) \
*(p_line)++ = *(p_y);
((uint16_t*)p_y)++;
\
*(p_line)++ = *(p_y);
p_y += 2;
\
*(p_line)++ = *(p_u) - 0x80;
((uint16_t*)p_u)++;
\
*(p_line)++ = *(p_u) - 0x80;
p_u += 2;
\
*(p_line)++ = *(p_y);
((uint16_t*)p_y)++;
\
*(p_line)++ = *(p_y);
p_y += 2;
\
*(p_line)++ = *(p_v) - 0x80;
((uint16_t*)p_v)++;
\
*(p_line)++ = *(p_v) - 0x80;
p_v += 2;
\
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment