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
3172a979
Commit
3172a979
authored
Jul 02, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove vlc_memset
parent
68426d37
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
35 additions
and
36 deletions
+35
-36
include/vlc_common.h
include/vlc_common.h
+1
-2
modules/access/linsys/linsys_sdi.c
modules/access/linsys/linsys_sdi.c
+2
-2
modules/audio_filter/converter/a52tospdif.c
modules/audio_filter/converter/a52tospdif.c
+1
-1
modules/audio_filter/converter/dtstospdif.c
modules/audio_filter/converter/dtstospdif.c
+1
-1
modules/audio_output/audioqueue.c
modules/audio_output/audioqueue.c
+1
-1
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+2
-2
modules/audio_output/kai.c
modules/audio_output/kai.c
+1
-1
modules/audio_output/packet.c
modules/audio_output/packet.c
+1
-1
modules/audio_output/waveout.c
modules/audio_output/waveout.c
+1
-1
modules/video_chroma/i422_i420.c
modules/video_chroma/i422_i420.c
+1
-1
modules/video_filter/bluescreen.c
modules/video_filter/bluescreen.c
+1
-1
modules/video_filter/croppadd.c
modules/video_filter/croppadd.c
+4
-4
modules/video_filter/gradient.c
modules/video_filter/gradient.c
+6
-6
modules/video_filter/magnify.c
modules/video_filter/magnify.c
+2
-2
modules/video_filter/panoramix.c
modules/video_filter/panoramix.c
+2
-2
modules/video_filter/psychedelic.c
modules/video_filter/psychedelic.c
+2
-2
modules/video_filter/ripple.c
modules/video_filter/ripple.c
+2
-2
modules/video_filter/sepia.c
modules/video_filter/sepia.c
+2
-2
modules/video_filter/wave.c
modules/video_filter/wave.c
+2
-2
No files found.
include/vlc_common.h
View file @
3172a979
...
@@ -881,9 +881,8 @@ static inline void *vlc_memalign(size_t align, size_t size)
...
@@ -881,9 +881,8 @@ static inline void *vlc_memalign(size_t align, size_t size)
VLC_API
void
vlc_tdestroy
(
void
*
,
void
(
*
)(
void
*
)
);
VLC_API
void
vlc_tdestroy
(
void
*
,
void
(
*
)(
void
*
)
);
/* Fast large memory copy
and memory set
*/
/* Fast large memory copy */
VLC_API
void
*
vlc_memcpy
(
void
*
,
const
void
*
,
size_t
);
VLC_API
void
*
vlc_memcpy
(
void
*
,
const
void
*
,
size_t
);
#define vlc_memset memset
/*****************************************************************************
/*****************************************************************************
* I18n stuff
* I18n stuff
...
...
modules/access/linsys/linsys_sdi.c
View file @
3172a979
...
@@ -975,8 +975,8 @@ static int DecodeFrame( demux_t *p_demux )
...
@@ -975,8 +975,8 @@ static int DecodeFrame( demux_t *p_demux )
{
{
/* For PAL, erase first half of line 23, last half of line 623,
/* For PAL, erase first half of line 23, last half of line 623,
* and line 624 ; no need to erase chrominance */
* and line 624 ; no need to erase chrominance */
vlc_
memset
(
p_sys
->
p_y
,
0
,
p_sys
->
i_width
/
2
);
memset
(
p_sys
->
p_y
,
0
,
p_sys
->
i_width
/
2
);
vlc_
memset
(
p_sys
->
p_y
+
p_sys
->
i_width
*
574
+
p_sys
->
i_width
/
2
,
memset
(
p_sys
->
p_y
+
p_sys
->
i_width
*
574
+
p_sys
->
i_width
/
2
,
0
,
p_sys
->
i_width
*
3
/
2
);
0
,
p_sys
->
i_width
*
3
/
2
);
}
}
}
}
...
...
modules/audio_filter/converter/a52tospdif.c
View file @
3172a979
...
@@ -106,7 +106,7 @@ static block_t *DoWork( filter_t * p_filter, block_t *p_in_buf )
...
@@ -106,7 +106,7 @@ static block_t *DoWork( filter_t * p_filter, block_t *p_in_buf )
SetWLE
(
p_out
+
6
,
i_frame_size
<<
4
);
SetWLE
(
p_out
+
6
,
i_frame_size
<<
4
);
swab
(
p_in
,
&
p_out
[
8
],
i_frame_size
*
2
);
swab
(
p_in
,
&
p_out
[
8
],
i_frame_size
*
2
);
}
}
vlc_
memset
(
p_out
+
8
+
i_frame_size
*
2
,
0
,
memset
(
p_out
+
8
+
i_frame_size
*
2
,
0
,
AOUT_SPDIF_SIZE
-
i_frame_size
*
2
-
8
);
AOUT_SPDIF_SIZE
-
i_frame_size
*
2
-
8
);
p_out_buf
->
i_dts
=
p_in_buf
->
i_dts
;
p_out_buf
->
i_dts
=
p_in_buf
->
i_dts
;
...
...
modules/audio_filter/converter/dtstospdif.c
View file @
3172a979
...
@@ -205,7 +205,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
...
@@ -205,7 +205,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
if
(
i_fz
>
i_length
+
8
)
if
(
i_fz
>
i_length
+
8
)
{
{
vlc_
memset
(
p_out
+
8
+
i_length_padded
,
0
,
memset
(
p_out
+
8
+
i_length_padded
,
0
,
i_fz
-
i_length_padded
-
8
);
i_fz
-
i_length_padded
-
8
);
}
}
}
}
...
...
modules/audio_output/audioqueue.c
View file @
3172a979
...
@@ -186,7 +186,7 @@ void AudioQueueCallback(void * inUserData, AudioQueueRef inAQ, AudioQueueBufferR
...
@@ -186,7 +186,7 @@ void AudioQueueCallback(void * inUserData, AudioQueueRef inAQ, AudioQueueBufferR
inBuffer
->
mAudioDataByteSize
=
p_buffer
->
i_buffer
;
inBuffer
->
mAudioDataByteSize
=
p_buffer
->
i_buffer
;
block_Release
(
p_buffer
);
block_Release
(
p_buffer
);
}
else
{
}
else
{
vlc_
memset
(
inBuffer
->
mAudioData
,
0
,
inBuffer
->
mAudioDataBytesCapacity
);
memset
(
inBuffer
->
mAudioData
,
0
,
inBuffer
->
mAudioDataBytesCapacity
);
inBuffer
->
mAudioDataByteSize
=
inBuffer
->
mAudioDataBytesCapacity
;
inBuffer
->
mAudioDataByteSize
=
inBuffer
->
mAudioDataBytesCapacity
;
}
}
AudioQueueEnqueueBuffer
(
inAQ
,
inBuffer
,
0
,
NULL
);
AudioQueueEnqueueBuffer
(
inAQ
,
inBuffer
,
0
,
NULL
);
...
...
modules/audio_output/auhal.c
View file @
3172a979
...
@@ -1334,7 +1334,7 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
...
@@ -1334,7 +1334,7 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
}
}
else
else
{
{
vlc_
memset
(
(
uint8_t
*
)
ioData
->
mBuffers
[
0
].
mData
+
i_mData_bytes
,
memset
(
(
uint8_t
*
)
ioData
->
mBuffers
[
0
].
mData
+
i_mData_bytes
,
0
,
ioData
->
mBuffers
[
0
].
mDataByteSize
-
i_mData_bytes
);
0
,
ioData
->
mBuffers
[
0
].
mDataByteSize
-
i_mData_bytes
);
i_mData_bytes
+=
ioData
->
mBuffers
[
0
].
mDataByteSize
-
i_mData_bytes
;
i_mData_bytes
+=
ioData
->
mBuffers
[
0
].
mDataByteSize
-
i_mData_bytes
;
}
}
...
@@ -1386,7 +1386,7 @@ static OSStatus RenderCallbackSPDIF( AudioDeviceID inDevice,
...
@@ -1386,7 +1386,7 @@ static OSStatus RenderCallbackSPDIF( AudioDeviceID inDevice,
}
}
else
else
{
{
vlc_
memset
(
BUFFER
.
mData
,
0
,
BUFFER
.
mDataByteSize
);
memset
(
BUFFER
.
mData
,
0
,
BUFFER
.
mDataByteSize
);
}
}
#undef BUFFER
#undef BUFFER
...
...
modules/audio_output/kai.c
View file @
3172a979
...
@@ -328,7 +328,7 @@ static ULONG APIENTRY KaiCallback( PVOID p_cb_data,
...
@@ -328,7 +328,7 @@ static ULONG APIENTRY KaiCallback( PVOID p_cb_data,
}
}
else
else
{
{
vlc_
memset
(
(
uint8_t
*
)
p_buffer
+
i_len
,
0
,
i_buf_size
-
i_len
);
memset
(
(
uint8_t
*
)
p_buffer
+
i_len
,
0
,
i_buf_size
-
i_len
);
i_len
=
i_buf_size
;
i_len
=
i_buf_size
;
}
}
...
...
modules/audio_output/packet.c
View file @
3172a979
...
@@ -270,7 +270,7 @@ static block_t *aout_OutputSlice (audio_output_t *p_aout)
...
@@ -270,7 +270,7 @@ static block_t *aout_OutputSlice (audio_output_t *p_aout)
if
(
unlikely
(
p_inbuf
==
NULL
)
)
if
(
unlikely
(
p_inbuf
==
NULL
)
)
{
{
msg_Err
(
p_aout
,
"packetization error"
);
msg_Err
(
p_aout
,
"packetization error"
);
vlc_
memset
(
p_out
,
0
,
needed
);
memset
(
p_out
,
0
,
needed
);
break
;
break
;
}
}
...
...
modules/audio_output/waveout.c
View file @
3172a979
...
@@ -765,7 +765,7 @@ static int PlayWaveOut( audio_output_t *p_aout, HWAVEOUT h_waveout,
...
@@ -765,7 +765,7 @@ static int PlayWaveOut( audio_output_t *p_aout, HWAVEOUT h_waveout,
p_aout
->
sys
->
i_repeat_counter
--
;
p_aout
->
sys
->
i_repeat_counter
--
;
if
(
!
p_aout
->
sys
->
i_repeat_counter
)
if
(
!
p_aout
->
sys
->
i_repeat_counter
)
{
{
vlc_
memset
(
p_aout
->
sys
->
p_silence_buffer
,
memset
(
p_aout
->
sys
->
p_silence_buffer
,
0x00
,
p_aout
->
sys
->
i_buffer_size
);
0x00
,
p_aout
->
sys
->
i_buffer_size
);
}
}
}
}
...
...
modules/video_chroma/i422_i420.c
View file @
3172a979
...
@@ -177,6 +177,6 @@ static void I422_YUVA( filter_t *p_filter, picture_t *p_source,
...
@@ -177,6 +177,6 @@ static void I422_YUVA( filter_t *p_filter, picture_t *p_source,
picture_t
*
p_dest
)
picture_t
*
p_dest
)
{
{
I422_I420
(
p_filter
,
p_source
,
p_dest
);
I422_I420
(
p_filter
,
p_source
,
p_dest
);
vlc_
memset
(
p_dest
->
p
[
A_PLANE
].
p_pixels
,
0xff
,
memset
(
p_dest
->
p
[
A_PLANE
].
p_pixels
,
0xff
,
p_dest
->
p
[
A_PLANE
].
i_lines
*
p_dest
->
p
[
A_PLANE
].
i_pitch
);
p_dest
->
p
[
A_PLANE
].
i_lines
*
p_dest
->
p
[
A_PLANE
].
i_pitch
);
}
}
modules/video_filter/bluescreen.c
View file @
3172a979
...
@@ -209,7 +209,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -209,7 +209,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
}
}
}
}
/* Gaussian convolution to make it look cleaner */
/* Gaussian convolution to make it look cleaner */
vlc_
memset
(
p_a
,
0
,
2
*
i_pitch
);
memset
(
p_a
,
0
,
2
*
i_pitch
);
for
(
i
=
2
;
i
<
i_lines
-
2
;
i
++
)
for
(
i
=
2
;
i
<
i_lines
-
2
;
i
++
)
{
{
p_a
[
i
*
i_pitch
]
=
0x00
;
p_a
[
i
*
i_pitch
]
=
0x00
;
...
...
modules/video_filter/croppadd.c
View file @
3172a979
...
@@ -266,7 +266,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -266,7 +266,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_in
+=
i_ycrop
*
p_plane
->
i_pitch
;
p_in
+=
i_ycrop
*
p_plane
->
i_pitch
;
/* Padd on the top */
/* Padd on the top */
vlc_
memset
(
p_out
,
i_padd_color
,
i_ypadd
*
p_outplane
->
i_pitch
);
memset
(
p_out
,
i_padd_color
,
i_ypadd
*
p_outplane
->
i_pitch
);
p_out
+=
i_ypadd
*
p_outplane
->
i_pitch
;
p_out
+=
i_ypadd
*
p_outplane
->
i_pitch
;
int
i_line
;
int
i_line
;
...
@@ -279,7 +279,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -279,7 +279,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_in
+=
i_xcrop
*
i_pixel_pitch
;
p_in
+=
i_xcrop
*
i_pixel_pitch
;
/* Padd on the left */
/* Padd on the left */
vlc_
memset
(
p_out
,
i_padd_color
,
i_xpadd
*
i_pixel_pitch
);
memset
(
p_out
,
i_padd_color
,
i_xpadd
*
i_pixel_pitch
);
p_out
+=
i_xpadd
*
i_pixel_pitch
;
p_out
+=
i_xpadd
*
i_pixel_pitch
;
/* Copy the image and crop on the right */
/* Copy the image and crop on the right */
...
@@ -288,7 +288,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -288,7 +288,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_in
+=
i_width
*
i_pixel_pitch
;
p_in
+=
i_width
*
i_pixel_pitch
;
/* Padd on the right */
/* Padd on the right */
vlc_
memset
(
p_out
,
i_padd_color
,
memset
(
p_out
,
i_padd_color
,
(
i_outwidth
-
i_xpadd
-
i_width
)
*
i_pixel_pitch
);
(
i_outwidth
-
i_xpadd
-
i_width
)
*
i_pixel_pitch
);
/* Got to begining of the next line */
/* Got to begining of the next line */
...
@@ -297,7 +297,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -297,7 +297,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
}
}
/* Padd on the bottom */
/* Padd on the bottom */
vlc_
memset
(
p_out
,
i_padd_color
,
memset
(
p_out
,
i_padd_color
,
(
i_outheight
-
i_ypadd
-
i_height
)
*
p_outplane
->
i_pitch
);
(
i_outheight
-
i_ypadd
-
i_height
)
*
p_outplane
->
i_pitch
);
}
}
...
...
modules/video_filter/gradient.c
View file @
3172a979
...
@@ -365,9 +365,9 @@ static void FilterGradient( filter_t *p_filter, picture_t *p_inpic,
...
@@ -365,9 +365,9 @@ static void FilterGradient( filter_t *p_filter, picture_t *p_inpic,
}
}
else
else
{
{
vlc_
memset
(
p_outpic
->
p
[
U_PLANE
].
p_pixels
,
0x80
,
memset
(
p_outpic
->
p
[
U_PLANE
].
p_pixels
,
0x80
,
p_outpic
->
p
[
U_PLANE
].
i_lines
*
p_outpic
->
p
[
U_PLANE
].
i_pitch
);
p_outpic
->
p
[
U_PLANE
].
i_lines
*
p_outpic
->
p
[
U_PLANE
].
i_pitch
);
vlc_
memset
(
p_outpic
->
p
[
V_PLANE
].
p_pixels
,
0x80
,
memset
(
p_outpic
->
p
[
V_PLANE
].
p_pixels
,
0x80
,
p_outpic
->
p
[
V_PLANE
].
i_lines
*
p_outpic
->
p
[
V_PLANE
].
i_pitch
);
p_outpic
->
p
[
V_PLANE
].
i_lines
*
p_outpic
->
p
[
V_PLANE
].
i_pitch
);
}
}
...
@@ -505,11 +505,11 @@ static void FilterEdge( filter_t *p_filter, picture_t *p_inpic,
...
@@ -505,11 +505,11 @@ static void FilterEdge( filter_t *p_filter, picture_t *p_inpic,
}
}
else
else
{
{
vlc_
memset
(
p_outpic
->
p
[
Y_PLANE
].
p_pixels
,
0xff
,
memset
(
p_outpic
->
p
[
Y_PLANE
].
p_pixels
,
0xff
,
p_outpic
->
p
[
Y_PLANE
].
i_lines
*
p_outpic
->
p
[
Y_PLANE
].
i_pitch
);
p_outpic
->
p
[
Y_PLANE
].
i_lines
*
p_outpic
->
p
[
Y_PLANE
].
i_pitch
);
vlc_
memset
(
p_outpic
->
p
[
U_PLANE
].
p_pixels
,
0x80
,
memset
(
p_outpic
->
p
[
U_PLANE
].
p_pixels
,
0x80
,
p_outpic
->
p
[
U_PLANE
].
i_lines
*
p_outpic
->
p
[
U_PLANE
].
i_pitch
);
p_outpic
->
p
[
U_PLANE
].
i_lines
*
p_outpic
->
p
[
U_PLANE
].
i_pitch
);
vlc_
memset
(
p_outpic
->
p
[
V_PLANE
].
p_pixels
,
0x80
,
memset
(
p_outpic
->
p
[
V_PLANE
].
p_pixels
,
0x80
,
p_outpic
->
p
[
V_PLANE
].
i_lines
*
p_outpic
->
p
[
V_PLANE
].
i_pitch
);
p_outpic
->
p
[
V_PLANE
].
i_lines
*
p_outpic
->
p
[
V_PLANE
].
i_pitch
);
}
}
...
@@ -677,7 +677,7 @@ static void FilterHough( filter_t *p_filter, picture_t *p_inpic,
...
@@ -677,7 +677,7 @@ static void FilterHough( filter_t *p_filter, picture_t *p_inpic,
msg_Dbg
(
p_filter
,
"Precalculation done"
);
msg_Dbg
(
p_filter
,
"Precalculation done"
);
}
}
vlc_
memset
(
p_hough
,
0
,
i_diag
*
i_nb_steps
*
sizeof
(
int
)
);
memset
(
p_hough
,
0
,
i_diag
*
i_nb_steps
*
sizeof
(
int
)
);
plane_CopyPixels
(
&
p_outpic
->
p
[
Y_PLANE
],
&
p_inpic
->
p
[
Y_PLANE
]
);
plane_CopyPixels
(
&
p_outpic
->
p
[
Y_PLANE
],
&
p_inpic
->
p
[
Y_PLANE
]
);
plane_CopyPixels
(
&
p_outpic
->
p
[
U_PLANE
],
&
p_inpic
->
p
[
U_PLANE
]
);
plane_CopyPixels
(
&
p_outpic
->
p
[
U_PLANE
],
&
p_inpic
->
p
[
U_PLANE
]
);
...
...
modules/video_filter/magnify.c
View file @
3172a979
...
@@ -317,7 +317,7 @@ static void DrawRectangle( uint8_t *pb_dst, int i_pitch, int i_width, int i_heig
...
@@ -317,7 +317,7 @@ static void DrawRectangle( uint8_t *pb_dst, int i_pitch, int i_width, int i_heig
return
;
return
;
/* top line */
/* top line */
vlc_
memset
(
&
pb_dst
[
y
*
i_pitch
+
x
],
0xff
,
i_w
);
memset
(
&
pb_dst
[
y
*
i_pitch
+
x
],
0xff
,
i_w
);
/* left and right */
/* left and right */
for
(
dy
=
1
;
dy
<
i_h
-
1
;
dy
++
)
for
(
dy
=
1
;
dy
<
i_h
-
1
;
dy
++
)
...
@@ -327,7 +327,7 @@ static void DrawRectangle( uint8_t *pb_dst, int i_pitch, int i_width, int i_heig
...
@@ -327,7 +327,7 @@ static void DrawRectangle( uint8_t *pb_dst, int i_pitch, int i_width, int i_heig
}
}
/* bottom line */
/* bottom line */
vlc_
memset
(
&
pb_dst
[(
y
+
i_h
-
1
)
*
i_pitch
+
x
],
0xff
,
i_w
);
memset
(
&
pb_dst
[(
y
+
i_h
-
1
)
*
i_pitch
+
x
],
0xff
,
i_w
);
}
}
static
int
Mouse
(
filter_t
*
p_filter
,
vlc_mouse_t
*
p_mouse
,
const
vlc_mouse_t
*
p_old
,
const
vlc_mouse_t
*
p_new
)
static
int
Mouse
(
filter_t
*
p_filter
,
vlc_mouse_t
*
p_mouse
,
const
vlc_mouse_t
*
p_old
,
const
vlc_mouse_t
*
p_new
)
...
...
modules/video_filter/panoramix.c
View file @
3172a979
...
@@ -983,7 +983,7 @@ static void FilterPlanar( uint8_t *p_out, int i_out_pitch,
...
@@ -983,7 +983,7 @@ static void FilterPlanar( uint8_t *p_out, int i_out_pitch,
/* Top black border */
/* Top black border */
for
(
int
b
=
0
;
b
<
p_cfg
->
black
.
i_top
;
b
++
)
for
(
int
b
=
0
;
b
<
p_cfg
->
black
.
i_top
;
b
++
)
{
{
vlc_
memset
(
p_out
,
i_pixel_black
,
i_out_width
);
memset
(
p_out
,
i_pixel_black
,
i_out_width
);
p_out
+=
i_out_pitch
;
p_out
+=
i_out_pitch
;
}
}
...
@@ -1036,7 +1036,7 @@ static void FilterPlanar( uint8_t *p_out, int i_out_pitch,
...
@@ -1036,7 +1036,7 @@ static void FilterPlanar( uint8_t *p_out, int i_out_pitch,
/* Bottom black border */
/* Bottom black border */
for
(
int
b
=
0
;
b
<
p_cfg
->
black
.
i_bottom
;
b
++
)
for
(
int
b
=
0
;
b
<
p_cfg
->
black
.
i_bottom
;
b
++
)
{
{
vlc_
memset
(
p_out
,
i_pixel_black
,
i_out_width
);
memset
(
p_out
,
i_pixel_black
,
i_out_width
);
p_out
+=
i_out_pitch
;
p_out
+=
i_out_pitch
;
}
}
}
}
...
...
modules/video_filter/psychedelic.c
View file @
3172a979
...
@@ -164,10 +164,10 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -164,10 +164,10 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
v
=
p_filter
->
p_sys
->
v
;
v
=
p_filter
->
p_sys
->
v
;
for
(
y
=
0
;
y
<
p_outpic
->
p
[
U_PLANE
].
i_lines
;
y
++
)
for
(
y
=
0
;
y
<
p_outpic
->
p
[
U_PLANE
].
i_lines
;
y
++
)
{
{
vlc_
memset
(
memset
(
p_outpic
->
p
[
U_PLANE
].
p_pixels
+
y
*
p_outpic
->
p
[
U_PLANE
].
i_pitch
,
p_outpic
->
p
[
U_PLANE
].
p_pixels
+
y
*
p_outpic
->
p
[
U_PLANE
].
i_pitch
,
u
,
p_outpic
->
p
[
U_PLANE
].
i_pitch
);
u
,
p_outpic
->
p
[
U_PLANE
].
i_pitch
);
vlc_
memset
(
memset
(
p_outpic
->
p
[
V_PLANE
].
p_pixels
+
y
*
p_outpic
->
p
[
V_PLANE
].
i_pitch
,
p_outpic
->
p
[
V_PLANE
].
p_pixels
+
y
*
p_outpic
->
p
[
V_PLANE
].
i_pitch
,
v
,
p_outpic
->
p
[
V_PLANE
].
i_pitch
);
v
,
p_outpic
->
p
[
V_PLANE
].
i_pitch
);
if
(
v
==
0
&&
u
!=
0
)
if
(
v
==
0
&&
u
!=
0
)
...
...
modules/video_filter/ripple.c
View file @
3172a979
...
@@ -185,13 +185,13 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -185,13 +185,13 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
p_pic
->
p
[
i_index
].
i_visible_pitch
+
i_offset
);
p_pic
->
p
[
i_index
].
i_visible_pitch
+
i_offset
);
p_in
-=
p_pic
->
p
[
i_index
].
i_pitch
;
p_in
-=
p_pic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
vlc_
memset
(
p_out
+
i_offset
,
black_pixel
,
-
i_offset
);
memset
(
p_out
+
i_offset
,
black_pixel
,
-
i_offset
);
}
}
else
else
{
{
vlc_memcpy
(
p_out
+
i_offset
,
p_in
,
vlc_memcpy
(
p_out
+
i_offset
,
p_in
,
p_pic
->
p
[
i_index
].
i_visible_pitch
-
i_offset
);
p_pic
->
p
[
i_index
].
i_visible_pitch
-
i_offset
);
vlc_
memset
(
p_out
,
black_pixel
,
i_offset
);
memset
(
p_out
,
black_pixel
,
i_offset
);
p_in
-=
p_pic
->
p
[
i_index
].
i_pitch
;
p_in
-=
p_pic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
}
}
...
...
modules/video_filter/sepia.c
View file @
3172a979
...
@@ -286,10 +286,10 @@ static void PlanarI420Sepia( picture_t *p_pic, picture_t *p_outpic,
...
@@ -286,10 +286,10 @@ static void PlanarI420Sepia( picture_t *p_pic, picture_t *p_outpic,
&
p_pic
->
p
[
Y_PLANE
].
p_pixels
[
i_dy_line2_start
+
x
+
8
],
&
p_pic
->
p
[
Y_PLANE
].
p_pixels
[
i_dy_line2_start
+
x
+
8
],
i_intensity_spread
);
i_intensity_spread
);
/* Copy precomputed values to destination memory location */
/* Copy precomputed values to destination memory location */
vlc_
memset
(
memset
(
&
p_outpic
->
p
[
U_PLANE
].
p_pixels
[
i_du_line_start
+
(
x
/
2
)],
&
p_outpic
->
p
[
U_PLANE
].
p_pixels
[
i_du_line_start
+
(
x
/
2
)],
filling_const_8u
,
8
);
filling_const_8u
,
8
);
vlc_
memset
(
memset
(
&
p_outpic
->
p
[
V_PLANE
].
p_pixels
[
i_dv_line_start
+
(
x
/
2
)],
&
p_outpic
->
p
[
V_PLANE
].
p_pixels
[
i_dv_line_start
+
(
x
/
2
)],
filling_const_8v
,
8
);
filling_const_8v
,
8
);
}
}
...
...
modules/video_filter/wave.c
View file @
3172a979
...
@@ -174,13 +174,13 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
...
@@ -174,13 +174,13 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
i_visible_pitch
+
i_offset
);
i_visible_pitch
+
i_offset
);
p_in
+=
p_pic
->
p
[
i_index
].
i_pitch
;
p_in
+=
p_pic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
vlc_
memset
(
p_out
+
i_offset
,
black_pixel
,
-
i_offset
);
memset
(
p_out
+
i_offset
,
black_pixel
,
-
i_offset
);
}
}
else
else
{
{
vlc_memcpy
(
p_out
+
i_offset
,
p_in
,
vlc_memcpy
(
p_out
+
i_offset
,
p_in
,
i_visible_pitch
-
i_offset
);
i_visible_pitch
-
i_offset
);
vlc_
memset
(
p_out
,
black_pixel
,
i_offset
);
memset
(
p_out
,
black_pixel
,
i_offset
);
p_in
+=
p_pic
->
p
[
i_index
].
i_pitch
;
p_in
+=
p_pic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
p_out
+=
p_outpic
->
p
[
i_index
].
i_pitch
;
}
}
...
...
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