Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
mmrenderertypes.h
Go to the documentation of this file.
1// Copyright (C) 2016 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef MMRENDERERTYPES_H
4#define MMRENDERERTYPES_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <mm/renderer.h>
18#include <mm/renderer/types.h>
19
20extern "C" {
21// ### replace with proper include: mm/renderer/events.h
22typedef enum mmr_state {
23 MMR_STATE_DESTROYED,
24 MMR_STATE_IDLE,
25 MMR_STATE_STOPPED,
26 MMR_STATE_PLAYING
27} mmr_state_t;
28
29typedef enum mmr_event_type {
30 MMR_EVENT_NONE,
31 MMR_EVENT_ERROR,
32 MMR_EVENT_STATE,
33 MMR_EVENT_OVERFLOW,
34 MMR_EVENT_WARNING,
35 MMR_EVENT_STATUS,
36 MMR_EVENT_METADATA,
37 MMR_EVENT_PLAYLIST,
38 MMR_EVENT_INPUT,
39 MMR_EVENT_OUTPUT,
40 MMR_EVENT_CTXTPAR,
41 MMR_EVENT_TRKPAR,
42 MMR_EVENT_OTHER
43} mmr_event_type_t;
44
45typedef struct mmr_event {
46 mmr_event_type_t type;
47 mmr_state_t state;
48 int speed;
49 union mmr_event_details {
50
51 struct mmr_event_state {
52 mmr_state_t oldstate;
53 int oldspeed;
54 } state;
55
56 struct mmr_event_error {
57 mmr_error_info_t info;
58 } error;
59
60 struct mmr_event_warning {
61 const char *str;
62 const strm_string_t *obj;
63 } warning;
64
65 struct mmr_event_metadata {
66 unsigned index;
67 } metadata;
68
69 struct mmr_event_trkparam {
70 unsigned index;
71 } trkparam;
72
73 struct mmr_event_playlist {
74 unsigned start;
75 unsigned end;
76 unsigned length;
77 } playlist;
78
79 struct mmr_event_output {
80 unsigned id;
81 } output;
82 } details;
83
84 const strm_string_t* pos_obj;
85 const char* pos_str;
86 const strm_dict_t* data;
87 const char* objname;
88 void* usrdata;
89} mmr_event_t;
90
91const mmr_event_t* mmr_event_get(mmr_context_t *ctxt);
92
93}
94
95#endif
void setInputDeviceId(const QByteArray &id)
void durationChanged(qint64 durationMs)
void setOutputUrl(const QUrl &url)
void setMediaEncoderSettings(const QMediaEncoderSettings &settings)
void actualLocationChanged(const QUrl &location)
static QByteArray buildDevicePath(const QByteArray &deviceId, const QMediaEncoderSettings &settings)