port to new video api

This commit is contained in:
Wim Taymans 2011-07-04 16:09:33 +02:00
parent ead60adb33
commit 476e2184f4
2 changed files with 440 additions and 314 deletions

File diff suppressed because it is too large Load diff

View file

@ -72,8 +72,7 @@ struct _GstAlpha
/* caps */ /* caps */
GStaticMutex lock; GStaticMutex lock;
GstVideoFormat in_format, out_format; GstVideoInfo in_info, out_info;
gint width, height;
gboolean in_sdtv, out_sdtv; gboolean in_sdtv, out_sdtv;
/* properties */ /* properties */
@ -93,7 +92,7 @@ struct _GstAlpha
gboolean prefer_passthrough; gboolean prefer_passthrough;
/* processing function */ /* processing function */
void (*process) (const guint8 *src, guint8 *dest, gint width, gint height, GstAlpha *alpha); void (*process) (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha);
/* precalculated values for chroma keying */ /* precalculated values for chroma keying */
gint8 cb, cr; gint8 cb, cr;