• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 #ifndef PVMF_TRACK_SELECTION_EXTENSION_H_INCLUDED
19 #define PVMF_TRACK_SELECTION_EXTENSION_H_INCLUDED
20 
21 #ifndef OSCL_BASE_H_INCLUDED
22 #include "oscl_base.h"
23 #endif
24 #ifndef OSCL_TYPES_H_INCLUDED
25 #include "oscl_types.h"
26 #endif
27 #ifndef PV_UUID_H_INCLUDED
28 #include "pv_uuid.h"
29 #endif
30 #ifndef PV_INTERFACE_H
31 #include "pv_interface.h"
32 #endif
33 #ifndef PVMF_MEDIA_PRESENTATION_INFO_H_INCLUDED
34 #include "pvmf_media_presentation_info.h"
35 #endif
36 
37 #define PVMF_TRACK_SELECTION_INTERFACE_MIMETYPE "pvxxx/pvmf/pvmftrackselectioninterface"
38 #define PVMF_TRACK_SELECTION_INTERFACE_UUID PVUuid(0x3afa4e1b,0x989c,0x41c3,0x90,0xef,0x11,0xa9,0xf5,0xa4,0x59,0xd7)
39 
40 class PVMFTrackSelectionExtensionInterface : public PVInterface
41 {
42     public:
43         virtual void addRef() = 0;
44         virtual void removeRef() = 0;
45         virtual bool queryInterface(const PVUuid& uuid, PVInterface*& iface) = 0;
46         /**
47         * Gets the media presentation information from a source node.
48         *
49         * @param aInfo, a pointer to PVMFMediaPresentationInfo
50         * @return PVMFSuccess if successfully set.PVMFFailure for errors.
51         */
52         virtual PVMFStatus GetMediaPresentationInfo(PVMFMediaPresentationInfo& aInfo) = 0;
53         /**
54         * API to provide information on selected tracks
55         *
56         * @param aInfo, a pointer to PVMFMediaPresentationInfo, that contains
57         * a possibly pruned list of selected trackinfo.
58         * @return PVMFSuccess if successfully set.PVMFFailure for errors.
59         */
60         virtual PVMFStatus SelectTracks(PVMFMediaPresentationInfo& aInfo) = 0;
61 };
62 
63 #endif //PVMF_TRACK_SELECTION_EXTENSION_H_INCLUDED
64 
65