Thumbnailer related functions
FluThumbnailer * |
|
void |
|
gboolean |
|
void |
|
gboolean |
|
gboolean |
|
gboolean |
|
gboolean |
FluThumbnailer * flu_thumbnailer_new (void);
Creates a new FluThumbnailer
The newly created thumnailer
void flu_thumbnailer_free (FluThumbnailer *thiz);
Frees an FluThumbnailer
gboolean flu_thumbnailer_open (FluThumbnailer *thiz, gchar *input, gboolean disable_hw_accel, GError **error);
Opens a file with an FluThumbnailer
The FluThumbnailer
The input file to use
Disables hardware acceleration
NULL if the input file opened correctly
TRUE if successful, FALSE otherwise
void flu_thumbnailer_close (FluThumbnailer *thiz);
Closes an FluThumbnailer
gboolean flu_thumbnailer_frame_rgb_get (FluThumbnailer *thiz, gint64 position, gboolean accurate, FluStreamVideoRgbFormat format, gint *width, gint *height, guint8 **data, guint32 *pitch);
Takes a RGB thumbnail at a stream position
The FluThumbnailer
The position in the stream
Indicates wether the position can be approximated
The FluStreamVideoRgbFormat format to use
The desired with of the frame (-1 to use the native width)
The desired with of the frame (-1 to use the native height)
The pointer to get the frame data from. In case of NULL the library will allocate the memory for you and you should use free().
The pitch of the frame. The number of pitches depend on the format used. In case data is NULL the pitch value will be set
TRUE if successful, FALSE otherwise
gboolean flu_thumnailer_frame_ycbcr_get (FluThumbnailer *thiz, gint64 position, gboolean accurate, FluStreamVideoYcbcrFormat format, gint *width, gint *height, guint8 **planes, guint32 *pitches);
Takes a YCbCr thumbnail at a stream position
The FluThumbnailer
The position in the stream
Indicates wether the position can be approximated
The FluStreamVideoYcbcrFormat format to use
The desired with of the frame (-1 to use the native width)
The desired with of the frame (-1 to use the native height)
The planes pointer to store the pixels. The number of planes depend on the format used. The actual pointers can be NULL in such case the library will allocate the memory for you and you should use free() on each plane value.
The pitch for each plane. The number of pitches depend on the format used. In case the planes pointers are NULL the pitches values will be set.
TRUE if successful, FALSE otherwise
gboolean flu_thumbnailer_frame_save (FluThumbnailer *thiz, gint64 position, gboolean accurate, FluStreamVideoFrameFormat format, gint width, gint height, gchar *location);
Saves a frame at a stream position into an image file
The FluThumbnailer
The position in the stream
Indicates wether the position can be approximated
The FluStreamVideoFrameFormat format to use
The desired with of the frame (-1 to use the native width)
The desired with of the frame (-1 to use the native height)
The file path to save the file (not a URI)
TRUE if successful, FALSE otherwise
gboolean flu_thumbnailer_duration_get (FluThumbnailer *thiz, gint64 *duration);
Gets the duration of the media set
TRUE if the duration is valid, FALSE otherwise
typedef struct { } FluThumbnailer;
An opaque structure representing a thumbnailer instance.