Import line: | GstVideo = imports.gi.GstVideo; |
GIR File: | GstVideo-0.10.gir |
C documentation: | GstVideo |
Namespace : | GstVideo |
Show / Hide Inherited methods, properties and signals |
Properties | |
---|---|
String GstVideo.VIDEO_BLUE_MASK_15 : 0x001f
|
|
Number GstVideo.VIDEO_BLUE_MASK_15_INT : 31
|
|
String GstVideo.VIDEO_BLUE_MASK_16 : 0x001f
|
|
Number GstVideo.VIDEO_BLUE_MASK_16_INT : 31
|
|
String GstVideo.VIDEO_BYTE1_MASK_24 : 0x00FF0000
|
|
Number GstVideo.VIDEO_BYTE1_MASK_24_INT : 16711680
|
|
String GstVideo.VIDEO_BYTE1_MASK_32 : 0xFF000000
|
|
Number GstVideo.VIDEO_BYTE1_MASK_32_INT : 2147483647
|
|
String GstVideo.VIDEO_BYTE2_MASK_24 : 0x0000FF00
|
|
Number GstVideo.VIDEO_BYTE2_MASK_24_INT : 65280
|
|
String GstVideo.VIDEO_BYTE2_MASK_32 : 0x00FF0000
|
|
Number GstVideo.VIDEO_BYTE2_MASK_32_INT : 16711680
|
|
String GstVideo.VIDEO_BYTE3_MASK_24 : 0x000000FF
|
|
Number GstVideo.VIDEO_BYTE3_MASK_24_INT : 255
|
|
String GstVideo.VIDEO_BYTE3_MASK_32 : 0x0000FF00
|
|
Number GstVideo.VIDEO_BYTE3_MASK_32_INT : 65280
|
|
String GstVideo.VIDEO_BYTE4_MASK_32 : 0x000000FF
|
|
Number GstVideo.VIDEO_BYTE4_MASK_32_INT : 255
|
|
String GstVideo.VIDEO_CAPS_RGB_15 : video/x-raw-rgb, bpp = (int) 16, depth = (int) 15, endianness = (int) BYTE_ORDER, red_mask = (int)
|
|
String GstVideo.VIDEO_CAPS_RGB_16 : video/x-raw-rgb, bpp = (int) 16, depth = (int) 16, endianness = (int) BYTE_ORDER, red_mask = (int)
|
|
String GstVideo.VIDEO_FPS_RANGE : (fraction) [ 0, max ]
|
|
String GstVideo.VIDEO_GREEN_MASK_15 : 0x03e0
|
|
Number GstVideo.VIDEO_GREEN_MASK_15_INT : 992
|
|
String GstVideo.VIDEO_GREEN_MASK_16 : 0x07e0
|
|
Number GstVideo.VIDEO_GREEN_MASK_16_INT : 2016
|
|
String GstVideo.VIDEO_RED_MASK_15 : 0x7c00
|
|
Number GstVideo.VIDEO_RED_MASK_15_INT : 31744
|
|
String GstVideo.VIDEO_RED_MASK_16 : 0xf800
|
|
Number GstVideo.VIDEO_RED_MASK_16_INT : 63488
|
|
String GstVideo.VIDEO_SIZE_RANGE : (int) [ 1, max ]
|
None |
Method / Constructor | Defined By | |
---|---|---|
GstVideo.calculate_display_ratio
(Object out_values, Number dar_d, Number video_width, Number video_height, Number video_par_n, Number video_par_d, Number display_par_n, Number display_par_d)
:
Boolean
Given the Pixel Aspect Ratio and size of an input video frame, and the pixel aspect ratio of the intended display device, calculates the actual display ratio the video will be rendered with.
Given the Pixel Aspect Ratio and size of an input video frame, and the pixel aspect ratio of the intended display device, calculates the actual display ratio the video will be rendered with. dar_n and dar_d parameters. The return value is FALSE in the case of integer overflow or other error.
|
GstVideo | |
Creates a new Still Frame event.
Creates a new Still Frame event. If in_still is TRUE, then the event represents the start of a still frame sequence. If it is FALSE, then the event ends a still frame sequence. To parse an event created by gst_video_event_new_still_frame() use gst_video_event_parse_still_frame().
|
GstVideo | |
Parse a GstEvent, identify if it is a Still Frame event, and return the still-frame state from the event if it is.
Parse a GstEvent, identify if it is a Still Frame event, and return the still-frame state from the event if it is. If the event represents the start of a still frame, the in_still variable will be set to TRUE, otherwise FALSE. It is OK to pass NULL for the in_still variable order to just check whether the event is a valid still-frame event. Create a still frame event using gst_video_event_new_still_frame()
|
GstVideo | |
GstVideo.format_convert
(VideoFormat format, Number width, Number height, Number fps_n, Number fps_d, Format src_format, Number src_value, Format dest_format, Object out_values)
:
Boolean
Converts among various GstFormat types.
Converts among various GstFormat types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw video, GST_FORMAT_DEFAULT corresponds to video frames. This function can be to handle pad queries of the type GST_QUERY_CONVERT.
|
GstVideo | |
Converts a FOURCC value into the corresponding GstVideoFormat.
Converts a FOURCC value into the corresponding GstVideoFormat. If the FOURCC cannot be represented by GstVideoFormat, GST_VIDEO_FORMAT_UNKNOWN is returned.
|
GstVideo | |
Calculates the height of the component.
Calculates the height of the component. See of the component index.
|
GstVideo | |
GstVideo.format_get_component_offset
(VideoFormat format, Number component, Number width, Number height)
:
Number
Calculates the offset (in bytes) of the first pixel of the component with index component.
Calculates the offset (in bytes) of the first pixel of the component with index component. For packed formats, this will typically be a small integer (0, 1, 2, 3). For planar formats, this will be a (relatively) large offset to the beginning of the second or third component planes. See gst_video_format_get_row_stride for a description of the component index.
|
GstVideo | |
Calculates the width of the component.
Calculates the width of the component. See of the component index.
|
GstVideo | |
Calculates the pixel stride (number of bytes from one pixel to the pixel to its immediate left) for the video component with an index of component.
Calculates the pixel stride (number of bytes from one pixel to the pixel to its immediate left) for the video component with an index of component. See gst_video_format_get_row_stride for a description of the component index.
|
GstVideo | |
Calculates the row stride (number of bytes from one row of pixels to the next) for the video component with an index of component.
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.
|
GstVideo | |
Calculates the total number of bytes in the raw video format.
Calculates the total number of bytes in the raw video format. This number should be used when allocating a buffer for raw video.
|
GstVideo | |
Returns TRUE or FALSE depending on if the video format provides an alpha channel.
Returns TRUE or FALSE depending on if the video format provides an alpha channel.
|
GstVideo | |
Determine whether the video format is an RGB format.
Determine whether the video format is an RGB format.
|
GstVideo | |
Determine whether the video format is a YUV format.
Determine whether the video format is a YUV format.
|
GstVideo | |
GstVideo.format_new_caps
(VideoFormat format, Number width, Number height, Number framerate_n, Number framerate_d, Number par_n, Number par_d)
:
Gst.Caps
Creates a new GstCaps object based on the parameters provided.
Creates a new GstCaps object based on the parameters provided.
|
GstVideo | |
GstVideo.format_new_caps_interlaced
(VideoFormat format, Number width, Number height, Number framerate_n, Number framerate_d, Number par_n, Number par_d, Boolean interlaced)
:
Gst.Caps
Creates a new GstCaps object based on the parameters provided.
Creates a new GstCaps object based on the parameters provided.
|
GstVideo | |
Determines the GstVideoFormat of caps and places it in the location pointed to by format.
Determines the GstVideoFormat of caps and places it in the location pointed to by format. Extracts the size of the video and places it in the location pointed to by width and height. If caps does not represent one of the raw video formats listed in GstVideoFormat, the function will fail and return FALSE.
|
GstVideo | |
GstVideo | ||
Converts a GstVideoFormat value into the corresponding FOURCC.
Converts a GstVideoFormat value into the corresponding FOURCC. Only a few YUV formats have corresponding FOURCC values. If format has no corresponding FOURCC value, 0 is returned.
|
GstVideo | |
A convenience function to retrieve a GValue holding the framerate from the caps on a pad.
A convenience function to retrieve a GValue holding the framerate from the caps on a pad. The pad needs to have negotiated caps containing a framerate property. do not contain a framerate.
|
GstVideo | |
Inspect the caps of the provided pad and retrieve the width and height of the video frames it is configured for.
|
GstVideo | |
Extracts the chroma site used by the caps.
Extracts the chroma site used by the caps. Possible values are "mpeg2" for MPEG-2 style chroma siting (co-sited horizontally, halfway-sited vertically), "jpeg" for JPEG and Theora style chroma siting (halfway-sited both horizontally and vertically). Other chroma site values are possible, but uncommon. When no chroma site is specified in the caps, it should be assumed to be "mpeg2".
|
GstVideo | |
Extracts the color matrix used by the caps.
Extracts the color matrix used by the caps. Possible values are "sdtv" for the standard definition color matrix (as specified in Rec. ITU-R BT.470-6) or "hdtv" for the high definition color matrix (as specified in Rec. ITU-R BT.709)
|
GstVideo | |
Extracts the frame rate from caps and places the values in the locations pointed to by fps_n and fps_d.
Extracts the frame rate from caps and places the values in the locations pointed to by fps_n and fps_d. Returns TRUE if the values could be parsed correctly, FALSE if not. This function can be used with GstCaps that have any media type; it is not limited to formats handled by GstVideoFormat.
|
GstVideo | |
Extracts the pixel aspect ratio from caps and places the values in the locations pointed to by par_n and par_d.
Extracts the pixel aspect ratio from caps and places the values in the locations pointed to by par_n and par_d. Returns TRUE if the values could be parsed correctly, FALSE if not. This function can be used with GstCaps that have any media type; it is not limited to formats handled by GstVideoFormat.
|
GstVideo |
None |