summaryrefslogtreecommitdiff
path: root/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn
diff options
context:
space:
mode:
Diffstat (limited to 'isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn')
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/all-wcprops23
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/entries130
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/AvcNalUnitStorageBox.java.svn-base97
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/SampleEncryptionBox.java.svn-base24
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/TrackEncryptionBox.java.svn-base12
5 files changed, 286 insertions, 0 deletions
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/all-wcprops b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/all-wcprops
new file mode 100644
index 0000000..f4b1c1b
--- /dev/null
+++ b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/all-wcprops
@@ -0,0 +1,23 @@
+K 25
+svn:wc:ra_dav:version-url
+V 94
+/svn/!svn/ver/671/trunk/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat
+END
+AvcNalUnitStorageBox.java
+K 25
+svn:wc:ra_dav:version-url
+V 120
+/svn/!svn/ver/671/trunk/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/AvcNalUnitStorageBox.java
+END
+SampleEncryptionBox.java
+K 25
+svn:wc:ra_dav:version-url
+V 119
+/svn/!svn/ver/377/trunk/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/SampleEncryptionBox.java
+END
+TrackEncryptionBox.java
+K 25
+svn:wc:ra_dav:version-url
+V 118
+/svn/!svn/ver/276/trunk/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/TrackEncryptionBox.java
+END
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/entries b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/entries
new file mode 100644
index 0000000..6af5ffa
--- /dev/null
+++ b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/entries
@@ -0,0 +1,130 @@
+10
+
+dir
+778
+http://mp4parser.googlecode.com/svn/trunk/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat
+http://mp4parser.googlecode.com/svn
+
+
+
+2012-06-10T18:50:38.971172Z
+671
+michael.stattmann@gmail.com
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7decde4b-c250-0410-a0da-51896bc88be6
+
+AvcNalUnitStorageBox.java
+file
+
+
+
+
+2012-09-14T17:27:50.667221Z
+fa9f9cda733943c6af5e690156163dcb
+2012-06-10T18:50:38.971172Z
+671
+michael.stattmann@gmail.com
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3290
+
+SampleEncryptionBox.java
+file
+
+
+
+
+2012-09-14T17:27:50.667221Z
+b451a1521659345d7712cbb874eec98f
+2012-03-05T23:28:24.666173Z
+377
+Sebastian.Annies@gmail.com
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+618
+
+TrackEncryptionBox.java
+file
+
+
+
+
+2012-09-14T17:27:50.667221Z
+9ab827bee01e8abfe68167428df756dc
+2011-11-22T18:13:22.290919Z
+276
+Sebastian.Annies@gmail.com
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+269
+
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/AvcNalUnitStorageBox.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/AvcNalUnitStorageBox.java.svn-base
new file mode 100644
index 0000000..7182eca
--- /dev/null
+++ b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/AvcNalUnitStorageBox.java.svn-base
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2011 castLabs, Berlin
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.googlecode.mp4parser.boxes.basemediaformat;
+
+import com.googlecode.mp4parser.AbstractBox;
+import com.coremedia.iso.boxes.h264.AvcConfigurationBox;
+
+import java.io.ByteArrayOutputStream;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import java.util.List;
+
+import static com.googlecode.mp4parser.util.CastUtils.l2i;
+
+/**
+ * The AVC NAL Unit Storage Box SHALL contain an AVCDecoderConfigurationRecord,
+ * as defined in section 5.2.4.1 of the ISO 14496-12.
+ */
+public class AvcNalUnitStorageBox extends AbstractBox {
+ AvcConfigurationBox.AVCDecoderConfigurationRecord avcDecoderConfigurationRecord;
+
+ public AvcNalUnitStorageBox() {
+ super("avcn");
+ }
+
+ public AvcNalUnitStorageBox(AvcConfigurationBox avcConfigurationBox) {
+ super("avcn");
+ this.avcDecoderConfigurationRecord = avcConfigurationBox.getavcDecoderConfigurationRecord();
+ }
+
+ public AvcConfigurationBox.AVCDecoderConfigurationRecord getAvcDecoderConfigurationRecord() {
+ return avcDecoderConfigurationRecord;
+ }
+
+ // just to display sps in isoviewer no practical use
+ public int getLengthSizeMinusOne() {
+ return avcDecoderConfigurationRecord.lengthSizeMinusOne;
+ }
+
+ public String[] getSPS() {
+ return avcDecoderConfigurationRecord.getSPS();
+ }
+
+ public String[] getPPS() {
+ return avcDecoderConfigurationRecord.getPPS();
+ }
+
+ public List<String> getSequenceParameterSetsAsStrings() {
+ return avcDecoderConfigurationRecord.getSequenceParameterSetsAsStrings();
+ }
+
+ public List<String> getSequenceParameterSetExtsAsStrings() {
+ return avcDecoderConfigurationRecord.getSequenceParameterSetExtsAsStrings();
+ }
+
+ public List<String> getPictureParameterSetsAsStrings() {
+ return avcDecoderConfigurationRecord.getPictureParameterSetsAsStrings();
+ }
+
+ @Override
+ protected long getContentSize() {
+ return avcDecoderConfigurationRecord.getContentSize();
+ }
+
+ @Override
+ public void _parseDetails(ByteBuffer content) {
+ this.avcDecoderConfigurationRecord = new AvcConfigurationBox.AVCDecoderConfigurationRecord(content);
+ }
+
+ @Override
+ protected void getContent(ByteBuffer byteBuffer) {
+ this.avcDecoderConfigurationRecord.getContent(byteBuffer);
+ }
+
+ @Override
+ public String toString() {
+ return "AvcNalUnitStorageBox{" +
+ "SPS=" + avcDecoderConfigurationRecord.getSequenceParameterSetsAsStrings() +
+ ",PPS=" + avcDecoderConfigurationRecord.getPictureParameterSetsAsStrings() +
+ ",lengthSize=" + (avcDecoderConfigurationRecord.lengthSizeMinusOne + 1) +
+ '}';
+ }
+}
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/SampleEncryptionBox.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/SampleEncryptionBox.java.svn-base
new file mode 100644
index 0000000..3430818
--- /dev/null
+++ b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/SampleEncryptionBox.java.svn-base
@@ -0,0 +1,24 @@
+package com.googlecode.mp4parser.boxes.basemediaformat;
+
+import com.googlecode.mp4parser.boxes.AbstractSampleEncryptionBox;
+
+/**
+ * aligned(8) class AbstractSampleEncryptionBox extends FullBox(‘uuid’, extended_type= 0xA2394F52-5A9B-4f14-A244-6C427C648DF4, version=0, flags=0)
+ * {
+ * <p/>
+ * unsigned int (32) sample_count;
+ * {
+ * unsigned int(16) InitializationVector;
+ * }[ sample_count ]
+ * }
+ */
+public class SampleEncryptionBox extends AbstractSampleEncryptionBox {
+
+ /**
+ * Creates a SampleEncryptionBox for non-h264 tracks.
+ */
+ public SampleEncryptionBox() {
+ super("senc");
+
+ }
+}
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/TrackEncryptionBox.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/TrackEncryptionBox.java.svn-base
new file mode 100644
index 0000000..dd93a12
--- /dev/null
+++ b/isoparser/src/main/java/com/googlecode/mp4parser/boxes/basemediaformat/.svn/text-base/TrackEncryptionBox.java.svn-base
@@ -0,0 +1,12 @@
+package com.googlecode.mp4parser.boxes.basemediaformat;
+
+import com.googlecode.mp4parser.boxes.AbstractTrackEncryptionBox;
+
+/**
+ *
+ */
+public class TrackEncryptionBox extends AbstractTrackEncryptionBox {
+ public TrackEncryptionBox() {
+ super("tenc");
+ }
+}