| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gst.Structs.ReferenceTimestampMeta
Description
ReferenceTimestampMeta can be used to attach alternative timestamps and
possibly durations to a Buffer. These are generally not according to
the pipeline clock and could be e.g. the NTP timestamp when the media was
captured.
The reference is stored as a Caps in reference. Examples of valid
references would be timestamp/x-drivername-stream for timestamps that are locally
generated by some driver named drivername when generating the stream,
e.g. based on a frame counter, or timestamp/x-ntp, host=pool.ntp.org,
port=123 for timestamps based on a specific NTP server.
Since: 1.14
Synopsis
- newtype ReferenceTimestampMeta = ReferenceTimestampMeta (ManagedPtr ReferenceTimestampMeta)
- newZeroReferenceTimestampMeta :: MonadIO m => m ReferenceTimestampMeta
- referenceTimestampMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- getReferenceTimestampMetaDuration :: MonadIO m => ReferenceTimestampMeta -> m Word64
- setReferenceTimestampMetaDuration :: MonadIO m => ReferenceTimestampMeta -> Word64 -> m ()
- getReferenceTimestampMetaParent :: MonadIO m => ReferenceTimestampMeta -> m Meta
- clearReferenceTimestampMetaReference :: MonadIO m => ReferenceTimestampMeta -> m ()
- getReferenceTimestampMetaReference :: MonadIO m => ReferenceTimestampMeta -> m (Maybe Caps)
- setReferenceTimestampMetaReference :: MonadIO m => ReferenceTimestampMeta -> Ptr Caps -> m ()
- getReferenceTimestampMetaTimestamp :: MonadIO m => ReferenceTimestampMeta -> m Word64
- setReferenceTimestampMetaTimestamp :: MonadIO m => ReferenceTimestampMeta -> Word64 -> m ()
Exported types
newtype ReferenceTimestampMeta Source #
Memory-managed wrapper type.
Constructors
| ReferenceTimestampMeta (ManagedPtr ReferenceTimestampMeta) |
Instances
| Eq ReferenceTimestampMeta Source # | |
Defined in GI.Gst.Structs.ReferenceTimestampMeta Methods (==) :: ReferenceTimestampMeta -> ReferenceTimestampMeta -> Bool # (/=) :: ReferenceTimestampMeta -> ReferenceTimestampMeta -> Bool # | |
| BoxedPtr ReferenceTimestampMeta Source # | |
Defined in GI.Gst.Structs.ReferenceTimestampMeta Methods boxedPtrCopy :: ReferenceTimestampMeta -> IO ReferenceTimestampMeta # boxedPtrFree :: ReferenceTimestampMeta -> IO () # | |
| CallocPtr ReferenceTimestampMeta Source # | |
Defined in GI.Gst.Structs.ReferenceTimestampMeta Methods | |
| ManagedPtrNewtype ReferenceTimestampMeta Source # | |
Defined in GI.Gst.Structs.ReferenceTimestampMeta Methods toManagedPtr :: ReferenceTimestampMeta -> ManagedPtr ReferenceTimestampMeta # | |
| tag ~ 'AttrSet => Constructible ReferenceTimestampMeta tag Source # | |
Defined in GI.Gst.Structs.ReferenceTimestampMeta Methods new :: MonadIO m => (ManagedPtr ReferenceTimestampMeta -> ReferenceTimestampMeta) -> [AttrOp ReferenceTimestampMeta tag] -> m ReferenceTimestampMeta # | |
newZeroReferenceTimestampMeta :: MonadIO m => m ReferenceTimestampMeta Source #
Construct a ReferenceTimestampMeta struct initialized to zero.
Methods
getInfo
referenceTimestampMetaGetInfo Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m MetaInfo | Returns: The |
Gets the global MetaInfo describing the ReferenceTimestampMeta meta.
Since: 1.14
Properties
duration
duration, or CLOCK_TIME_NONE
getReferenceTimestampMetaDuration :: MonadIO m => ReferenceTimestampMeta -> m Word64 Source #
Get the value of the “duration” field.
When overloading is enabled, this is equivalent to
get referenceTimestampMeta #duration
setReferenceTimestampMetaDuration :: MonadIO m => ReferenceTimestampMeta -> Word64 -> m () Source #
Set the value of the “duration” field.
When overloading is enabled, this is equivalent to
setreferenceTimestampMeta [ #duration:=value ]
parent
the parent Meta structure
getReferenceTimestampMetaParent :: MonadIO m => ReferenceTimestampMeta -> m Meta Source #
Get the value of the “parent” field.
When overloading is enabled, this is equivalent to
get referenceTimestampMeta #parent
reference
identifier for the timestamp reference.
clearReferenceTimestampMetaReference :: MonadIO m => ReferenceTimestampMeta -> m () Source #
Set the value of the “reference” field to Nothing.
When overloading is enabled, this is equivalent to
clear #reference
getReferenceTimestampMetaReference :: MonadIO m => ReferenceTimestampMeta -> m (Maybe Caps) Source #
Get the value of the “reference” field.
When overloading is enabled, this is equivalent to
get referenceTimestampMeta #reference
setReferenceTimestampMetaReference :: MonadIO m => ReferenceTimestampMeta -> Ptr Caps -> m () Source #
Set the value of the “reference” field.
When overloading is enabled, this is equivalent to
setreferenceTimestampMeta [ #reference:=value ]
timestamp
timestamp
getReferenceTimestampMetaTimestamp :: MonadIO m => ReferenceTimestampMeta -> m Word64 Source #
Get the value of the “timestamp” field.
When overloading is enabled, this is equivalent to
get referenceTimestampMeta #timestamp
setReferenceTimestampMetaTimestamp :: MonadIO m => ReferenceTimestampMeta -> Word64 -> m () Source #
Set the value of the “timestamp” field.
When overloading is enabled, this is equivalent to
setreferenceTimestampMeta [ #timestamp:=value ]