| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gst.Structs.ProtectionMeta
Description
Metadata type that holds information about a sample from a protection-protected track, including the information needed to decrypt it (if it is encrypted).
Since: 1.6
Synopsis
- newtype ProtectionMeta = ProtectionMeta (ManagedPtr ProtectionMeta)
- newZeroProtectionMeta :: MonadIO m => m ProtectionMeta
- noProtectionMeta :: Maybe ProtectionMeta
- protectionMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- clearProtectionMetaInfo :: MonadIO m => ProtectionMeta -> m ()
- getProtectionMetaInfo :: MonadIO m => ProtectionMeta -> m (Maybe Structure)
- setProtectionMetaInfo :: MonadIO m => ProtectionMeta -> Ptr Structure -> m ()
- getProtectionMetaMeta :: MonadIO m => ProtectionMeta -> m Meta
Exported types
newtype ProtectionMeta Source #
Memory-managed wrapper type.
Constructors
| ProtectionMeta (ManagedPtr ProtectionMeta) |
Instances
| WrappedPtr ProtectionMeta Source # | |
Defined in GI.Gst.Structs.ProtectionMeta Methods wrappedPtrCalloc :: IO (Ptr ProtectionMeta) # | |
| tag ~ AttrSet => Constructible ProtectionMeta tag Source # | |
Defined in GI.Gst.Structs.ProtectionMeta Methods new :: MonadIO m => (ManagedPtr ProtectionMeta -> ProtectionMeta) -> [AttrOp ProtectionMeta tag] -> m ProtectionMeta # | |
newZeroProtectionMeta :: MonadIO m => m ProtectionMeta Source #
Construct a ProtectionMeta struct initialized to zero.
noProtectionMeta :: Maybe ProtectionMeta Source #
A convenience alias for Nothing :: Maybe ProtectionMeta.
Methods
getInfo
protectionMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo Source #
No description available in the introspection data.
Properties
info
the cryptographic information needed to decrypt the sample.
clearProtectionMetaInfo :: MonadIO m => ProtectionMeta -> m () Source #
Set the value of the “info” field to Nothing.
When overloading is enabled, this is equivalent to
clear #info
getProtectionMetaInfo :: MonadIO m => ProtectionMeta -> m (Maybe Structure) Source #
Get the value of the “info” field.
When overloading is enabled, this is equivalent to
get protectionMeta #info
setProtectionMetaInfo :: MonadIO m => ProtectionMeta -> Ptr Structure -> m () Source #
Set the value of the “info” field.
When overloading is enabled, this is equivalent to
setprotectionMeta [ #info:=value ]
meta
the parent Meta.
getProtectionMetaMeta :: MonadIO m => ProtectionMeta -> m Meta Source #
Get the value of the “meta” field.
When overloading is enabled, this is equivalent to
get protectionMeta #meta