Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thibault Saunier
gst-plugins-good
Commits
122cdbe8
Commit
122cdbe8
authored
Aug 24, 2005
by
Thomas Vander Stichele
Browse files
enable more; update for basetransform
Original commit message from CVS: enable more; update for basetransform
parent
05f75a3c
Changes
4
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
122cdbe8
2005-08-24 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
* ext/Makefile.am:
lame and mpegaudioparse seem to work
* gst/videobox/gstvideobox.c: (gst_video_box_class_init),
(gst_video_box_transform_caps), (gst_video_box_get_unit_size):
update for basetransform changes
2005-08-24 Jan Schmidt <thaytan@mad.scientist.com>
* gst/level/gstlevel.c: (gst_level_message_new):
GST_MESSAGE_SRC became a GObject
...
...
@@ -5,7 +14,7 @@
2005-08-23 Stefan Kost <ensonic@users.sf.net>
* ext/speex/gstspeexenc.h:
Fixed include path of adapter
Fixed include path of adapter
2005-08-23 Wim Taymans <wim@fluendo.com>
...
...
configure.ac
View file @
122cdbe8
...
...
@@ -294,6 +294,7 @@ GST_PLUGINS_ALL="\
goom \
law \
level \
mpegaudioparse \
qtdemux \
realmedia \
rtp \
...
...
ext/Makefile.am
View file @
122cdbe8
...
...
@@ -172,11 +172,11 @@ endif
LADSPA_DIR
=
# endif
#
if USE_LAME
#
LAME_DIR=lame
#
else
if
USE_LAME
LAME_DIR
=
lame
else
LAME_DIR
=
#
endif
endif
# if USE_LCS
# LCS_DIR=lcs
...
...
gst/videobox/gstvideobox.c
View file @
122cdbe8
...
...
@@ -126,10 +126,11 @@ static void gst_video_box_get_property (GObject * object, guint prop_id,
GValue
*
value
,
GParamSpec
*
pspec
);
static
GstCaps
*
gst_video_box_transform_caps
(
GstBaseTransform
*
trans
,
GstPad
*
pad
,
GstCaps
*
from
);
GstPad
Direction
direction
,
GstCaps
*
from
);
static
gboolean
gst_video_box_set_caps
(
GstBaseTransform
*
trans
,
GstCaps
*
in
,
GstCaps
*
out
);
static
guint
gst_video_box_get_size
(
GstBaseTransform
*
trans
,
GstCaps
*
caps
);
static
gboolean
gst_video_box_get_unit_size
(
GstBaseTransform
*
trans
,
GstCaps
*
caps
,
guint
*
size
);
static
GstFlowReturn
gst_video_box_transform
(
GstBaseTransform
*
trans
,
GstBuffer
*
in
,
GstBuffer
*
out
);
...
...
@@ -209,7 +210,7 @@ gst_video_box_class_init (GstVideoBoxClass * klass)
trans_class
->
transform_caps
=
gst_video_box_transform_caps
;
trans_class
->
set_caps
=
gst_video_box_set_caps
;
trans_class
->
get_size
=
gst_video_box_get_size
;
trans_class
->
get_
unit_
size
=
gst_video_box_get_
unit_
size
;
trans_class
->
transform
=
gst_video_box_transform
;
}
...
...
@@ -325,17 +326,17 @@ gst_video_box_get_property (GObject * object, guint prop_id, GValue * value,
}
static
GstCaps
*
gst_video_box_transform_caps
(
GstBaseTransform
*
trans
,
GstPad
*
pad
,
GstCaps
*
from
)
gst_video_box_transform_caps
(
GstBaseTransform
*
trans
,
GstPadDirection
direction
,
GstCaps
*
from
)
{
GstVideoBox
*
video_box
;
GstCaps
*
to
;
GstStructure
*
structure
;
gint
dir
ection
,
i
,
tmp
;
gint
dir
,
i
,
tmp
;
video_box
=
GST_VIDEO_BOX
(
trans
);
to
=
gst_caps_copy
(
from
);
direction
=
(
pad
==
trans
->
sinkpad
)
?
-
1
:
1
;
dir
=
(
direction
=
=
GST_PAD_SINK
)
?
-
1
:
1
;
/* FIXME, include AYUV */
for
(
i
=
0
;
i
<
gst_caps_get_size
(
to
);
i
++
)
{
...
...
@@ -390,25 +391,26 @@ gst_video_box_set_caps (GstBaseTransform * trans, GstCaps * in, GstCaps * out)
#define GST_VIDEO_I420_SIZE(w,h) (GST_VIDEO_I420_V_OFFSET(w,h)+(GST_VIDEO_I420_V_ROWSTRIDE(w)*ROUND_UP_2(h)/2))
static
guint
gst_video_box_get_size
(
GstBaseTransform
*
trans
,
GstCaps
*
caps
)
static
gboolean
gst_video_box_get_unit_size
(
GstBaseTransform
*
trans
,
GstCaps
*
caps
,
guint
*
size
)
{
guint
size
=
-
1
;
GstVideoBox
*
video_box
;
g_return_val_if_fail
(
size
,
FALSE
);
video_box
=
GST_VIDEO_BOX
(
trans
);
if
(
gst_caps_is_equal
(
caps
,
GST_PAD_CAPS
(
trans
->
sinkpad
)))
{
size
=
GST_VIDEO_I420_SIZE
(
video_box
->
in_width
,
video_box
->
in_height
);
*
size
=
GST_VIDEO_I420_SIZE
(
video_box
->
in_width
,
video_box
->
in_height
);
}
else
if
(
gst_caps_is_equal
(
caps
,
GST_PAD_CAPS
(
trans
->
srcpad
)))
{
if
(
video_box
->
use_alpha
)
{
size
=
video_box
->
out_height
*
video_box
->
out_height
*
4
;
*
size
=
video_box
->
out_height
*
video_box
->
out_height
*
4
;
}
else
{
size
=
GST_VIDEO_I420_SIZE
(
video_box
->
out_width
,
video_box
->
out_height
);
*
size
=
GST_VIDEO_I420_SIZE
(
video_box
->
out_width
,
video_box
->
out_height
);
}
}
return
size
;
return
TRUE
;
}
static
int
yuv_colors_Y
[]
=
{
16
,
150
,
29
};
...
...
Write
Preview
Supports
Markdown
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