diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmedia/llmediaimplquicktime.h | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/linden/indra/llmedia/llmediaimplquicktime.h b/linden/indra/llmedia/llmediaimplquicktime.h deleted file mode 100644 index d4e1db8..0000000 --- a/linden/indra/llmedia/llmediaimplquicktime.h +++ /dev/null | |||
@@ -1,112 +0,0 @@ | |||
1 | /** | ||
2 | * @file llmediaimplquicktime.h | ||
3 | * @brief QuickTime media impl concrete class | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007-2009, 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 | ||
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | ||
23 | * By copying, modifying or distributing this software, you acknowledge | ||
24 | * that you have read and understood your obligations described above, | ||
25 | * and agree to abide by those obligations. | ||
26 | * | ||
27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
29 | * COMPLETENESS OR PERFORMANCE. | ||
30 | * $/LicenseInfo$ | ||
31 | */ | ||
32 | |||
33 | #ifndef LLMEDIAIMPLQUICKTIME_H | ||
34 | #define LLMEDIAIMPLQUICKTIME_H | ||
35 | |||
36 | #include "llmediaimplcommon.h" | ||
37 | #include "llmediaimplfactory.h" | ||
38 | |||
39 | #if LL_QUICKTIME_ENABLED | ||
40 | |||
41 | #include <string> | ||
42 | |||
43 | // QuickTime includes | ||
44 | #if defined(__APPLE__) | ||
45 | #include <QuickTime/QuickTime.h> | ||
46 | #elif defined(WIN32) | ||
47 | #include "MacTypes.h" | ||
48 | #include "QTML.h" | ||
49 | #include "Movies.h" | ||
50 | #include "QDoffscreen.h" | ||
51 | #include "FixMath.h" | ||
52 | #endif | ||
53 | |||
54 | class LLMediaManagerData; | ||
55 | |||
56 | class LLMediaImplQuickTime : | ||
57 | public LLMediaImplCommon | ||
58 | { | ||
59 | public: | ||
60 | LLMediaImplQuickTime(); | ||
61 | virtual ~LLMediaImplQuickTime(); | ||
62 | |||
63 | static bool startup( LLMediaManagerData* init_data ); | ||
64 | static bool closedown(); | ||
65 | |||
66 | /* virtual */ std::string getVersion(); | ||
67 | /* virtual */ bool navigateTo( const std::string url ); | ||
68 | /* virtual */ bool updateMedia(); | ||
69 | /* virtual */ unsigned char* getMediaData(); | ||
70 | /* virtual */ int getMediaDataWidth() const; | ||
71 | /* virtual */ int getTextureFormatPrimary() const; | ||
72 | /* virtual */ int getTextureFormatType() const; | ||
73 | /* virtual */ bool seek( double time ); | ||
74 | /* virtual */ bool setVolume( float volume ); | ||
75 | |||
76 | bool sizeChanged(); | ||
77 | |||
78 | private: | ||
79 | static OSErr movieDrawingCompleteCallback( Movie call_back_movie, long ref ); | ||
80 | static Boolean mcActionFilterCallBack( MovieController mc, short action, void *params, long ref ); | ||
81 | static void moviePrePrerollCompleteCallback( Movie movie, OSErr preroll_err, void *refcon ); | ||
82 | |||
83 | bool load( const std::string url ); | ||
84 | bool unload(); | ||
85 | void rewind(); | ||
86 | bool processState(); | ||
87 | bool setMovieBoxEnhanced( Rect* rect ); | ||
88 | |||
89 | Movie mMovieHandle; | ||
90 | GWorldPtr mGWorldHandle; | ||
91 | ComponentInstance mMovieController; | ||
92 | const int mMinWidth; | ||
93 | const int mMaxWidth; | ||
94 | const int mMinHeight; | ||
95 | const int mMaxHeight; | ||
96 | int mCurVolume; | ||
97 | }; | ||
98 | |||
99 | // The maker class | ||
100 | class LLMediaImplQuickTimeMaker : public LLMediaImplMaker | ||
101 | { | ||
102 | public: | ||
103 | LLMediaImplQuickTimeMaker(); | ||
104 | LLMediaImplQuickTime* create() | ||
105 | { | ||
106 | return new LLMediaImplQuickTime(); | ||
107 | } | ||
108 | }; | ||
109 | |||
110 | #endif // LL_QUICKTIME_ENABLED | ||
111 | |||
112 | #endif // LLMEDIAIMPLQUICKTIME_H | ||