Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a5647949
Commit
a5647949
authored
Aug 27, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make ptr -> int conversion 64 bit friendly
parent
6878660d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
modules/video_chroma/i420_rgb16.c
modules/video_chroma/i420_rgb16.c
+12
-12
modules/video_chroma/i420_yuy2.c
modules/video_chroma/i420_yuy2.c
+4
-4
modules/video_chroma/i422_yuy2.c
modules/video_chroma/i422_yuy2.c
+4
-4
No files found.
modules/video_chroma/i420_rgb16.c
View file @
a5647949
...
@@ -370,8 +370,8 @@ void E_(I420_R5G5B5)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -370,8 +370,8 @@ void E_(I420_R5G5B5)( vout_thread_t *p_vout, picture_t *p_src,
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_y
)
|
((
int
ptr_t
)
p_y
)
|
((
int
)
p_buffer
)))
)
((
int
ptr_t
)
p_buffer
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
...
@@ -611,8 +611,8 @@ void E_(I420_R5G6B5)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -611,8 +611,8 @@ void E_(I420_R5G6B5)( vout_thread_t *p_vout, picture_t *p_src,
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_y
)
|
((
int
ptr_t
)
p_y
)
|
((
int
)
p_buffer
)))
)
((
int
ptr_t
)
p_buffer
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
...
@@ -964,8 +964,8 @@ void E_(I420_A8R8G8B8)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -964,8 +964,8 @@ void E_(I420_A8R8G8B8)( vout_thread_t *p_vout, picture_t *p_src,
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_y
)
|
((
int
ptr_t
)
p_y
)
|
((
int
)
p_buffer
)))
)
((
int
ptr_t
)
p_buffer
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
...
@@ -1203,8 +1203,8 @@ void E_(I420_R8G8B8A8)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -1203,8 +1203,8 @@ void E_(I420_R8G8B8A8)( vout_thread_t *p_vout, picture_t *p_src,
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_y
)
|
((
int
ptr_t
)
p_y
)
|
((
int
)
p_buffer
)))
)
((
int
ptr_t
)
p_buffer
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
...
@@ -1442,8 +1442,8 @@ void E_(I420_B8G8R8A8)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -1442,8 +1442,8 @@ void E_(I420_B8G8R8A8)( vout_thread_t *p_vout, picture_t *p_src,
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_y
)
|
((
int
ptr_t
)
p_y
)
|
((
int
)
p_buffer
)))
)
((
int
ptr_t
)
p_buffer
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
...
@@ -1678,8 +1678,8 @@ void E_(I420_A8B8G8R8)( vout_thread_t *p_vout, picture_t *p_src,
...
@@ -1678,8 +1678,8 @@ void E_(I420_A8B8G8R8)( vout_thread_t *p_vout, picture_t *p_src,
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
p_buffer
=
b_hscale
?
p_buffer_start
:
p_pic
;
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
if
(
0
==
(
15
&
(
p_src
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_y
)
|
((
int
ptr_t
)
p_y
)
|
((
int
)
p_buffer
)))
)
((
int
ptr_t
)
p_buffer
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
for
(
i_y
=
0
;
i_y
<
p_vout
->
render
.
i_height
;
i_y
++
)
...
...
modules/video_chroma/i420_yuy2.c
View file @
a5647949
...
@@ -319,7 +319,7 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -319,7 +319,7 @@ static void I420_YUY2( vout_thread_t *p_vout, picture_t *p_source,
*/
*/
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line2
|
(
in
t
)
p_y2
)))
)
((
int
ptr_t
)
p_line2
|
(
intptr_
t
)
p_y2
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
...
@@ -529,7 +529,7 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -529,7 +529,7 @@ static void I420_YVYU( vout_thread_t *p_vout, picture_t *p_source,
** if memory access is 16 bytes aligned
** if memory access is 16 bytes aligned
*/
*/
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line2
|
(
in
t
)
p_y2
)))
)
((
int
ptr_t
)
p_line2
|
(
intptr_
t
)
p_y2
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
...
@@ -738,7 +738,7 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -738,7 +738,7 @@ static void I420_UYVY( vout_thread_t *p_vout, picture_t *p_source,
** if memory access is 16 bytes aligned
** if memory access is 16 bytes aligned
*/
*/
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line2
|
(
in
t
)
p_y2
)))
)
((
int
ptr_t
)
p_line2
|
(
intptr_
t
)
p_y2
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
...
@@ -878,7 +878,7 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -878,7 +878,7 @@ static void I420_cyuv( vout_thread_t *p_vout, picture_t *p_source,
** if memory access is 16 bytes aligned
** if memory access is 16 bytes aligned
*/
*/
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line2
|
(
in
t
)
p_y2
)))
)
((
int
ptr_t
)
p_line2
|
(
intptr_
t
)
p_y2
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
/
2
;
i_y
--
;
)
...
...
modules/video_chroma/i422_yuy2.c
View file @
a5647949
...
@@ -161,7 +161,7 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -161,7 +161,7 @@ static void I422_YUY2( vout_thread_t *p_vout, picture_t *p_source,
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line
|
(
in
t
)
p_y
)))
)
((
int
ptr_t
)
p_line
|
(
intptr_
t
)
p_y
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
...
@@ -254,7 +254,7 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -254,7 +254,7 @@ static void I422_YVYU( vout_thread_t *p_vout, picture_t *p_source,
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line
|
(
in
t
)
p_y
)))
)
((
int
ptr_t
)
p_line
|
(
intptr_
t
)
p_y
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
...
@@ -347,7 +347,7 @@ static void I422_UYVY( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -347,7 +347,7 @@ static void I422_UYVY( vout_thread_t *p_vout, picture_t *p_source,
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line
|
(
in
t
)
p_y
)))
)
((
int
ptr_t
)
p_line
|
(
intptr_
t
)
p_y
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
...
@@ -450,7 +450,7 @@ static void I422_cyuv( vout_thread_t *p_vout, picture_t *p_source,
...
@@ -450,7 +450,7 @@ static void I422_cyuv( vout_thread_t *p_vout, picture_t *p_source,
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
#if defined (MODULE_NAME_IS_i422_yuy2_sse2)
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
if
(
0
==
(
15
&
(
p_source
->
p
[
Y_PLANE
].
i_pitch
|
p_dest
->
p
->
i_pitch
|
((
int
)
p_line
|
(
in
t
)
p_y
)))
)
((
int
ptr_t
)
p_line
|
(
intptr_
t
)
p_y
)))
)
{
{
/* use faster SSE2 aligned fetch and store */
/* use faster SSE2 aligned fetch and store */
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
for
(
i_y
=
p_vout
->
render
.
i_height
;
i_y
--
;
)
...
...
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