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 |
Extra buffer metadata describing an image region of interest
Synopsis
- newtype VideoRegionOfInterestMeta = VideoRegionOfInterestMeta (ManagedPtr VideoRegionOfInterestMeta)
- newZeroVideoRegionOfInterestMeta :: MonadIO m => m VideoRegionOfInterestMeta
- videoRegionOfInterestMetaAddParam :: (HasCallStack, MonadIO m) => VideoRegionOfInterestMeta -> Structure -> m ()
- videoRegionOfInterestMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- videoRegionOfInterestMetaGetParam :: (HasCallStack, MonadIO m) => VideoRegionOfInterestMeta -> Text -> m (Maybe Structure)
- getVideoRegionOfInterestMetaH :: MonadIO m => VideoRegionOfInterestMeta -> m Word32
- setVideoRegionOfInterestMetaH :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m ()
- getVideoRegionOfInterestMetaId :: MonadIO m => VideoRegionOfInterestMeta -> m Int32
- setVideoRegionOfInterestMetaId :: MonadIO m => VideoRegionOfInterestMeta -> Int32 -> m ()
- getVideoRegionOfInterestMetaMeta :: MonadIO m => VideoRegionOfInterestMeta -> m Meta
- clearVideoRegionOfInterestMetaParams :: MonadIO m => VideoRegionOfInterestMeta -> m ()
- getVideoRegionOfInterestMetaParams :: MonadIO m => VideoRegionOfInterestMeta -> m [Ptr ()]
- setVideoRegionOfInterestMetaParams :: MonadIO m => VideoRegionOfInterestMeta -> Ptr (GList (Ptr ())) -> m ()
- getVideoRegionOfInterestMetaParentId :: MonadIO m => VideoRegionOfInterestMeta -> m Int32
- setVideoRegionOfInterestMetaParentId :: MonadIO m => VideoRegionOfInterestMeta -> Int32 -> m ()
- getVideoRegionOfInterestMetaRoiType :: MonadIO m => VideoRegionOfInterestMeta -> m Word32
- setVideoRegionOfInterestMetaRoiType :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m ()
- getVideoRegionOfInterestMetaW :: MonadIO m => VideoRegionOfInterestMeta -> m Word32
- setVideoRegionOfInterestMetaW :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m ()
- getVideoRegionOfInterestMetaX :: MonadIO m => VideoRegionOfInterestMeta -> m Word32
- setVideoRegionOfInterestMetaX :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m ()
- getVideoRegionOfInterestMetaY :: MonadIO m => VideoRegionOfInterestMeta -> m Word32
- setVideoRegionOfInterestMetaY :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m ()
Exported types
newtype VideoRegionOfInterestMeta Source #
Memory-managed wrapper type.
Instances
newZeroVideoRegionOfInterestMeta :: MonadIO m => m VideoRegionOfInterestMeta Source #
Construct a VideoRegionOfInterestMeta
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
addParam
videoRegionOfInterestMetaAddParam Source #
:: (HasCallStack, MonadIO m) | |
=> VideoRegionOfInterestMeta |
|
-> Structure |
|
-> m () |
Attach element-specific parameters to meta
meant to be used by downstream
elements which may handle this ROI.
The name of s
is used to identify the element these parameters are meant for.
This is typically used to tell encoders how they should encode this specific region.
For example, a structure named "roi/x264enc" could be used to give the
QP offsets this encoder should use when encoding the region described in meta
.
Multiple parameters can be defined for the same meta so different encoders
can be supported by cross platform applications).
Since: 1.14
getInfo
videoRegionOfInterestMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo Source #
No description available in the introspection data.
getParam
videoRegionOfInterestMetaGetParam Source #
:: (HasCallStack, MonadIO m) | |
=> VideoRegionOfInterestMeta |
|
-> Text |
|
-> m (Maybe Structure) | Returns: a |
Retrieve the parameter for meta
having name
as structure name,
or Nothing
if there is none.
Since: 1.14
Properties
h
bounding box height
getVideoRegionOfInterestMetaH :: MonadIO m => VideoRegionOfInterestMeta -> m Word32 Source #
Get the value of the “h
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #h
setVideoRegionOfInterestMetaH :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m () Source #
Set the value of the “h
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #h:=
value ]
id
identifier of this particular ROI
getVideoRegionOfInterestMetaId :: MonadIO m => VideoRegionOfInterestMeta -> m Int32 Source #
Get the value of the “id
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #id
setVideoRegionOfInterestMetaId :: MonadIO m => VideoRegionOfInterestMeta -> Int32 -> m () Source #
Set the value of the “id
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #id:=
value ]
meta
parent Meta
getVideoRegionOfInterestMetaMeta :: MonadIO m => VideoRegionOfInterestMeta -> m Meta Source #
Get the value of the “meta
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #meta
params
list of Structure
containing element-specific params for downstream,
see videoRegionOfInterestMetaAddParam
. (Since: 1.14)
clearVideoRegionOfInterestMetaParams :: MonadIO m => VideoRegionOfInterestMeta -> m () Source #
Set the value of the “params
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#params
getVideoRegionOfInterestMetaParams :: MonadIO m => VideoRegionOfInterestMeta -> m [Ptr ()] Source #
Get the value of the “params
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #params
setVideoRegionOfInterestMetaParams :: MonadIO m => VideoRegionOfInterestMeta -> Ptr (GList (Ptr ())) -> m () Source #
Set the value of the “params
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #params:=
value ]
parentId
identifier of its parent ROI, used f.i. for ROI hierarchisation.
getVideoRegionOfInterestMetaParentId :: MonadIO m => VideoRegionOfInterestMeta -> m Int32 Source #
Get the value of the “parent_id
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #parentId
setVideoRegionOfInterestMetaParentId :: MonadIO m => VideoRegionOfInterestMeta -> Int32 -> m () Source #
Set the value of the “parent_id
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #parentId:=
value ]
roiType
GQuark describing the semantic of the Roi (f.i. a face, a pedestrian)
getVideoRegionOfInterestMetaRoiType :: MonadIO m => VideoRegionOfInterestMeta -> m Word32 Source #
Get the value of the “roi_type
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #roiType
setVideoRegionOfInterestMetaRoiType :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m () Source #
Set the value of the “roi_type
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #roiType:=
value ]
w
bounding box width
getVideoRegionOfInterestMetaW :: MonadIO m => VideoRegionOfInterestMeta -> m Word32 Source #
Get the value of the “w
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #w
setVideoRegionOfInterestMetaW :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m () Source #
Set the value of the “w
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #w:=
value ]
x
x component of upper-left corner
getVideoRegionOfInterestMetaX :: MonadIO m => VideoRegionOfInterestMeta -> m Word32 Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #x
setVideoRegionOfInterestMetaX :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #x:=
value ]
y
y component of upper-left corner
getVideoRegionOfInterestMetaY :: MonadIO m => VideoRegionOfInterestMeta -> m Word32 Source #
Get the value of the “y
” field.
When overloading is enabled, this is equivalent to
get
videoRegionOfInterestMeta #y
setVideoRegionOfInterestMetaY :: MonadIO m => VideoRegionOfInterestMeta -> Word32 -> m () Source #
Set the value of the “y
” field.
When overloading is enabled, this is equivalent to
set
videoRegionOfInterestMeta [ #y:=
value ]