Lines Matching +refs:a +refs:frame

230 gst_video_overlay_rectangle_premultiply_0 (GstVideoFrame * frame)  in gst_video_overlay_rectangle_premultiply_0()  argument
233 int width = GST_VIDEO_FRAME_WIDTH (frame); in gst_video_overlay_rectangle_premultiply_0()
234 int height = GST_VIDEO_FRAME_HEIGHT (frame); in gst_video_overlay_rectangle_premultiply_0()
235 int stride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0); in gst_video_overlay_rectangle_premultiply_0()
236 guint8 *data = GST_VIDEO_FRAME_PLANE_DATA (frame, 0); in gst_video_overlay_rectangle_premultiply_0()
244 int a = line[0]; in gst_video_overlay_rectangle_premultiply_0() local
245 line[1] = line[1] * a / 255; in gst_video_overlay_rectangle_premultiply_0()
246 line[2] = line[2] * a / 255; in gst_video_overlay_rectangle_premultiply_0()
247 line[3] = line[3] * a / 255; in gst_video_overlay_rectangle_premultiply_0()
255 gst_video_overlay_rectangle_premultiply_3 (GstVideoFrame * frame) in gst_video_overlay_rectangle_premultiply_3() argument
258 int width = GST_VIDEO_FRAME_WIDTH (frame); in gst_video_overlay_rectangle_premultiply_3()
259 int height = GST_VIDEO_FRAME_HEIGHT (frame); in gst_video_overlay_rectangle_premultiply_3()
260 int stride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0); in gst_video_overlay_rectangle_premultiply_3()
261 guint8 *data = GST_VIDEO_FRAME_PLANE_DATA (frame, 0); in gst_video_overlay_rectangle_premultiply_3()
269 int a = line[3]; in gst_video_overlay_rectangle_premultiply_3() local
270 line[0] = line[0] * a / 255; in gst_video_overlay_rectangle_premultiply_3()
271 line[1] = line[1] * a / 255; in gst_video_overlay_rectangle_premultiply_3()
272 line[2] = line[2] * a / 255; in gst_video_overlay_rectangle_premultiply_3()
280 gst_video_overlay_rectangle_premultiply (GstVideoFrame * frame) in gst_video_overlay_rectangle_premultiply() argument
284 alpha_offset = GST_VIDEO_FRAME_COMP_POFFSET (frame, 3); in gst_video_overlay_rectangle_premultiply()
287 gst_video_overlay_rectangle_premultiply_0 (frame); in gst_video_overlay_rectangle_premultiply()
290 gst_video_overlay_rectangle_premultiply_3 (frame); in gst_video_overlay_rectangle_premultiply()
300 gst_video_overlay_rectangle_unpremultiply_0 (GstVideoFrame * frame) in gst_video_overlay_rectangle_unpremultiply_0() argument
303 int width = GST_VIDEO_FRAME_WIDTH (frame); in gst_video_overlay_rectangle_unpremultiply_0()
304 int height = GST_VIDEO_FRAME_HEIGHT (frame); in gst_video_overlay_rectangle_unpremultiply_0()
305 int stride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0); in gst_video_overlay_rectangle_unpremultiply_0()
306 guint8 *data = GST_VIDEO_FRAME_PLANE_DATA (frame, 0); in gst_video_overlay_rectangle_unpremultiply_0()
314 int a = line[0]; in gst_video_overlay_rectangle_unpremultiply_0() local
315 if (a) { in gst_video_overlay_rectangle_unpremultiply_0()
316 line[1] = MIN ((line[1] * 255 + a / 2) / a, 255); in gst_video_overlay_rectangle_unpremultiply_0()
317 line[2] = MIN ((line[2] * 255 + a / 2) / a, 255); in gst_video_overlay_rectangle_unpremultiply_0()
318 line[3] = MIN ((line[3] * 255 + a / 2) / a, 255); in gst_video_overlay_rectangle_unpremultiply_0()
327 gst_video_overlay_rectangle_unpremultiply_3 (GstVideoFrame * frame) in gst_video_overlay_rectangle_unpremultiply_3() argument
330 int width = GST_VIDEO_FRAME_WIDTH (frame); in gst_video_overlay_rectangle_unpremultiply_3()
331 int height = GST_VIDEO_FRAME_HEIGHT (frame); in gst_video_overlay_rectangle_unpremultiply_3()
332 int stride = GST_VIDEO_FRAME_PLANE_STRIDE (frame, 0); in gst_video_overlay_rectangle_unpremultiply_3()
333 guint8 *data = GST_VIDEO_FRAME_PLANE_DATA (frame, 0); in gst_video_overlay_rectangle_unpremultiply_3()
341 int a = line[3]; in gst_video_overlay_rectangle_unpremultiply_3() local
342 if (a) { in gst_video_overlay_rectangle_unpremultiply_3()
343 line[0] = MIN ((line[0] * 255 + a / 2) / a, 255); in gst_video_overlay_rectangle_unpremultiply_3()
344 line[1] = MIN ((line[1] * 255 + a / 2) / a, 255); in gst_video_overlay_rectangle_unpremultiply_3()
345 line[2] = MIN ((line[2] * 255 + a / 2) / a, 255); in gst_video_overlay_rectangle_unpremultiply_3()
354 gst_video_overlay_rectangle_unpremultiply (GstVideoFrame * frame) in gst_video_overlay_rectangle_unpremultiply() argument
358 alpha_offset = GST_VIDEO_FRAME_COMP_POFFSET (frame, 3); in gst_video_overlay_rectangle_unpremultiply()
361 gst_video_overlay_rectangle_unpremultiply_0 (frame); in gst_video_overlay_rectangle_unpremultiply()
364 gst_video_overlay_rectangle_unpremultiply_3 (frame); in gst_video_overlay_rectangle_unpremultiply()
376 GstVideoFrame frame; in gst_cairo_overlay_transform_ip() local
404 if (!gst_video_frame_map (&frame, &overlay->info, buf, GST_MAP_READWRITE)) { in gst_cairo_overlay_transform_ip()
408 frame.buffer = NULL; in gst_cairo_overlay_transform_ip()
418 gst_video_overlay_rectangle_premultiply (&frame); in gst_cairo_overlay_transform_ip()
421 cairo_image_surface_create_for_data (GST_VIDEO_FRAME_PLANE_DATA (&frame, in gst_cairo_overlay_transform_ip()
422 0), format, GST_VIDEO_FRAME_WIDTH (&frame), in gst_cairo_overlay_transform_ip()
423 GST_VIDEO_FRAME_HEIGHT (&frame), GST_VIDEO_FRAME_PLANE_STRIDE (&frame, in gst_cairo_overlay_transform_ip()
491 gst_video_overlay_composition_blend (composition, &frame); in gst_cairo_overlay_transform_ip()
497 gst_video_overlay_rectangle_unpremultiply (&frame); in gst_cairo_overlay_transform_ip()
500 if (frame.buffer) { in gst_cairo_overlay_transform_ip()
501 gst_video_frame_unmap (&frame); in gst_cairo_overlay_transform_ip()