xref: /aoo4110/main/avmedia/source/inc/mediamisc.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 class ResMgr;
25 
26 #define AVMEDIA_RESID( nId ) ResId( nId, * ::avmedia::GetResMgr() )
27 
28 #ifdef WNT
29 
30 #define AVMEDIA_MANAGER_SERVICE_NAME                    "com.sun.star.comp.avmedia.Manager_DirectX"
31 #define AVMEDIA_MANAGER_SERVICE_IS_JAVABASED            sal_False
32 
33 #define AVMEDIA_MANAGER_SERVICE_NAME_FALLBACK1          ""
34 #define AVMEDIA_MANAGER_SERVICE_IS_JAVABASED_FALLBACK1  sal_False
35 
36 #else
37 #ifdef QUARTZ
38 
39 #define AVMEDIA_MANAGER_SERVICE_NAME                    "com.sun.star.comp.avmedia.Manager_MacAVF"
40 #define AVMEDIA_MANAGER_SERVICE_IS_JAVABASED            sal_False
41 
42 #define AVMEDIA_MANAGER_SERVICE_NAME_FALLBACK1           ""
43 #define AVMEDIA_MANAGER_SERVICE_IS_JAVABASED_FALLBACK1  sal_False
44 
45 #else
46 
47 #define AVMEDIA_MANAGER_SERVICE_NAME                    "com.sun.star.comp.avmedia.Manager_GStreamer"
48 #define AVMEDIA_MANAGER_SERVICE_IS_JAVABASED            sal_False
49 
50 #define AVMEDIA_MANAGER_SERVICE_NAME_FALLBACK1          "com.sun.star.comp.avmedia.Manager_Java"
51 #define AVMEDIA_MANAGER_SERVICE_IS_JAVABASED_FALLBACK1  sal_True
52 
53 #endif
54 #endif
55 
56 namespace avmedia
57 {
58     ResMgr* GetResMgr();
59 }
60