Macro qtTrIdx() replaced by tr() and QT_TRANSLATE_NOOP()
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / inc / mafw-gst-renderer-seeker.h
1 /*
2  * This file is part of QMAFW
3  *
4  * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). All rights
5  * reserved.
6  *
7  * Contact: Visa Smolander <visa.smolander@nokia.com>
8  *
9  * This software, including documentation, is protected by copyright controlled
10  * by Nokia Corporation. All rights are reserved. Copying, including
11  * reproducing, storing, adapting or translating, any or all of this material
12  * requires the prior written consent of Nokia Corporation. This material also
13  * contains confidential information which may not be disclosed to others
14  * without the prior written consent of Nokia.
15  *
16  */
17
18 #ifndef MAFWGSTRENDERERSEEKER_H
19 #define MAFWGSTRENDERERSEEKER_H
20
21 #include <gst/gstelement.h>
22
23 G_BEGIN_DECLS
24
25 typedef struct _MafwGstRendererSeeker MafwGstRendererSeeker;
26
27
28 MafwGstRendererSeeker* mafw_gst_renderer_seeker_new();
29 void mafw_gst_renderer_seeker_set_pipeline(MafwGstRendererSeeker *seeker, GstElement *pipeline);
30 gboolean mafw_gst_renderer_seeker_seek_to(MafwGstRendererSeeker *seeker, gint64 seek_pos);
31
32 /*
33  * Processes possible seek results. Check if position has changed correctly or enough, if not
34  * executes new seek operation on the pipeline element.
35  * @return The new seek request position or -1 if no new seek request is necessary.
36  */
37 gint64 mafw_gst_renderer_seeker_process(MafwGstRendererSeeker *seeker);
38 void mafw_gst_renderer_seeker_cancel(MafwGstRendererSeeker *seeker);
39 void mafw_gst_renderer_seeker_free(MafwGstRendererSeeker *seeker);
40
41 G_END_DECLS
42
43 #endif // MAFWGSTRENDERERSEEKER_H