{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint s_alpha = CLAMP ((gint) (alpha->alpha * 256), 0, 256);
gint i, j;
gint p[4], o[4];
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
dest += 4;
src += 4;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint i, j;
gint a, y, u, v;
gint r, g, b;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
src += 4;
dest += 4;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint s_alpha = CLAMP ((gint) (alpha->alpha * 256), 0, 256);
gint y, x;
gint matrix[12];
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
dest += 4;
src += 4;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint i, j;
gint a, y, u, v;
gint r, g, b;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
src += 4;
dest += 4;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint s_alpha = CLAMP ((gint) (alpha->alpha * 256), 0, 256);
gint y, x;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
dest += 4;
src += 4;
}
+ dest += out_stride - width * 4;
}
} else {
gint matrix[12];
dest += 4;
src += 4;
}
+ dest += out_stride - width * 4;
}
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint i, j;
gint a, y, u, v;
gint smin, smax;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
src += 4;
dest += 4;
}
+ dest += out_stride - width * 4;
}
} else {
gint matrix[12];
src += 4;
dest += 4;
}
+ dest += out_stride - width * 4;
}
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint s_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
gint i, j;
gint matrix[12];
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
dest += 4;
src += bpp;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint i, j;
gint a, y, u, v;
gint r, g, b;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
src += bpp;
dest += 4;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint s_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
gint i, j;
gint p[4], o[3];
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
dest += 4;
src += bpp;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint i, j;
gint a, y, u, v;
gint r, g, b;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
src += bpp;
dest += 4;
}
+ dest += out_stride - width * 4;
}
}
GstVideoFrame * out_frame, GstAlpha * alpha)
{
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint b_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
const guint8 *srcY, *srcY_tmp;
const guint8 *srcU, *srcU_tmp;
gint v_subs, h_subs;
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
srcU = srcU_tmp;
srcV = srcV_tmp;
}
+ dest += out_stride - width * 4;
}
} else {
gint matrix[12];
srcU = srcU_tmp;
srcV = srcV_tmp;
}
+ dest += out_stride - width * 4;
}
}
}
GstVideoFrame * out_frame, GstAlpha * alpha)
{
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint b_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
const guint8 *srcY, *srcY_tmp;
const guint8 *srcU, *srcU_tmp;
guint noise_level2 = alpha->noise_level2;
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
srcU = srcU_tmp;
srcV = srcV_tmp;
}
+ dest += out_stride - width * 4;
}
} else {
gint matrix[12];
srcU = srcU_tmp;
srcV = srcV_tmp;
}
+ dest += out_stride - width * 4;
}
}
}
GstVideoFrame * out_frame, GstAlpha * alpha)
{
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint b_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
const guint8 *srcY, *srcY_tmp;
const guint8 *srcU, *srcU_tmp;
gint p[4];
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
srcU = srcU_tmp;
srcV = srcV_tmp;
}
+ dest += out_stride - width * 4;
}
}
GstVideoFrame * out_frame, GstAlpha * alpha)
{
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint b_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
const guint8 *srcY, *srcY_tmp;
const guint8 *srcU, *srcU_tmp;
gint p[4];
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
srcU = srcU_tmp;
srcV = srcV_tmp;
}
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint s_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
gint i, j;
gint y, u, v;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
}
src = src_tmp + src_stride;
+ dest += out_stride - width * 4;
}
} else {
for (i = 0; i < height; i++) {
}
src = src_tmp + src_stride;
+ dest += out_stride - width * 4;
}
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint i, j;
gint a, y, u, v;
gint smin, smax;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
}
src = src_tmp + src_stride;
+ dest += out_stride - width * 4;
}
} else {
for (i = 0; i < height; i++) {
}
src = src_tmp + src_stride;
+ dest += out_stride - width * 4;
}
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint s_alpha = CLAMP ((gint) (alpha->alpha * 255), 0, 255);
gint i, j;
gint p[4], o[4];
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
}
src = src_tmp + src_stride;
+ dest += out_stride - width * 4;
}
}
{
const guint8 *src;
guint8 *dest;
- gint width, height;
+ gint width, height, out_stride;
gint i, j;
gint a, y, u, v;
gint r, g, b;
src = GST_VIDEO_FRAME_PLANE_DATA (in_frame, 0);
dest = GST_VIDEO_FRAME_PLANE_DATA (out_frame, 0);
+ out_stride = GST_VIDEO_FRAME_PLANE_STRIDE (out_frame, 0);
width = GST_VIDEO_FRAME_WIDTH (in_frame);
height = GST_VIDEO_FRAME_HEIGHT (in_frame);
}
src = src_tmp + src_stride;
+ dest += out_stride - width * 4;
}
}