@breakside/jskit 2025.24.0 → 2025.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Frameworks/DOM.jsframework/Info.json +2 -2
- package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
- package/Frameworks/FontKit.jsframework/Info.json +2 -2
- package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/Info.json +2 -2
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
- package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
- package/Info.json +2 -2
- package/Node/io.breakside.jskit-bundle.js +2 -2
- package/Root/Frameworks/APIKit/Info.yaml +1 -1
- package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/Info.yaml +1 -1
- package/Root/Frameworks/CSSOM/Info.yaml +1 -1
- package/Root/Frameworks/ChartKit/Info.yaml +1 -1
- package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
- package/Root/Frameworks/DBKit/Info.yaml +1 -1
- package/Root/Frameworks/DOM/Info.yaml +1 -1
- package/Root/Frameworks/Dispatch/Info.yaml +1 -1
- package/Root/Frameworks/FontKit/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/Info.yaml +1 -1
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeAtom.js +3 -1
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeEdit.js +28 -0
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeEditList.js +60 -0
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMediaInformation.js +8 -0
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMovieHeader.js +1 -1
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeSampleDescription.js +1 -1
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTrack.js +2 -0
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTrackHeader.js +2 -2
- package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeVideoMediaInformationHeader.js +59 -0
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/PDFKit/Info.yaml +1 -1
- package/Root/Frameworks/QRKit/Info.yaml +1 -1
- package/Root/Frameworks/SearchKit/Info.yaml +1 -1
- package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/TestKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/UICursor.js +8 -0
- package/Root/Frameworks/UIKit/UIPopupWindow.js +177 -8
- package/Root/Frameworks/UIKit/UIWindow.js +26 -3
- package/Root/Frameworks/UIKit/UIWindowServer.js +252 -13
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
4
|
-
"JSBundleVersion": "2025.
|
|
4
|
+
"JSBundleVersion": "2025.27.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "DOM+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.DOM",
|
|
6
|
-
"JSBundleVersion": "2025.
|
|
6
|
+
"JSBundleVersion": "2025.27.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
|
|
|
11
11
|
"node": "DOM+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
4
|
-
"JSBundleVersion": "2025.
|
|
4
|
+
"JSBundleVersion": "2025.27.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
8
8
|
"html": "FontKit+HTML.js"
|
|
9
9
|
},
|
|
10
10
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.JSKit.FontKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.FontKit",
|
|
6
|
-
"JSBundleVersion": "2025.
|
|
6
|
+
"JSBundleVersion": "2025.27.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
10
10
|
"html": "FontKit+HTML.js"
|
|
11
11
|
},
|
|
12
12
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [],
|
|
16
16
|
"ResourceLookup": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
4
|
-
"JSBundleVersion": "2025.
|
|
4
|
+
"JSBundleVersion": "2025.27.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "Foundation+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.Foundation",
|
|
6
|
-
"JSBundleVersion": "2025.
|
|
6
|
+
"JSBundleVersion": "2025.27.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
|
|
|
11
11
|
"node": "Foundation+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [
|
|
17
17
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "framework",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
4
|
-
"JSBundleVersion": "2025.
|
|
4
|
+
"JSBundleVersion": "2025.27.0",
|
|
5
5
|
"JSDevelopmentLanguage": "en",
|
|
6
6
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
7
7
|
"JSBundleEnvironments": {
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"node": "SecurityKit+Node.js"
|
|
10
10
|
},
|
|
11
11
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
12
|
-
"GitRevision": "
|
|
12
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "framework",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
|
|
6
|
-
"JSBundleVersion": "2025.
|
|
6
|
+
"JSBundleVersion": "2025.27.0",
|
|
7
7
|
"JSDevelopmentLanguage": "en",
|
|
8
8
|
"JSCopyright": "Copyright © 2020 Breakside Inc.",
|
|
9
9
|
"JSBundleEnvironments": {
|
|
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
|
|
|
11
11
|
"node": "SecurityKit+Node.js"
|
|
12
12
|
},
|
|
13
13
|
"JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
|
|
14
|
-
"GitRevision": "
|
|
14
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
15
15
|
},
|
|
16
16
|
"Resources": [],
|
|
17
17
|
"ResourceLookup": {
|
package/Info.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"JSBundleType": "node",
|
|
3
3
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
4
|
-
"JSBundleVersion": "2025.
|
|
4
|
+
"JSBundleVersion": "2025.27.0",
|
|
5
5
|
"JSExecutableName": "jskit",
|
|
6
6
|
"NPMOrganization": "breakside",
|
|
7
7
|
"JSResources": [
|
|
8
8
|
"Tests/HTMLTestRunner.js",
|
|
9
9
|
"Tests/NodeTestRunner.js"
|
|
10
10
|
],
|
|
11
|
-
"GitRevision": "
|
|
11
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
12
12
|
}
|
|
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.jskit'] = {
|
|
|
3
3
|
"Info": {
|
|
4
4
|
"JSBundleType": "node",
|
|
5
5
|
"JSBundleIdentifier": "io.breakside.jskit",
|
|
6
|
-
"JSBundleVersion": "2025.
|
|
6
|
+
"JSBundleVersion": "2025.27.0",
|
|
7
7
|
"JSExecutableName": "jskit",
|
|
8
8
|
"NPMOrganization": "breakside",
|
|
9
9
|
"JSResources": [
|
|
10
10
|
"Tests/HTMLTestRunner.js",
|
|
11
11
|
"Tests/NodeTestRunner.js"
|
|
12
12
|
],
|
|
13
|
-
"GitRevision": "
|
|
13
|
+
"GitRevision": "d7299727ca1a1839d58c058b33f65853f461253c"
|
|
14
14
|
},
|
|
15
15
|
"Resources": [
|
|
16
16
|
{
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// #import "MKQuickTimeAtom.js"
|
|
2
|
+
// #import "MKQuickTimeEditList.js"
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
(function(){
|
|
6
|
+
|
|
7
|
+
var logger = JSLog("medikit", "quicktime");
|
|
8
|
+
|
|
9
|
+
JSClass("MKQuickTimeEdit", MKQuickTimeAtom, {
|
|
10
|
+
|
|
11
|
+
type: MKQuickTimeAtom.Type.edts,
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
initWithData: function(data){
|
|
15
|
+
MKQuickTimeEdit.$super.initWithData.call(this, data);
|
|
16
|
+
this.registerAtomClass(MKQuickTimeEditList);
|
|
17
|
+
this.readAtoms(8);
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
editList: JSReadOnlyProperty(),
|
|
21
|
+
|
|
22
|
+
getEditList: function(){
|
|
23
|
+
return this.atomOfType(MKQuickTimeAtom.Type.elst);
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
})();
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// #import "MKQuickTimeAtom.js"
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
(function(){
|
|
5
|
+
|
|
6
|
+
var logger = JSLog("medikit", "quicktime");
|
|
7
|
+
|
|
8
|
+
JSClass("MKQuickTimeEditList", MKQuickTimeAtom, {
|
|
9
|
+
|
|
10
|
+
type: MKQuickTimeAtom.Type.elst,
|
|
11
|
+
version: JSReadOnlyProperty(),
|
|
12
|
+
flags: JSReadOnlyProperty(),
|
|
13
|
+
numberOfEntries: JSReadOnlyProperty(),
|
|
14
|
+
|
|
15
|
+
getVersion: function(){
|
|
16
|
+
return this.data[8];
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
getFlags: function(){
|
|
20
|
+
return this.dataView.getUint32(8) & 0x00FFFFFF;
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
initWithData: function(data){
|
|
24
|
+
MKQuickTimeEditList.$super.initWithData.call(this, data);
|
|
25
|
+
if (data.length < 16){
|
|
26
|
+
throw new Error("expecting at least 16 bytes for elst atom");
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
getNumberOfEntries: function(){
|
|
31
|
+
return this.dataView.getUint32(12);
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
durationAtIndex: function(index){
|
|
35
|
+
var i = 16 + index * 12;
|
|
36
|
+
if (i >= 16 && i < this.data.length){
|
|
37
|
+
return this.dataView.getUint32(i);
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
mediaTimeAtIndex: function(index){
|
|
43
|
+
var i = 16 + index * 12;
|
|
44
|
+
if (i >= 16 && i < this.data.length){
|
|
45
|
+
return this.dataView.getUint32(i + 4);
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
mediaRateAtIndex: function(index){
|
|
51
|
+
var i = 16 + index * 12;
|
|
52
|
+
if (i >= 16 && i < this.data.length){
|
|
53
|
+
return this.dataView.getUint16(i + 8) + this.dataView.getUint16(i + 10) / 0x10000;
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
})();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// #import "MKQuickTimeAtom.js"
|
|
2
2
|
// #import "MKQuickTimeSampleTable.js"
|
|
3
|
+
// #import "MKQuickTimeVideoMediaInformationHeader.js"
|
|
3
4
|
"use strict";
|
|
4
5
|
|
|
5
6
|
(function(){
|
|
@@ -13,6 +14,7 @@ JSClass("MKQuickTimeMediaInformation", MKQuickTimeAtom, {
|
|
|
13
14
|
initWithData: function(data){
|
|
14
15
|
MKQuickTimeMediaInformation.$super.initWithData.call(this, data);
|
|
15
16
|
this.registerAtomClass(MKQuickTimeSampleTable);
|
|
17
|
+
this.registerAtomClass(MKQuickTimeVideoMediaInformationHeader);
|
|
16
18
|
this.readAtoms(8);
|
|
17
19
|
},
|
|
18
20
|
|
|
@@ -22,6 +24,12 @@ JSClass("MKQuickTimeMediaInformation", MKQuickTimeAtom, {
|
|
|
22
24
|
return this.atomOfType(MKQuickTimeAtom.Type.stbl);
|
|
23
25
|
},
|
|
24
26
|
|
|
27
|
+
videoMediaInformationHeader: JSReadOnlyProperty(),
|
|
28
|
+
|
|
29
|
+
getVideoMediaInformationHeader: function(){
|
|
30
|
+
return this.atomOfType(MKQuickTimeAtom.Type.vmhd);
|
|
31
|
+
},
|
|
32
|
+
|
|
25
33
|
sampleDurations: JSReadOnlyProperty(),
|
|
26
34
|
|
|
27
35
|
getSampleDurations: function(){
|
|
@@ -32,7 +32,7 @@ JSClass("MKQuickTimeMovieHeader", MKQuickTimeAtom, {
|
|
|
32
32
|
},
|
|
33
33
|
|
|
34
34
|
getPreferredRate: function(){
|
|
35
|
-
return this.dataView.getUint16(28) + this.dataView.getUint16(30) /
|
|
35
|
+
return this.dataView.getUint16(28) + this.dataView.getUint16(30) / 0x10000;
|
|
36
36
|
},
|
|
37
37
|
|
|
38
38
|
getPosterTime: function(){
|
|
@@ -60,7 +60,7 @@ JSClass("MKQuickTimeSampleDescription", MKQuickTimeAtom, {
|
|
|
60
60
|
while (index < n && i < l - 16){
|
|
61
61
|
size = this.dataView.getUint32(i);
|
|
62
62
|
if (size >= 36){
|
|
63
|
-
rates.push(this.dataView.getUint16(i + 32) + this.dataView.getUint16(i + 34) /
|
|
63
|
+
rates.push(this.dataView.getUint16(i + 32) + this.dataView.getUint16(i + 34) / 0x10000);
|
|
64
64
|
}
|
|
65
65
|
i += size;
|
|
66
66
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// #import "MKQuickTimeAtom.js"
|
|
2
2
|
// #import "MKQuickTimeTrackHeader.js"
|
|
3
3
|
// #import "MKQuickTimeMedia.js"
|
|
4
|
+
// #import "MKQuickTimeEdit.js"
|
|
4
5
|
"use strict";
|
|
5
6
|
|
|
6
7
|
(function(){
|
|
@@ -15,6 +16,7 @@ JSClass("MKQuickTimeTrack", MKQuickTimeAtom, {
|
|
|
15
16
|
MKQuickTimeTrack.$super.initWithData.call(this, data);
|
|
16
17
|
this.registerAtomClass(MKQuickTimeTrackHeader);
|
|
17
18
|
this.registerAtomClass(MKQuickTimeMedia);
|
|
19
|
+
this.registerAtomClass(MKQuickTimeEdit);
|
|
18
20
|
this.readAtoms(8);
|
|
19
21
|
},
|
|
20
22
|
|
|
@@ -44,11 +44,11 @@ JSClass("MKQuickTimeTrackHeader", MKQuickTimeAtom, {
|
|
|
44
44
|
},
|
|
45
45
|
|
|
46
46
|
getWidth: function(){
|
|
47
|
-
return this.dataView.getUint16(84) + this.dataView.getUint16(86) /
|
|
47
|
+
return this.dataView.getUint16(84) + this.dataView.getUint16(86) / 0x10000;
|
|
48
48
|
},
|
|
49
49
|
|
|
50
50
|
getHeight: function(){
|
|
51
|
-
return this.dataView.getUint16(88) + this.dataView.getUint16(90) /
|
|
51
|
+
return this.dataView.getUint16(88) + this.dataView.getUint16(90) / 0x10000;
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
videoResolution: JSReadOnlyProperty(),
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// #import "MKQuickTimeAtom.js"
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
(function(){
|
|
5
|
+
|
|
6
|
+
var logger = JSLog("medikit", "quicktime");
|
|
7
|
+
|
|
8
|
+
JSClass("MKQuickTimeVideoMediaInformationHeader", MKQuickTimeAtom, {
|
|
9
|
+
|
|
10
|
+
type: MKQuickTimeAtom.Type.vmhd,
|
|
11
|
+
version: JSReadOnlyProperty(),
|
|
12
|
+
flags: JSReadOnlyProperty(),
|
|
13
|
+
|
|
14
|
+
getVersion: function(){
|
|
15
|
+
return this.data[8];
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
getFlags: function(){
|
|
19
|
+
return this.dataView.getUint32(8) & 0x00FFFFFF;
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
initWithData: function(data){
|
|
23
|
+
MKQuickTimeVideoMediaInformationHeader.$super.initWithData.call(this, data);
|
|
24
|
+
if (data.length < 20){
|
|
25
|
+
throw new Error("expecting at least 20 bytes for vmhd atom");
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
graphicsMode: JSReadOnlyProperty(),
|
|
30
|
+
|
|
31
|
+
getGraphicsMode: function(){
|
|
32
|
+
return this.dataView.getUint16(12);
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
opColors: JSReadOnlyProperty(),
|
|
36
|
+
|
|
37
|
+
getOpColors: function(){
|
|
38
|
+
return [
|
|
39
|
+
this.dataView.getUint16(14),
|
|
40
|
+
this.dataView.getUint16(16),
|
|
41
|
+
this.dataView.getUint16(18)
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
MKQuickTimeVideoMediaInformationHeader.GraphicsMode = {
|
|
48
|
+
copy: 0,
|
|
49
|
+
ditherCopy: 0x40,
|
|
50
|
+
blend: 0x20,
|
|
51
|
+
transparent: 0x24,
|
|
52
|
+
straightAlpha: 0x100,
|
|
53
|
+
premultipliedWhiteAlpha: 0x101,
|
|
54
|
+
premultipliedBlackAlpha: 0x102,
|
|
55
|
+
straightAlphaBlend: 0x104,
|
|
56
|
+
composition: 0x103
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
})();
|