Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
9e2f23c5
Commit
9e2f23c5
authored
Mar 27, 2012
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
effectv: fix strides
parent
e310ee82
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
gst/effectv/gstaging.c
gst/effectv/gstaging.c
+1
-1
gst/effectv/gstdice.c
gst/effectv/gstdice.c
+1
-0
gst/effectv/gstrev.c
gst/effectv/gstrev.c
+3
-3
gst/effectv/gstwarp.c
gst/effectv/gstwarp.c
+4
-4
No files found.
gst/effectv/gstaging.c
View file @
9e2f23c5
...
...
@@ -322,7 +322,7 @@ gst_agingtv_transform_frame (GstVideoFilter * filter, GstVideoFrame * in_frame,
width
=
GST_VIDEO_FRAME_WIDTH
(
in_frame
);
height
=
GST_VIDEO_FRAME_HEIGHT
(
in_frame
);
stride
=
GST_VIDEO_FRAME_PLANE_STRIDE
(
in_frame
,
0
);
video_size
=
stride
*
height
;
video_size
=
stride
*
height
/
4
;
src
=
GST_VIDEO_FRAME_PLANE_DATA
(
in_frame
,
0
);
dest
=
GST_VIDEO_FRAME_PLANE_DATA
(
out_frame
,
0
);
...
...
gst/effectv/gstdice.c
View file @
9e2f23c5
...
...
@@ -139,6 +139,7 @@ gst_dicetv_transform_frame (GstVideoFilter * vfilter, GstVideoFrame * in_frame,
g_map_width
=
filter
->
g_map_width
;
dicemap
=
filter
->
dicemap
;
video_stride
/=
4
;
map_i
=
0
;
for
(
map_y
=
0
;
map_y
<
g_map_height
;
map_y
++
)
{
...
...
gst/effectv/gstrev.c
View file @
9e2f23c5
...
...
@@ -129,7 +129,7 @@ gst_revtv_transform_frame (GstVideoFilter * vfilter, GstVideoFrame * in_frame,
height
=
GST_VIDEO_FRAME_HEIGHT
(
in_frame
);
/* Clear everything to black */
memset
(
dest
,
0
,
dstride
*
height
*
sizeof
(
guint32
)
);
memset
(
dest
,
0
,
dstride
*
height
);
GST_OBJECT_LOCK
(
filter
);
linespace
=
filter
->
linespace
;
...
...
@@ -138,7 +138,7 @@ gst_revtv_transform_frame (GstVideoFilter * vfilter, GstVideoFrame * in_frame,
/* draw the offset lines */
for
(
y
=
0
;
y
<
height
;
y
+=
linespace
)
{
for
(
x
=
0
;
x
<=
width
;
x
++
)
{
nsrc
=
src
+
(
y
*
sstride
)
+
x
;
nsrc
=
src
+
(
y
*
sstride
/
4
)
+
x
;
/* Calc Y Value for curpix */
R
=
((
*
nsrc
)
&
0xff0000
)
>>
(
16
-
1
);
...
...
@@ -148,7 +148,7 @@ gst_revtv_transform_frame (GstVideoFilter * vfilter, GstVideoFrame * in_frame,
yval
=
y
-
((
short
)
(
R
+
G
+
B
)
/
vscale
);
if
(
yval
>
0
)
{
dest
[
x
+
(
yval
*
dstride
)]
=
THE_COLOR
;
dest
[
x
+
(
yval
*
dstride
/
4
)]
=
THE_COLOR
;
}
}
}
...
...
gst/effectv/gstwarp.c
View file @
9e2f23c5
...
...
@@ -154,8 +154,8 @@ gst_warptv_transform_frame (GstVideoFilter * filter, GstVideoFrame * in_frame,
src
=
GST_VIDEO_FRAME_PLANE_DATA
(
in_frame
,
0
);
dest
=
GST_VIDEO_FRAME_PLANE_DATA
(
out_frame
,
0
);
sstride
=
GST_VIDEO_FRAME_PLANE_STRIDE
(
in_frame
,
0
)
/
4
;
dstride
=
GST_VIDEO_FRAME_PLANE_STRIDE
(
out_frame
,
0
)
/
4
;
sstride
=
GST_VIDEO_FRAME_PLANE_STRIDE
(
in_frame
,
0
);
dstride
=
GST_VIDEO_FRAME_PLANE_STRIDE
(
out_frame
,
0
);
width
=
GST_VIDEO_FRAME_WIDTH
(
in_frame
);
height
=
GST_VIDEO_FRAME_HEIGHT
(
in_frame
);
...
...
@@ -198,9 +198,9 @@ gst_warptv_transform_frame (GstVideoFilter * filter, GstVideoFrame * in_frame,
else
if
(
dy
>
maxy
)
dy
=
maxy
;
dest
[
x
]
=
src
[
dy
*
sstride
+
dx
];
dest
[
x
]
=
src
[
dy
*
sstride
/
4
+
dx
];
}
dest
+=
dstride
;
dest
+=
dstride
/
4
;
}
warptv
->
tval
=
(
warptv
->
tval
+
1
)
&
511
;
...
...
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