diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmedia/llmediaengine.h | 150 |
1 files changed, 0 insertions, 150 deletions
diff --git a/linden/indra/llmedia/llmediaengine.h b/linden/indra/llmedia/llmediaengine.h deleted file mode 100644 index 4cae070..0000000 --- a/linden/indra/llmedia/llmediaengine.h +++ /dev/null | |||
@@ -1,150 +0,0 @@ | |||
1 | /** | ||
2 | * @file llmediaengine.h | ||
3 | * @brief Top level media engine - wraps more specific functionality. | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2005&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2005-2008, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | * $/LicenseInfo$ | ||
30 | */ | ||
31 | |||
32 | #ifndef LLMEDIAENGINE_H | ||
33 | #define LLMEDIAENGINE_H | ||
34 | |||
35 | #include "linden_common.h" | ||
36 | #include "lluuid.h" | ||
37 | #include "llimage.h" | ||
38 | |||
39 | #include "llmediabase.h" | ||
40 | #include "llmediaobservers.h" | ||
41 | |||
42 | |||
43 | #include "message.h" | ||
44 | |||
45 | // older: after a 7.3.1 update version is 120684544 (dec) and 7318000 (hex) | ||
46 | // older: current version on my Windows system after a 7.4 update version is 121667584 (dec) and 7408000 (hex) | ||
47 | // current version on my Windows system after a 7.4.1 update version is 121733120 (dec) and 7418000 (hex) | ||
48 | |||
49 | #define LL_MIN_QUICKTIME_VERSION ( 0x7418000 ) // QT 7.4.1 | ||
50 | |||
51 | ////////////////////////////////////////////////////////////////////////////// | ||
52 | // media engine singleton | ||
53 | class LLMediaEngine | ||
54 | { | ||
55 | public: | ||
56 | static void initClass(); | ||
57 | static void updateClass(F32 volume); | ||
58 | static void cleanupClass(); | ||
59 | |||
60 | protected: | ||
61 | // don't let anyone else make one of these | ||
62 | LLMediaEngine (); | ||
63 | |||
64 | public: | ||
65 | virtual ~LLMediaEngine (); | ||
66 | |||
67 | // used to get access to single instance of the class (singleton pattern) | ||
68 | static LLMediaEngine* getInstance (); | ||
69 | |||
70 | // public methods | ||
71 | BOOL init (); | ||
72 | BOOL update (); | ||
73 | |||
74 | // Pass web_url true if it's a web page, false if it's a movie. | ||
75 | // path is to mozilla directory for mozilla | ||
76 | BOOL load( const LLString& urlIn, bool web_url, const LLString& path, S32 width_pixels, S32 height_pixels); | ||
77 | |||
78 | BOOL isLoaded (); | ||
79 | BOOL unload (); | ||
80 | BOOL play (); | ||
81 | BOOL loop (); | ||
82 | BOOL pause (); | ||
83 | BOOL stop (); | ||
84 | BOOL seek (F64 time); | ||
85 | void setAvailable ( BOOL availableIn ); | ||
86 | BOOL isAvailable (); | ||
87 | void setEnabled ( BOOL enabledIn ); | ||
88 | BOOL isEnabled (); | ||
89 | void setAutoScaled ( BOOL autoScaledIn ); | ||
90 | BOOL isAutoScaled (); | ||
91 | BOOL setVolume ( F32 volumeIn ); | ||
92 | S32 getQuickTimeVersion(); | ||
93 | |||
94 | void setUrl ( const LLString& urlIn ); | ||
95 | const LLString& getUrl (); | ||
96 | void setImageUUID ( LLUUID textureIdIn ); | ||
97 | LLUUID getImageUUID (); | ||
98 | |||
99 | // MBW -- XXX -- This should return a LLMediaMovieBase, but the web and movie media classes still haven't been | ||
100 | // fully disentangled. | ||
101 | LLMediaBase* getMediaRenderer(); | ||
102 | LLImageRaw* getImageRaw() { return mImageRaw; } | ||
103 | void handleSizeChangedRequest(); | ||
104 | |||
105 | ////////////////////////////////////////////////////////////////////////////////////////// | ||
106 | // | ||
107 | static void convertImageAndLoadUrl ( bool enableLooping, bool web_url, const std::string& path); | ||
108 | |||
109 | ////////////////////////////////////////////////////////////////////////////////////////// | ||
110 | // | ||
111 | static void process_parcel_media ( LLMessageSystem *msg, void ** ); | ||
112 | static void process_parcel_media_update ( LLMessageSystem *msg, void ** ); | ||
113 | |||
114 | // proxy configuration | ||
115 | void setNetworkProxy ( BOOL enabledIn, const LLString& addressIn, | ||
116 | S32 portIn, S32 socksIn, const LLString& excludeIn ); | ||
117 | |||
118 | void getNetworkProxy ( BOOL& enabledOut, LLString& addressOut, | ||
119 | S32& portOut, S32& socksOut, LLString& excludeOuy ); | ||
120 | |||
121 | private: | ||
122 | void createImageRaw(); | ||
123 | void destroyImageRaw(); | ||
124 | |||
125 | private: | ||
126 | BOOL mAvailable; | ||
127 | BOOL mEnabled; | ||
128 | BOOL mAutoScaled; | ||
129 | LLString mUrl; | ||
130 | // MBW -- XXX -- This should be a LLMediaMovieBase, but the web and movie media classes still haven't been | ||
131 | // fully disentangled. | ||
132 | LLMediaBase* mMediaRenderer; | ||
133 | LLPointer<LLImageRaw> mImageRaw; | ||
134 | |||
135 | LLUUID mImageUUID; | ||
136 | F32 mVolume; | ||
137 | |||
138 | // proxy information | ||
139 | BOOL mProxyEnabled; | ||
140 | LLString mProxyAddress; | ||
141 | S32 mProxyPort; | ||
142 | S32 mProxySocks; | ||
143 | LLString mProxyExlude; | ||
144 | |||
145 | private: | ||
146 | static LLMediaEngine* sInstance; | ||
147 | }; | ||
148 | |||
149 | #endif // LLMEDIAENGINE_H | ||
150 | |||