Versions in this module Expand all Collapse all v1 v1.0.0 Mar 29, 2024 Changes in this version + const CapsFeatureFormatInterlaced + const ColorimetryBT2020 + const ColorimetryBT202010 + const ColorimetryBT2100HLG + const ColorimetryBT2100PQ + const ColorimetryBT601 + const ColorimetryBT709 + const ColorimetrySMPTE240M + const ColorimetrySRRGB + const TagVideo + const TagVideoColorspage + const TagVideoOrientation + const TagVideoSize + var TypeFormat = glib.Type(C.gst_video_format_get_type()) + func CalculateDisplayRatio(videoWidth, videoHeight, videoParNum, videoParDenom, displayParNum, ... uint) (darNum, darDenom uint, ok bool) + func ConvertSample(sample *gst.Sample, toCaps *gst.Caps, timeout gst.ClockTime) (*gst.Sample, error) + func ConvertSampleAsync(sample *gst.Sample, toCaps *gst.Caps, timeout gst.ClockTime, ...) + func GuessFramerate(dur gst.ClockTime) (destNum, destDenom int, ok bool) + func MakeRawCaps(formats []Format) *gst.Caps + func MakeRawCapsWithFeatures(formats []Format, features *gst.CapsFeatures) *gst.Caps + type Alignment struct + PaddingBottom uint + PaddingLeft uint + PaddingRight uint + PaddingTop uint + type ChromaFlags int + const ChromaFlagInterlaced + const ChromaFlagNone + type ChromaMethod int + const ChromaMethodLinear + const ChromaMethodNearest + type ChromaResample struct + func NewChromaResample(method ChromaMethod, site ChromaSite, flags ChromaFlags, format Format, ...) *ChromaResample + func (c *ChromaResample) GetInfo() (nLines uint, offset int) + type ChromaSite int + const ChromaSiteAltLine + const ChromaSiteCosited + const ChromaSiteDV + const ChromaSiteHCosited + const ChromaSiteJpeg + const ChromaSiteMpeg2 + const ChromaSiteNone + const ChromaSiteUnknown + const ChromaSiteVCosited + func (c ChromaSite) String() string + type ColorBalance interface + GetBalanceType func() ColorBalanceType + GetValue func(*ColorBalanceChannel) int + ListChannels func() []*ColorBalanceChannel + SetValue func(*ColorBalanceChannel, int) + func ColorBalanceFromElement(element *gst.Element) ColorBalance + type ColorBalanceChannel struct + Label string + MaxValue int + MinValue int + type ColorBalanceType int + const ColorBalanceHardware + const ColorBalanceSoftware + type ColorMatrix int + const ColorMatrixBT2020 + const ColorMatrixBT601 + const ColorMatrixBT709 + const ColorMatrixFCC + const ColorMatrixRGB + const ColorMatrixSMPTE240M + const ColorMatrixUnknown + type ColorPrimaries int + const ColorPrimariesAdobeRGB + const ColorPrimariesBT2020 + const ColorPrimariesBT470BG + const ColorPrimariesBT470M + const ColorPrimariesBT709 + const ColorPrimariesEBU3213 + const ColorPrimariesFilm + const ColorPrimariesSMPTE170M + const ColorPrimariesSMPTE240M + const ColorPrimariesSMPTEEG432 + const ColorPrimariesSMPTERP431 + const ColorPrimariesSMPTEST428 + const ColorPrimariesUnknown + type ColorPrimariesInfo struct + Bx float64 + By float64 + Gx float64 + Gy float64 + Primaries ColorPrimaries + Rx float64 + Ry float64 + Wx float64 + Wy float64 + type ColorRange int + const ColorRange0255 + const ColorRange16235 + const ColorRangeUnknown + type Colorimetry struct + Matrix ColorMatrix + Primaries ColorPrimaries + Range ColorRange + Transfer TransferFunction + type ConvertSampleCallback func(*gst.Sample, error) + type CropMetaInfo struct + func GetCropMetaInfo() *CropMetaInfo + func (c *CropMetaInfo) Height() uint + func (c *CropMetaInfo) Instance() *C.GstVideoCropMeta + func (c *CropMetaInfo) Meta() *gst.Meta + func (c *CropMetaInfo) Width() uint + func (c *CropMetaInfo) X() uint + func (c *CropMetaInfo) Y() uint + type FieldOrder int + const FieldOrderBottomFieldFirst + const FieldOrderTopFieldFirst + const FieldOrderUnknown + func (f FieldOrder) String() string + type Flags int + const FlagNone + const FlagPremultipliedAlpha + const FlagVariableFPS + type Format int + const FormatA420 + const FormatA42010BE + const FormatA42010LE + const FormatA42210BE + const FormatA42210LE + const FormatA44410BE + const FormatA44410LE + const FormatABGR + const FormatARGB + const FormatARGB64 + const FormatAYUV + const FormatAYUV64 + const FormatBGR + const FormatBGR10A2LE + const FormatBGR15 + const FormatBGR16 + const FormatBGRA + const FormatBGRx + const FormatEncoded + const FormatGBR + const FormatGBR10BE + const FormatGBR10LE + const FormatGBR12BE + const FormatGBR12LE + const FormatGBRA + const FormatGBRA10BE + const FormatGBRA10LE + const FormatGBRA12BE + const FormatGBRA12LE + const FormatGray10LE32 + const FormatGray16BE + const FormatGray16LE + const FormatGray8 + const FormatI420 + const FormatI42010BE + const FormatI42010LE + const FormatI42012BE + const FormatI42012LE + const FormatI42210BE + const FormatI42210LE + const FormatI42212BE + const FormatI42212LE + const FormatIYU1 + const FormatIYU2 + const FormatNV12 + const FormatNV1210LE32 + const FormatNV1210LE40 + const FormatNV1232L32 + const FormatNV124L4 + const FormatNV1264Z32 + const FormatNV16 + const FormatNV1610LE32 + const FormatNV21 + const FormatNV24 + const FormatNV61 + const FormatP01010BE + const FormatP01010LE + const FormatP012BE + const FormatP012LE + const FormatP016BE + const FormatP016LE + const FormatRGB + const FormatRGB10A2LE + const FormatRGB15 + const FormatRGB16 + const FormatRGB8P + const FormatRGBA + const FormatRGBx + const FormatUYVP + const FormatUYVY + const FormatUnknown + const FormatVUYA + const FormatVYUY + const FormatY210 + const FormatY212BE + const FormatY212LE + const FormatY410 + const FormatY412BE + const FormatY412LE + const FormatY41B + const FormatY42B + const FormatY444 + const FormatY44410BE + const FormatY44410LE + const FormatY44412BE + const FormatY44412LE + const FormatY44416BE + const FormatY44416LE + const FormatYUV9 + const FormatYUY2 + const FormatYV12 + const FormatYVU9 + const FormatYVYU + const Formatr210 + const Formatv210 + const Formatv216 + const Formatv308 + const FormatxBGR + const FormatxRGB + func AllFormats() []Format + func RawFormats() []Format + func (f Format) FOURCC() uint32 + func (f Format) Info() *FormatInfo + func (f Format) Palette() color.Palette + func (f Format) String() string + func (f Format) ToGValue() (*glib.Value, error) + type FormatFlags int + const FormatFlagAlpha + const FormatFlagComplex + const FormatFlagGray + const FormatFlagLE + const FormatFlagPalette + const FormatFlagRGB + const FormatFlagTiled + const FormatFlagUnpack + const FormatFlagYUV + type FormatInfo struct + func (f *FormatInfo) Bits() uint + func (f *FormatInfo) ComponentDepth(component uint) uint + func (f *FormatInfo) ComponentHSub(component uint) uint + func (f *FormatInfo) ComponentWSub(n uint) uint + func (f *FormatInfo) Flags() FormatFlags + func (f *FormatInfo) Format() Format + func (f *FormatInfo) HasAlpha() bool + func (f *FormatInfo) HasPalette() bool + func (f *FormatInfo) IsComplex() bool + func (f *FormatInfo) IsGray() bool + func (f *FormatInfo) IsLE() bool + func (f *FormatInfo) IsRGB() bool + func (f *FormatInfo) IsTiled() bool + func (f *FormatInfo) IsYUV() bool + func (f *FormatInfo) Name() string + func (f *FormatInfo) NumComponents() uint + func (f *FormatInfo) NumPlanes() uint + func (f *FormatInfo) Plane(n uint) uint + func (f *FormatInfo) PlaneOffset(n uint) uint + func (f *FormatInfo) PlaneStride(n uint) uint + func (f *FormatInfo) TileHS() uint + func (f *FormatInfo) TileMode() TileMode + func (f *FormatInfo) TileWS() uint + type Info struct + func NewInfo() *Info + func (i *Info) ChromaSite() ChromaSite + func (i *Info) Colorimetry() *Colorimetry + func (i *Info) Convert(srcFormat, destFormat gst.Format, srcValue int64) (out int64, ok bool) + func (i *Info) FPS() *gst.FractionValue + func (i *Info) FieldHeight() int + func (i *Info) FieldOrder() FieldOrder + func (i *Info) FieldRateN() int + func (i *Info) FlagIsSet(f Flags) bool + func (i *Info) FlagSet(f Flags) *Info + func (i *Info) FlagUnset(f Flags) *Info + func (i *Info) Flags() Flags + func (i *Info) Format() Format + func (i *Info) Free() + func (i *Info) FromCaps(caps *gst.Caps) *Info + func (i *Info) HasAlpha() bool + func (i *Info) Height() int + func (i *Info) InterlaceMode() InterlaceMode + func (i *Info) IsEqual(info *Info) bool + func (i *Info) IsGray() bool + func (i *Info) IsInterlaced() bool + func (i *Info) IsRGB() bool + func (i *Info) IsYUV() bool + func (i *Info) MultiviewFlags() MultiviewFlags + func (i *Info) MultiviewMode() MultiviewMode + func (i *Info) Name() string + func (i *Info) NumComponents() uint + func (i *Info) NumPlanes() uint + func (i *Info) PAR() *gst.FractionValue + func (i *Info) Size() int64 + func (i *Info) ToCaps() *gst.Caps + func (i *Info) Views() int + func (i *Info) Width() int + func (i *Info) WithAlign(align *Alignment) *Info + func (i *Info) WithFPS(f *gst.FractionValue) *Info + func (i *Info) WithFormat(format Format, width, height uint) *Info + func (i *Info) WithInterlacedFormat(format Format, interlaceMode InterlaceMode, width, height uint) *Info + func (i *Info) WithPAR(f *gst.FractionValue) *Info + type InterlaceMode int + const InterlaceModeAlternate + const InterlaceModeFields + const InterlaceModeInterleaved + const InterlaceModeMixed + const InterlaceModeProgressive + func (i InterlaceMode) String() string + type KeyEvent string + const KeyPress + const KeyRelease + type MouseEvent string + const MouseButtonPress + const MouseButtonRelease + const MouseMove + type MultiviewFlags int + const MultiviewFlagsHalfAspect + const MultiviewFlagsLeftFlipped + const MultiviewFlagsLeftFlopped + const MultiviewFlagsMixedMono + const MultiviewFlagsNone + const MultiviewFlagsRightFlipped + const MultiviewFlagsRightFlopped + const MultiviewFlagsRightViewFirst + type MultiviewFramePacking int + const MultiviewFramePackingCheckerboard + const MultiviewFramePackingColumnInterleaved + const MultiviewFramePackingLeft + const MultiviewFramePackingMono + const MultiviewFramePackingNone + const MultiviewFramePackingRight + const MultiviewFramePackingRowInterleaved + const MultiviewFramePackingSideBySide + const MultiviewFramePackingSideBySideQuincunx + const MultiviewFramePackingTopBottom + type MultiviewMode int + const MultiviewModeCheckerboard + const MultiviewModeColumnInterleaved + const MultiviewModeFrameByFrame + const MultiviewModeLeft + const MultiviewModeMono + const MultiviewModeMultiviewFrameByFrame + const MultiviewModeNone + const MultiviewModeRight + const MultiviewModeRowInterleaved + const MultiviewModeSeparated + const MultiviewModeSideBySide + const MultiviewModeSideBySideQuincunx + const MultiviewModeTopBottom + type Navigation interface + SendCommand func(NavigationCommand) + SendEvent func(*gst.Structure) + SendKeyEvent func(event KeyEvent, key string) + SendMouseEvent func(event MouseEvent, button int, x, y float64) + SendMouseScrollEvent func(x, y, dX, dY float64) + func NavigationFromElement(element *gst.Element) Navigation + type NavigationCommand int + const NavigationCommandActivate + const NavigationCommandDVDAngleMenu + const NavigationCommandDVDAudioMenu + const NavigationCommandDVDChapterMenu + const NavigationCommandDVDMenu + const NavigationCommandDVDRootMenu + const NavigationCommandDVDSubpictureMenu + const NavigationCommandDVDTitleMenu + const NavigationCommandDown + const NavigationCommandInvalid + const NavigationCommandLeft + const NavigationCommandMenu1 + const NavigationCommandMenu2 + const NavigationCommandMenu3 + const NavigationCommandMenu4 + const NavigationCommandMenu5 + const NavigationCommandMenu6 + const NavigationCommandMenu7 + const NavigationCommandNextAngle + const NavigationCommandPrevAngle + const NavigationCommandRight + const NavigationCommandUp + type NavigationEvent struct + func ToNavigationEvent(event *gst.Event) *NavigationEvent + func (e *NavigationEvent) GetType() NavigationEventType + type NavigationEventType int + const NavigationEventCommand + const NavigationEventInvalid + const NavigationEventKeyPress + const NavigationEventKeyRelease + const NavigationEventMouseButtonPress + const NavigationEventMouseButtonRelease + const NavigationEventMouseMove + const NavigationEventMouseScroll + type NavigationMessage struct + func ToNavigationMessage(msg *gst.Message) *NavigationMessage + func (m *NavigationMessage) GetType() NavigationMessageType + type NavigationMessageType int + const NavigationMessageAnglesChanged + const NavigationMessageCommandsChanged + const NavigationMessageEvent + const NavigationMessageInvalid + const NavigationMessageMouseOver + type NavigationQuery struct + func ToNavigationQuery(query *gst.Query) *NavigationQuery + func (q *NavigationQuery) GetType() NavigationQueryType + type NavigationQueryType int + const NavigationQueryAngles + const NavigationQueryCommands + const NavigationQueryInvalid + type OrientationMethod int + const OrientationMethod180 + const OrientationMethod90L + const OrientationMethod90R + const OrientationMethodAuto + const OrientationMethodCustom + const OrientationMethodHoriz + const OrientationMethodIdentity + const OrientationMethodULLR + const OrientationMethodURLL + const OrientationMethodVert + type PackFlags int + const PackFlagInterlaced + const PackFlagNone + const PackFlagTruncateRange + type TileMode int + const TileModeLinear + const TileModeUnknown + const TileModeZFlipZ2X2 + type TileType int + const TileTypeIndexed + type TransferFunction int + const TransferARIBSTDB67 + const TransferAdobeRGB + const TransferBT202010 + const TransferBT202012 + const TransferBT601 + const TransferBT709 + const TransferGamma10 + const TransferGamma18 + const TransferGamma20 + const TransferGamma22 + const TransferGamma28 + const TransferLog100 + const TransferLog316 + const TransferSMPTE2084 + const TransferSMPTE240M + const TransferSRGB + const TransferUnknown