After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311401 - alpha capsnego broken
alpha capsnego broken
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.10
Other Linux
: High normal
: 0.8.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-24 12:44 UTC by Wouter Paesen
Modified: 2005-07-27 16:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for the reported problem (6.94 KB, patch)
2005-07-24 12:46 UTC, Wouter Paesen
none Details | Review

Description Wouter Paesen 2005-07-24 12:44:10 UTC
gstalpha failes to negotiate correct which causes the following 
pipeline to stop working after the first processed frame :

SRC_CAPS="video/x-raw-yuv,format=(fourcc)I420,framerate=(double)5.625"
v4lsrc autoprobe=false autoprobe-fps=false ! $SRC_CAPS ! \
          alpha method=3 target_b=255 target_g=0 target_r=0 ! videomixer ! \
          ffmpegcolorspace !  videorate ! \
          video/x-raw-rgb,framerate=(double)5.0 ! autovideosink
Comment 1 Wouter Paesen 2005-07-24 12:46:15 UTC
Created attachment 49676 [details] [review]
Fix for the reported problem

This patch implements a getcaps function on both sink and source pads.	It also
moves the delayed linking (done in the first call to the chain function) to the
link functions.

It also removes an unnecessary multiplication (per pixel) in the chroma
funtions.
Comment 2 Ronald Bultje 2005-07-27 16:08:06 UTC
2005-07-27  Wouter Paesen  <wouter@kangaroot.net>

        Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>

        * gst/alpha/gstalpha.c: (gst_alpha_init), (gst_alpha_get_caps),
        (gst_alpha_sink_link), (gst_alpha_chroma_key_ayuv),
        (gst_alpha_chroma_key_i420), (gst_alpha_init_params),
        (gst_alpha_chain):
          Fix capsnego (#311401).