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 */
GStaticMutex lock;
GstVideoFormat in_format, out_format;
gint width, height;
GstVideoInfo in_info, out_info;
gboolean in_sdtv, out_sdtv;
/* properties */
@ -93,7 +92,7 @@ struct _GstAlpha
gboolean prefer_passthrough;
/* 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 */
gint8 cb, cr;