#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.GstBase.Objects.BaseTransform
(
BaseTransform(..) ,
IsBaseTransform ,
toBaseTransform ,
noBaseTransform ,
#if ENABLE_OVERLOADING
BaseTransformGetAllocatorMethodInfo ,
#endif
baseTransformGetAllocator ,
#if ENABLE_OVERLOADING
BaseTransformGetBufferPoolMethodInfo ,
#endif
baseTransformGetBufferPool ,
#if ENABLE_OVERLOADING
BaseTransformIsInPlaceMethodInfo ,
#endif
baseTransformIsInPlace ,
#if ENABLE_OVERLOADING
BaseTransformIsPassthroughMethodInfo ,
#endif
baseTransformIsPassthrough ,
#if ENABLE_OVERLOADING
BaseTransformIsQosEnabledMethodInfo ,
#endif
baseTransformIsQosEnabled ,
#if ENABLE_OVERLOADING
BaseTransformReconfigureSinkMethodInfo ,
#endif
baseTransformReconfigureSink ,
#if ENABLE_OVERLOADING
BaseTransformReconfigureSrcMethodInfo ,
#endif
baseTransformReconfigureSrc ,
#if ENABLE_OVERLOADING
BaseTransformSetGapAwareMethodInfo ,
#endif
baseTransformSetGapAware ,
#if ENABLE_OVERLOADING
BaseTransformSetInPlaceMethodInfo ,
#endif
baseTransformSetInPlace ,
#if ENABLE_OVERLOADING
BaseTransformSetPassthroughMethodInfo ,
#endif
baseTransformSetPassthrough ,
#if ENABLE_OVERLOADING
BaseTransformSetPreferPassthroughMethodInfo,
#endif
baseTransformSetPreferPassthrough ,
#if ENABLE_OVERLOADING
BaseTransformSetQosEnabledMethodInfo ,
#endif
baseTransformSetQosEnabled ,
#if ENABLE_OVERLOADING
BaseTransformUpdateQosMethodInfo ,
#endif
baseTransformUpdateQos ,
#if ENABLE_OVERLOADING
BaseTransformUpdateSrcCapsMethodInfo ,
#endif
baseTransformUpdateSrcCaps ,
#if ENABLE_OVERLOADING
BaseTransformQosPropertyInfo ,
#endif
#if ENABLE_OVERLOADING
baseTransformQos ,
#endif
constructBaseTransformQos ,
getBaseTransformQos ,
setBaseTransformQos ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gst.Objects.Allocator as Gst.Allocator
import qualified GI.Gst.Objects.BufferPool as Gst.BufferPool
import qualified GI.Gst.Objects.Element as Gst.Element
import qualified GI.Gst.Objects.Object as Gst.Object
import qualified GI.Gst.Structs.AllocationParams as Gst.AllocationParams
import qualified GI.Gst.Structs.Caps as Gst.Caps
newtype BaseTransform = BaseTransform (ManagedPtr BaseTransform)
foreign import ccall "gst_base_transform_get_type"
c_gst_base_transform_get_type :: IO GType
instance GObject BaseTransform where
gobjectType = c_gst_base_transform_get_type
class (GObject o, O.IsDescendantOf BaseTransform o) => IsBaseTransform o
instance (GObject o, O.IsDescendantOf BaseTransform o) => IsBaseTransform o
instance O.HasParentTypes BaseTransform
type instance O.ParentTypes BaseTransform = '[Gst.Element.Element, Gst.Object.Object, GObject.Object.Object]
toBaseTransform :: (MonadIO m, IsBaseTransform o) => o -> m BaseTransform
toBaseTransform = liftIO . unsafeCastTo BaseTransform
noBaseTransform :: Maybe BaseTransform
noBaseTransform = Nothing
#if ENABLE_OVERLOADING
type family ResolveBaseTransformMethod (t :: Symbol) (o :: *) :: * where
ResolveBaseTransformMethod "abortState" o = Gst.Element.ElementAbortStateMethodInfo
ResolveBaseTransformMethod "addControlBinding" o = Gst.Object.ObjectAddControlBindingMethodInfo
ResolveBaseTransformMethod "addPad" o = Gst.Element.ElementAddPadMethodInfo
ResolveBaseTransformMethod "addPropertyDeepNotifyWatch" o = Gst.Element.ElementAddPropertyDeepNotifyWatchMethodInfo
ResolveBaseTransformMethod "addPropertyNotifyWatch" o = Gst.Element.ElementAddPropertyNotifyWatchMethodInfo
ResolveBaseTransformMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveBaseTransformMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveBaseTransformMethod "callAsync" o = Gst.Element.ElementCallAsyncMethodInfo
ResolveBaseTransformMethod "changeState" o = Gst.Element.ElementChangeStateMethodInfo
ResolveBaseTransformMethod "continueState" o = Gst.Element.ElementContinueStateMethodInfo
ResolveBaseTransformMethod "createAllPads" o = Gst.Element.ElementCreateAllPadsMethodInfo
ResolveBaseTransformMethod "defaultError" o = Gst.Object.ObjectDefaultErrorMethodInfo
ResolveBaseTransformMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveBaseTransformMethod "foreachPad" o = Gst.Element.ElementForeachPadMethodInfo
ResolveBaseTransformMethod "foreachSinkPad" o = Gst.Element.ElementForeachSinkPadMethodInfo
ResolveBaseTransformMethod "foreachSrcPad" o = Gst.Element.ElementForeachSrcPadMethodInfo
ResolveBaseTransformMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveBaseTransformMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveBaseTransformMethod "hasActiveControlBindings" o = Gst.Object.ObjectHasActiveControlBindingsMethodInfo
ResolveBaseTransformMethod "hasAncestor" o = Gst.Object.ObjectHasAncestorMethodInfo
ResolveBaseTransformMethod "hasAsAncestor" o = Gst.Object.ObjectHasAsAncestorMethodInfo
ResolveBaseTransformMethod "hasAsParent" o = Gst.Object.ObjectHasAsParentMethodInfo
ResolveBaseTransformMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveBaseTransformMethod "isInPlace" o = BaseTransformIsInPlaceMethodInfo
ResolveBaseTransformMethod "isLockedState" o = Gst.Element.ElementIsLockedStateMethodInfo
ResolveBaseTransformMethod "isPassthrough" o = BaseTransformIsPassthroughMethodInfo
ResolveBaseTransformMethod "isQosEnabled" o = BaseTransformIsQosEnabledMethodInfo
ResolveBaseTransformMethod "iteratePads" o = Gst.Element.ElementIteratePadsMethodInfo
ResolveBaseTransformMethod "iterateSinkPads" o = Gst.Element.ElementIterateSinkPadsMethodInfo
ResolveBaseTransformMethod "iterateSrcPads" o = Gst.Element.ElementIterateSrcPadsMethodInfo
ResolveBaseTransformMethod "link" o = Gst.Element.ElementLinkMethodInfo
ResolveBaseTransformMethod "linkFiltered" o = Gst.Element.ElementLinkFilteredMethodInfo
ResolveBaseTransformMethod "linkPads" o = Gst.Element.ElementLinkPadsMethodInfo
ResolveBaseTransformMethod "linkPadsFiltered" o = Gst.Element.ElementLinkPadsFilteredMethodInfo
ResolveBaseTransformMethod "linkPadsFull" o = Gst.Element.ElementLinkPadsFullMethodInfo
ResolveBaseTransformMethod "lostState" o = Gst.Element.ElementLostStateMethodInfo
ResolveBaseTransformMethod "messageFull" o = Gst.Element.ElementMessageFullMethodInfo
ResolveBaseTransformMethod "messageFullWithDetails" o = Gst.Element.ElementMessageFullWithDetailsMethodInfo
ResolveBaseTransformMethod "noMorePads" o = Gst.Element.ElementNoMorePadsMethodInfo
ResolveBaseTransformMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveBaseTransformMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveBaseTransformMethod "postMessage" o = Gst.Element.ElementPostMessageMethodInfo
ResolveBaseTransformMethod "provideClock" o = Gst.Element.ElementProvideClockMethodInfo
ResolveBaseTransformMethod "query" o = Gst.Element.ElementQueryMethodInfo
ResolveBaseTransformMethod "queryConvert" o = Gst.Element.ElementQueryConvertMethodInfo
ResolveBaseTransformMethod "queryDuration" o = Gst.Element.ElementQueryDurationMethodInfo
ResolveBaseTransformMethod "queryPosition" o = Gst.Element.ElementQueryPositionMethodInfo
ResolveBaseTransformMethod "reconfigureSink" o = BaseTransformReconfigureSinkMethodInfo
ResolveBaseTransformMethod "reconfigureSrc" o = BaseTransformReconfigureSrcMethodInfo
ResolveBaseTransformMethod "ref" o = Gst.Object.ObjectRefMethodInfo
ResolveBaseTransformMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveBaseTransformMethod "releaseRequestPad" o = Gst.Element.ElementReleaseRequestPadMethodInfo
ResolveBaseTransformMethod "removeControlBinding" o = Gst.Object.ObjectRemoveControlBindingMethodInfo
ResolveBaseTransformMethod "removePad" o = Gst.Element.ElementRemovePadMethodInfo
ResolveBaseTransformMethod "removePropertyNotifyWatch" o = Gst.Element.ElementRemovePropertyNotifyWatchMethodInfo
ResolveBaseTransformMethod "requestPad" o = Gst.Element.ElementRequestPadMethodInfo
ResolveBaseTransformMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveBaseTransformMethod "seek" o = Gst.Element.ElementSeekMethodInfo
ResolveBaseTransformMethod "seekSimple" o = Gst.Element.ElementSeekSimpleMethodInfo
ResolveBaseTransformMethod "sendEvent" o = Gst.Element.ElementSendEventMethodInfo
ResolveBaseTransformMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveBaseTransformMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveBaseTransformMethod "suggestNextSync" o = Gst.Object.ObjectSuggestNextSyncMethodInfo
ResolveBaseTransformMethod "syncStateWithParent" o = Gst.Element.ElementSyncStateWithParentMethodInfo
ResolveBaseTransformMethod "syncValues" o = Gst.Object.ObjectSyncValuesMethodInfo
ResolveBaseTransformMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveBaseTransformMethod "unlink" o = Gst.Element.ElementUnlinkMethodInfo
ResolveBaseTransformMethod "unlinkPads" o = Gst.Element.ElementUnlinkPadsMethodInfo
ResolveBaseTransformMethod "unparent" o = Gst.Object.ObjectUnparentMethodInfo
ResolveBaseTransformMethod "unref" o = Gst.Object.ObjectUnrefMethodInfo
ResolveBaseTransformMethod "updateQos" o = BaseTransformUpdateQosMethodInfo
ResolveBaseTransformMethod "updateSrcCaps" o = BaseTransformUpdateSrcCapsMethodInfo
ResolveBaseTransformMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveBaseTransformMethod "getAllocator" o = BaseTransformGetAllocatorMethodInfo
ResolveBaseTransformMethod "getBaseTime" o = Gst.Element.ElementGetBaseTimeMethodInfo
ResolveBaseTransformMethod "getBufferPool" o = BaseTransformGetBufferPoolMethodInfo
ResolveBaseTransformMethod "getBus" o = Gst.Element.ElementGetBusMethodInfo
ResolveBaseTransformMethod "getClock" o = Gst.Element.ElementGetClockMethodInfo
ResolveBaseTransformMethod "getCompatiblePad" o = Gst.Element.ElementGetCompatiblePadMethodInfo
ResolveBaseTransformMethod "getCompatiblePadTemplate" o = Gst.Element.ElementGetCompatiblePadTemplateMethodInfo
ResolveBaseTransformMethod "getContext" o = Gst.Element.ElementGetContextMethodInfo
ResolveBaseTransformMethod "getContextUnlocked" o = Gst.Element.ElementGetContextUnlockedMethodInfo
ResolveBaseTransformMethod "getContexts" o = Gst.Element.ElementGetContextsMethodInfo
ResolveBaseTransformMethod "getControlBinding" o = Gst.Object.ObjectGetControlBindingMethodInfo
ResolveBaseTransformMethod "getControlRate" o = Gst.Object.ObjectGetControlRateMethodInfo
ResolveBaseTransformMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveBaseTransformMethod "getFactory" o = Gst.Element.ElementGetFactoryMethodInfo
ResolveBaseTransformMethod "getGValueArray" o = Gst.Object.ObjectGetGValueArrayMethodInfo
ResolveBaseTransformMethod "getMetadata" o = Gst.Element.ElementGetMetadataMethodInfo
ResolveBaseTransformMethod "getName" o = Gst.Object.ObjectGetNameMethodInfo
ResolveBaseTransformMethod "getPadTemplate" o = Gst.Element.ElementGetPadTemplateMethodInfo
ResolveBaseTransformMethod "getPadTemplateList" o = Gst.Element.ElementGetPadTemplateListMethodInfo
ResolveBaseTransformMethod "getParent" o = Gst.Object.ObjectGetParentMethodInfo
ResolveBaseTransformMethod "getPathString" o = Gst.Object.ObjectGetPathStringMethodInfo
ResolveBaseTransformMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveBaseTransformMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveBaseTransformMethod "getRequestPad" o = Gst.Element.ElementGetRequestPadMethodInfo
ResolveBaseTransformMethod "getStartTime" o = Gst.Element.ElementGetStartTimeMethodInfo
ResolveBaseTransformMethod "getState" o = Gst.Element.ElementGetStateMethodInfo
ResolveBaseTransformMethod "getStaticPad" o = Gst.Element.ElementGetStaticPadMethodInfo
ResolveBaseTransformMethod "getValue" o = Gst.Object.ObjectGetValueMethodInfo
ResolveBaseTransformMethod "setBaseTime" o = Gst.Element.ElementSetBaseTimeMethodInfo
ResolveBaseTransformMethod "setBus" o = Gst.Element.ElementSetBusMethodInfo
ResolveBaseTransformMethod "setClock" o = Gst.Element.ElementSetClockMethodInfo
ResolveBaseTransformMethod "setContext" o = Gst.Element.ElementSetContextMethodInfo
ResolveBaseTransformMethod "setControlBindingDisabled" o = Gst.Object.ObjectSetControlBindingDisabledMethodInfo
ResolveBaseTransformMethod "setControlBindingsDisabled" o = Gst.Object.ObjectSetControlBindingsDisabledMethodInfo
ResolveBaseTransformMethod "setControlRate" o = Gst.Object.ObjectSetControlRateMethodInfo
ResolveBaseTransformMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveBaseTransformMethod "setGapAware" o = BaseTransformSetGapAwareMethodInfo
ResolveBaseTransformMethod "setInPlace" o = BaseTransformSetInPlaceMethodInfo
ResolveBaseTransformMethod "setLockedState" o = Gst.Element.ElementSetLockedStateMethodInfo
ResolveBaseTransformMethod "setName" o = Gst.Object.ObjectSetNameMethodInfo
ResolveBaseTransformMethod "setParent" o = Gst.Object.ObjectSetParentMethodInfo
ResolveBaseTransformMethod "setPassthrough" o = BaseTransformSetPassthroughMethodInfo
ResolveBaseTransformMethod "setPreferPassthrough" o = BaseTransformSetPreferPassthroughMethodInfo
ResolveBaseTransformMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveBaseTransformMethod "setQosEnabled" o = BaseTransformSetQosEnabledMethodInfo
ResolveBaseTransformMethod "setStartTime" o = Gst.Element.ElementSetStartTimeMethodInfo
ResolveBaseTransformMethod "setState" o = Gst.Element.ElementSetStateMethodInfo
ResolveBaseTransformMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveBaseTransformMethod t BaseTransform, O.MethodInfo info BaseTransform p) => OL.IsLabel t (BaseTransform -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
getBaseTransformQos :: (MonadIO m, IsBaseTransform o) => o -> m Bool
getBaseTransformQos obj = liftIO $ B.Properties.getObjectPropertyBool obj "qos"
setBaseTransformQos :: (MonadIO m, IsBaseTransform o) => o -> Bool -> m ()
setBaseTransformQos obj val = liftIO $ B.Properties.setObjectPropertyBool obj "qos" val
constructBaseTransformQos :: (IsBaseTransform o) => Bool -> IO (GValueConstruct o)
constructBaseTransformQos val = B.Properties.constructObjectPropertyBool "qos" val
#if ENABLE_OVERLOADING
data BaseTransformQosPropertyInfo
instance AttrInfo BaseTransformQosPropertyInfo where
type AttrAllowedOps BaseTransformQosPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint BaseTransformQosPropertyInfo = (~) Bool
type AttrBaseTypeConstraint BaseTransformQosPropertyInfo = IsBaseTransform
type AttrGetType BaseTransformQosPropertyInfo = Bool
type AttrLabel BaseTransformQosPropertyInfo = "qos"
type AttrOrigin BaseTransformQosPropertyInfo = BaseTransform
attrGet _ = getBaseTransformQos
attrSet _ = setBaseTransformQos
attrConstruct _ = constructBaseTransformQos
attrClear _ = undefined
#endif
#if ENABLE_OVERLOADING
instance O.HasAttributeList BaseTransform
type instance O.AttributeList BaseTransform = BaseTransformAttributeList
type BaseTransformAttributeList = ('[ '("name", Gst.Object.ObjectNamePropertyInfo), '("parent", Gst.Object.ObjectParentPropertyInfo), '("qos", BaseTransformQosPropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
baseTransformQos :: AttrLabelProxy "qos"
baseTransformQos = AttrLabelProxy
#endif
#if ENABLE_OVERLOADING
type instance O.SignalList BaseTransform = BaseTransformSignalList
type BaseTransformSignalList = ('[ '("deepNotify", Gst.Object.ObjectDeepNotifySignalInfo), '("noMorePads", Gst.Element.ElementNoMorePadsSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("padAdded", Gst.Element.ElementPadAddedSignalInfo), '("padRemoved", Gst.Element.ElementPadRemovedSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gst_base_transform_get_allocator" gst_base_transform_get_allocator ::
Ptr BaseTransform ->
Ptr (Ptr Gst.Allocator.Allocator) ->
Ptr Gst.AllocationParams.AllocationParams ->
IO ()
baseTransformGetAllocator ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> m ((Gst.Allocator.Allocator, Gst.AllocationParams.AllocationParams))
baseTransformGetAllocator trans = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
allocator <- allocMem :: IO (Ptr (Ptr Gst.Allocator.Allocator))
params <- callocBoxedBytes 64 :: IO (Ptr Gst.AllocationParams.AllocationParams)
gst_base_transform_get_allocator trans' allocator params
allocator' <- peek allocator
allocator'' <- (wrapObject Gst.Allocator.Allocator) allocator'
params' <- (wrapBoxed Gst.AllocationParams.AllocationParams) params
touchManagedPtr trans
freeMem allocator
return (allocator'', params')
#if ENABLE_OVERLOADING
data BaseTransformGetAllocatorMethodInfo
instance (signature ~ (m ((Gst.Allocator.Allocator, Gst.AllocationParams.AllocationParams))), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformGetAllocatorMethodInfo a signature where
overloadedMethod _ = baseTransformGetAllocator
#endif
foreign import ccall "gst_base_transform_get_buffer_pool" gst_base_transform_get_buffer_pool ::
Ptr BaseTransform ->
IO (Ptr Gst.BufferPool.BufferPool)
baseTransformGetBufferPool ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> m Gst.BufferPool.BufferPool
baseTransformGetBufferPool trans = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
result <- gst_base_transform_get_buffer_pool trans'
checkUnexpectedReturnNULL "baseTransformGetBufferPool" result
result' <- (wrapObject Gst.BufferPool.BufferPool) result
touchManagedPtr trans
return result'
#if ENABLE_OVERLOADING
data BaseTransformGetBufferPoolMethodInfo
instance (signature ~ (m Gst.BufferPool.BufferPool), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformGetBufferPoolMethodInfo a signature where
overloadedMethod _ = baseTransformGetBufferPool
#endif
foreign import ccall "gst_base_transform_is_in_place" gst_base_transform_is_in_place ::
Ptr BaseTransform ->
IO CInt
baseTransformIsInPlace ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> m Bool
baseTransformIsInPlace trans = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
result <- gst_base_transform_is_in_place trans'
let result' = (/= 0) result
touchManagedPtr trans
return result'
#if ENABLE_OVERLOADING
data BaseTransformIsInPlaceMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformIsInPlaceMethodInfo a signature where
overloadedMethod _ = baseTransformIsInPlace
#endif
foreign import ccall "gst_base_transform_is_passthrough" gst_base_transform_is_passthrough ::
Ptr BaseTransform ->
IO CInt
baseTransformIsPassthrough ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> m Bool
baseTransformIsPassthrough trans = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
result <- gst_base_transform_is_passthrough trans'
let result' = (/= 0) result
touchManagedPtr trans
return result'
#if ENABLE_OVERLOADING
data BaseTransformIsPassthroughMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformIsPassthroughMethodInfo a signature where
overloadedMethod _ = baseTransformIsPassthrough
#endif
foreign import ccall "gst_base_transform_is_qos_enabled" gst_base_transform_is_qos_enabled ::
Ptr BaseTransform ->
IO CInt
baseTransformIsQosEnabled ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> m Bool
baseTransformIsQosEnabled trans = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
result <- gst_base_transform_is_qos_enabled trans'
let result' = (/= 0) result
touchManagedPtr trans
return result'
#if ENABLE_OVERLOADING
data BaseTransformIsQosEnabledMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformIsQosEnabledMethodInfo a signature where
overloadedMethod _ = baseTransformIsQosEnabled
#endif
foreign import ccall "gst_base_transform_reconfigure_sink" gst_base_transform_reconfigure_sink ::
Ptr BaseTransform ->
IO ()
baseTransformReconfigureSink ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> m ()
baseTransformReconfigureSink trans = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
gst_base_transform_reconfigure_sink trans'
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformReconfigureSinkMethodInfo
instance (signature ~ (m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformReconfigureSinkMethodInfo a signature where
overloadedMethod _ = baseTransformReconfigureSink
#endif
foreign import ccall "gst_base_transform_reconfigure_src" gst_base_transform_reconfigure_src ::
Ptr BaseTransform ->
IO ()
baseTransformReconfigureSrc ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> m ()
baseTransformReconfigureSrc trans = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
gst_base_transform_reconfigure_src trans'
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformReconfigureSrcMethodInfo
instance (signature ~ (m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformReconfigureSrcMethodInfo a signature where
overloadedMethod _ = baseTransformReconfigureSrc
#endif
foreign import ccall "gst_base_transform_set_gap_aware" gst_base_transform_set_gap_aware ::
Ptr BaseTransform ->
CInt ->
IO ()
baseTransformSetGapAware ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> Bool
-> m ()
baseTransformSetGapAware trans gapAware = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
let gapAware' = (fromIntegral . fromEnum) gapAware
gst_base_transform_set_gap_aware trans' gapAware'
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformSetGapAwareMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformSetGapAwareMethodInfo a signature where
overloadedMethod _ = baseTransformSetGapAware
#endif
foreign import ccall "gst_base_transform_set_in_place" gst_base_transform_set_in_place ::
Ptr BaseTransform ->
CInt ->
IO ()
baseTransformSetInPlace ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> Bool
-> m ()
baseTransformSetInPlace trans inPlace = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
let inPlace' = (fromIntegral . fromEnum) inPlace
gst_base_transform_set_in_place trans' inPlace'
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformSetInPlaceMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformSetInPlaceMethodInfo a signature where
overloadedMethod _ = baseTransformSetInPlace
#endif
foreign import ccall "gst_base_transform_set_passthrough" gst_base_transform_set_passthrough ::
Ptr BaseTransform ->
CInt ->
IO ()
baseTransformSetPassthrough ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> Bool
-> m ()
baseTransformSetPassthrough trans passthrough = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
let passthrough' = (fromIntegral . fromEnum) passthrough
gst_base_transform_set_passthrough trans' passthrough'
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformSetPassthroughMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformSetPassthroughMethodInfo a signature where
overloadedMethod _ = baseTransformSetPassthrough
#endif
foreign import ccall "gst_base_transform_set_prefer_passthrough" gst_base_transform_set_prefer_passthrough ::
Ptr BaseTransform ->
CInt ->
IO ()
baseTransformSetPreferPassthrough ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> Bool
-> m ()
baseTransformSetPreferPassthrough trans preferPassthrough = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
let preferPassthrough' = (fromIntegral . fromEnum) preferPassthrough
gst_base_transform_set_prefer_passthrough trans' preferPassthrough'
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformSetPreferPassthroughMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformSetPreferPassthroughMethodInfo a signature where
overloadedMethod _ = baseTransformSetPreferPassthrough
#endif
foreign import ccall "gst_base_transform_set_qos_enabled" gst_base_transform_set_qos_enabled ::
Ptr BaseTransform ->
CInt ->
IO ()
baseTransformSetQosEnabled ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> Bool
-> m ()
baseTransformSetQosEnabled trans enabled = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
let enabled' = (fromIntegral . fromEnum) enabled
gst_base_transform_set_qos_enabled trans' enabled'
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformSetQosEnabledMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformSetQosEnabledMethodInfo a signature where
overloadedMethod _ = baseTransformSetQosEnabled
#endif
foreign import ccall "gst_base_transform_update_qos" gst_base_transform_update_qos ::
Ptr BaseTransform ->
CDouble ->
Int64 ->
Word64 ->
IO ()
baseTransformUpdateQos ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> Double
-> Int64
-> Word64
-> m ()
baseTransformUpdateQos trans proportion diff timestamp = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
let proportion' = realToFrac proportion
gst_base_transform_update_qos trans' proportion' diff timestamp
touchManagedPtr trans
return ()
#if ENABLE_OVERLOADING
data BaseTransformUpdateQosMethodInfo
instance (signature ~ (Double -> Int64 -> Word64 -> m ()), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformUpdateQosMethodInfo a signature where
overloadedMethod _ = baseTransformUpdateQos
#endif
foreign import ccall "gst_base_transform_update_src_caps" gst_base_transform_update_src_caps ::
Ptr BaseTransform ->
Ptr Gst.Caps.Caps ->
IO CInt
baseTransformUpdateSrcCaps ::
(B.CallStack.HasCallStack, MonadIO m, IsBaseTransform a) =>
a
-> Gst.Caps.Caps
-> m Bool
baseTransformUpdateSrcCaps trans updatedCaps = liftIO $ do
trans' <- unsafeManagedPtrCastPtr trans
updatedCaps' <- unsafeManagedPtrGetPtr updatedCaps
result <- gst_base_transform_update_src_caps trans' updatedCaps'
let result' = (/= 0) result
touchManagedPtr trans
touchManagedPtr updatedCaps
return result'
#if ENABLE_OVERLOADING
data BaseTransformUpdateSrcCapsMethodInfo
instance (signature ~ (Gst.Caps.Caps -> m Bool), MonadIO m, IsBaseTransform a) => O.MethodInfo BaseTransformUpdateSrcCapsMethodInfo a signature where
overloadedMethod _ = baseTransformUpdateSrcCaps
#endif