Valadoc | Vala | Tutorial | API-References | Markup

video_format_get_row_stride


Description:

public int video_format_get_row_stride (VideoFormat format, ref int component, ref int width)

Calculates the row stride (number of bytes from one row of pixels to the next) for the video component with an index of component . For YUV video, Y, U, and V have component indices of 0, 1, and 2, respectively. For RGB video, R, G, and B have component indicies of 0, 1, and 2, respectively. Alpha channels, if present, have a component index of 3. The width parameter always represents the width of the video, not the component.

Parameters:

format a VideoFormat
width the width of video
component the component index

Returns:

row stride of component component

Namespace: Gst
Package: gstreamer-video-0.10