• 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 /*
19     This PVA_FF_CopyrightAtom Class contains the user-defined copyright notice.
20 */
21 
22 #ifndef __CopyrightAtom_H__
23 #define __CopyrightAtom_H__
24 
25 #include "fullatom.h"
26 
27 class PVA_FF_CopyrightAtom : public PVA_FF_FullAtom
28 {
29 
30     public:
31         PVA_FF_CopyrightAtom(uint8 version, uint32 flags); // Constructor
32 
33         virtual ~PVA_FF_CopyrightAtom();
34 
35         // Member gets and sets
getLanguage()36         uint16 getLanguage()
37         {
38             return _language;
39         }
setLanguage(uint16 language)40         void setLanguage(uint16 language)
41         {
42             _language = language;
43         }
44 
getNotice()45         OSCL_wString getNotice()
46         {
47             return _notice;
48         }
setNotice(OSCL_wString notice)49         void setNotice(OSCL_wString notice)
50         {
51             _notice = notice;
52         }
53 
54 
55         // Rendering the PVA_FF_Atom in proper format (bitlengths, etc.) to an ostream
56         virtual bool renderToFileStream(MP4_AUTHOR_FF_FILE_IO_WRAP *fp);
57 
58     private:
59         uint16 _language; // (15bits) padded with a single bit when rendering
60         OSCL_wString _notice;
61 
62 };
63 
64 
65 #endif
66 
67