• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.googlecode.mp4parser.boxes.apple;
2 
3 import com.googlecode.mp4parser.AbstractBox;
4 
5 import java.nio.ByteBuffer;
6 
7 /**
8  * Undocumented atom in the gmhd atom of text tracks.
9  */
10 public class GenericMediaHeaderTextAtom extends AbstractBox {
11 
12     public static final String TYPE = "text";
13 
14     int unknown_1 = 65536;
15     int unknown_2;
16     int unknown_3;
17     int unknown_4;
18     int unknown_5 = 65536;
19     int unknown_6;
20     int unknown_7;
21     int unknown_8;
22     int unknown_9 = 1073741824;
23 
GenericMediaHeaderTextAtom()24     public GenericMediaHeaderTextAtom() {
25         super(TYPE);
26     }
27 
28     @Override
getContentSize()29     protected long getContentSize() {
30         return 36;
31     }
32 
33     @Override
getContent(ByteBuffer byteBuffer)34     protected void getContent(ByteBuffer byteBuffer) {
35         byteBuffer.putInt(unknown_1);
36         byteBuffer.putInt(unknown_2);
37         byteBuffer.putInt(unknown_3);
38         byteBuffer.putInt(unknown_4);
39         byteBuffer.putInt(unknown_5);
40         byteBuffer.putInt(unknown_6);
41         byteBuffer.putInt(unknown_7);
42         byteBuffer.putInt(unknown_8);
43         byteBuffer.putInt(unknown_9);
44     }
45 
46     @Override
_parseDetails(ByteBuffer content)47     protected void _parseDetails(ByteBuffer content) {
48         unknown_1 = content.getInt();
49         unknown_2 = content.getInt();
50         unknown_3 = content.getInt();
51         unknown_4 = content.getInt();
52         unknown_5 = content.getInt();
53         unknown_6 = content.getInt();
54         unknown_7 = content.getInt();
55         unknown_8 = content.getInt();
56         unknown_9 = content.getInt();
57     }
58 
getUnknown_1()59     public int getUnknown_1() {
60         return unknown_1;
61     }
62 
setUnknown_1(int unknown_1)63     public void setUnknown_1(int unknown_1) {
64         this.unknown_1 = unknown_1;
65     }
66 
getUnknown_2()67     public int getUnknown_2() {
68         return unknown_2;
69     }
70 
setUnknown_2(int unknown_2)71     public void setUnknown_2(int unknown_2) {
72         this.unknown_2 = unknown_2;
73     }
74 
getUnknown_3()75     public int getUnknown_3() {
76         return unknown_3;
77     }
78 
setUnknown_3(int unknown_3)79     public void setUnknown_3(int unknown_3) {
80         this.unknown_3 = unknown_3;
81     }
82 
getUnknown_4()83     public int getUnknown_4() {
84         return unknown_4;
85     }
86 
setUnknown_4(int unknown_4)87     public void setUnknown_4(int unknown_4) {
88         this.unknown_4 = unknown_4;
89     }
90 
getUnknown_5()91     public int getUnknown_5() {
92         return unknown_5;
93     }
94 
setUnknown_5(int unknown_5)95     public void setUnknown_5(int unknown_5) {
96         this.unknown_5 = unknown_5;
97     }
98 
getUnknown_6()99     public int getUnknown_6() {
100         return unknown_6;
101     }
102 
setUnknown_6(int unknown_6)103     public void setUnknown_6(int unknown_6) {
104         this.unknown_6 = unknown_6;
105     }
106 
getUnknown_7()107     public int getUnknown_7() {
108         return unknown_7;
109     }
110 
setUnknown_7(int unknown_7)111     public void setUnknown_7(int unknown_7) {
112         this.unknown_7 = unknown_7;
113     }
114 
getUnknown_8()115     public int getUnknown_8() {
116         return unknown_8;
117     }
118 
setUnknown_8(int unknown_8)119     public void setUnknown_8(int unknown_8) {
120         this.unknown_8 = unknown_8;
121     }
122 
getUnknown_9()123     public int getUnknown_9() {
124         return unknown_9;
125     }
126 
setUnknown_9(int unknown_9)127     public void setUnknown_9(int unknown_9) {
128         this.unknown_9 = unknown_9;
129     }
130 }
131