gi-gstvideo-1.0.12: GStreamerVideo bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GstVideo.Structs.VideoInfo

Contents

Description

Information describing image properties. This information can be filled in from GstCaps with videoInfoFromCaps. The information is also used to store the specific video info when mapping a video frame with videoFrameMap.

Use the provided macros to access the info in this structure.

Synopsis

Exported types

newtype VideoInfo Source #

Instances

BoxedObject VideoInfo Source # 
(~) AttrOpTag tag AttrSet => Constructible VideoInfo tag Source # 

Methods

new :: MonadIO m => (ManagedPtr VideoInfo -> VideoInfo) -> [AttrOp VideoInfo tag] -> m VideoInfo #

((~) * info (ResolveVideoInfoMethod t VideoInfo), MethodInfo * info VideoInfo p) => IsLabel t (VideoInfo -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> VideoInfo -> p #

((~) * info (ResolveVideoInfoMethod t VideoInfo), MethodInfo * info VideoInfo p) => IsLabelProxy t (VideoInfo -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> VideoInfo -> p #

HasAttributeList * VideoInfo Source # 
((~) * signature (m Caps), MonadIO m) => MethodInfo * VideoInfoToCapsMethodInfo VideoInfo signature Source # 
((~) * signature (VideoFormat -> Word32 -> Word32 -> m ()), MonadIO m) => MethodInfo * VideoInfoSetFormatMethodInfo VideoInfo signature Source # 
((~) * signature (VideoInfo -> m Bool), MonadIO m) => MethodInfo * VideoInfoIsEqualMethodInfo VideoInfo signature Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * VideoInfoInitMethodInfo VideoInfo signature Source # 
((~) * signature (Caps -> m Bool), MonadIO m) => MethodInfo * VideoInfoFromCapsMethodInfo VideoInfo signature Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * VideoInfoFreeMethodInfo VideoInfo signature Source # 
((~) * signature (m VideoInfo), MonadIO m) => MethodInfo * VideoInfoCopyMethodInfo VideoInfo signature Source # 
((~) * signature (Format -> Int64 -> Format -> Int64 -> m Bool), MonadIO m) => MethodInfo * VideoInfoConvertMethodInfo VideoInfo signature Source # 
((~) * signature (VideoAlignment -> m ()), MonadIO m) => MethodInfo * VideoInfoAlignMethodInfo VideoInfo signature Source # 
type AttributeList VideoInfo Source # 

newZeroVideoInfo :: MonadIO m => m VideoInfo Source #

Construct a VideoInfo struct initialized to zero.

Methods

align

videoInfoAlign Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> VideoAlignment

align: alignment parameters

-> m () 

Adjust the offset and stride fields in info so that the padding and stride alignment in align is respected.

Extra padding will be added to the right side when stride alignment padding is required and align will be updated with the new padding values.

convert

videoInfoConvert Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> Format

srcFormat: Format of the srcValue

-> Int64

srcValue: value to convert

-> Format

destFormat: Format of the destValue

-> Int64

destValue: pointer to destination value

-> m Bool

Returns: TRUE if the conversion was successful.

Converts among various Format 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 used to handle pad queries of the type GST_QUERY_CONVERT.

copy

videoInfoCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> m VideoInfo

Returns: a new VideoInfo. free with gst_video_info_free.

Copy a GstVideoInfo structure.

Since: 1.6

free

videoInfoFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> m () 

Free a GstVideoInfo structure previously allocated with videoInfoNew or videoInfoCopy.

Since: 1.6

fromCaps

videoInfoFromCaps Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> Caps

caps: a Caps

-> m Bool

Returns: TRUE if caps could be parsed

Parse caps and update info.

init

videoInfoInit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> m () 

Initialize info with default values.

isEqual

videoInfoIsEqual Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> VideoInfo

other: a VideoInfo

-> m Bool

Returns: True if info and other are equal, else False.

Compares two VideoInfo and returns whether they are equal or not

new

videoInfoNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m VideoInfo

Returns: a new VideoInfo. free with videoInfoFree.

Allocate a new VideoInfo that is also initialized with videoInfoInit.

Since: 1.6

setFormat

videoInfoSetFormat Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> VideoFormat

format: the format

-> Word32

width: a width

-> Word32

height: a height

-> m () 

Set the default info for a video frame of format and width and height.

Note: This initializes info first, no values are preserved. This function does not set the offsets correctly for interlaced vertically subsampled formats.

toCaps

videoInfoToCaps Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> m Caps

Returns: a new Caps containing the info of info.

Convert the values of info into a Caps.

Properties

chromaSite

colorimetry

finfo

flags

fpsD

fpsN

height

interlaceMode

parD

parN

size

views

width