summaryrefslogtreecommitdiff
path: root/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn
diff options
context:
space:
mode:
Diffstat (limited to 'isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn')
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/all-wcprops17
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/entries96
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/BitstreamWriter.java.svn-base108
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/CAVLCWriter.java.svn-base100
4 files changed, 0 insertions, 321 deletions
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/all-wcprops b/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/all-wcprops
deleted file mode 100644
index eb9d014..0000000
--- a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/all-wcprops
+++ /dev/null
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 83
-/svn/!svn/ver/236/trunk/isoparser/src/main/java/com/googlecode/mp4parser/h264/write
-END
-CAVLCWriter.java
-K 25
-svn:wc:ra_dav:version-url
-V 100
-/svn/!svn/ver/236/trunk/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/CAVLCWriter.java
-END
-BitstreamWriter.java
-K 25
-svn:wc:ra_dav:version-url
-V 104
-/svn/!svn/ver/236/trunk/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/BitstreamWriter.java
-END
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/entries b/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/entries
deleted file mode 100644
index 17c897c..0000000
--- a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/entries
+++ /dev/null
@@ -1,96 +0,0 @@
-10
-
-dir
-778
-http://mp4parser.googlecode.com/svn/trunk/isoparser/src/main/java/com/googlecode/mp4parser/h264/write
-http://mp4parser.googlecode.com/svn
-
-
-
-2011-09-20T18:03:23.375910Z
-236
-Sebastian.Annies@gmail.com
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-7decde4b-c250-0410-a0da-51896bc88be6
-
-CAVLCWriter.java
-file
-
-
-
-
-2012-09-14T17:27:51.397232Z
-466f7fb1a81ac3195414706a32abdee2
-2011-09-20T18:03:23.375910Z
-236
-Sebastian.Annies@gmail.com
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-3214
-
-BitstreamWriter.java
-file
-
-
-
-
-2012-09-14T17:27:51.397232Z
-816b2b532d6ccee0eda214f86cde8ebc
-2011-09-20T18:03:23.375910Z
-236
-Sebastian.Annies@gmail.com
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-3192
-
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/BitstreamWriter.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/BitstreamWriter.java.svn-base
deleted file mode 100644
index b382400..0000000
--- a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/BitstreamWriter.java.svn-base
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
-Copyright (c) 2011 Stanislav Vitvitskiy
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this
-software and associated documentation files (the "Software"), to deal in the Software
-without restriction, including without limitation the rights to use, copy, modify,
-merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or
-substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
-OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-package com.googlecode.mp4parser.h264.write;
-
-import com.googlecode.mp4parser.h264.Debug;
-
-import java.io.IOException;
-import java.io.OutputStream;
-
-/**
- * A dummy implementation of H264 RBSP output stream
- *
- * @author Stanislav Vitvitskiy
- */
-public class BitstreamWriter {
-
- private final OutputStream os;
- private int[] curByte = new int[8];
- private int curBit;
-
- public BitstreamWriter(OutputStream out) {
- this.os = out;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see ua.org.jplayer.javcodec.h264.H264BitOutputStream#flush()
- */
- public void flush() throws IOException {
- for (int i = curBit; i < 8; i++) {
- curByte[i] = 0;
- }
- curBit = 0;
- writeCurByte();
- }
-
- private void writeCurByte() throws IOException {
- int toWrite = (curByte[0] << 7) | (curByte[1] << 6) | (curByte[2] << 5)
- | (curByte[3] << 4) | (curByte[4] << 3) | (curByte[5] << 2)
- | (curByte[6] << 1) | curByte[7];
- os.write(toWrite);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see ua.org.jplayer.javcodec.h264.H264BitOutputStream#write1Bit(int)
- */
- public void write1Bit(int value) throws IOException {
- Debug.print(value);
- if (curBit == 8) {
- curBit = 0;
- writeCurByte();
- }
- curByte[curBit++] = value;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see ua.org.jplayer.javcodec.h264.H264BitOutputStream#writeNBit(long,
- * int)
- */
- public void writeNBit(long value, int n) throws IOException {
- for (int i = 0; i < n; i++) {
- write1Bit((int) (value >> (n - i - 1)) & 0x1);
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * ua.org.jplayer.javcodec.h264.H264BitOutputStream#writeRemainingZero()
- */
- public void writeRemainingZero() throws IOException {
- writeNBit(0, 8 - curBit);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see ua.org.jplayer.javcodec.h264.H264BitOutputStream#writeByte(int)
- */
- public void writeByte(int b) throws IOException {
- os.write(b);
-
- }
-} \ No newline at end of file
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/CAVLCWriter.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/CAVLCWriter.java.svn-base
deleted file mode 100644
index c4e0026..0000000
--- a/isoparser/src/main/java/com/googlecode/mp4parser/h264/write/.svn/text-base/CAVLCWriter.java.svn-base
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
-Copyright (c) 2011 Stanislav Vitvitskiy
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this
-software and associated documentation files (the "Software"), to deal in the Software
-without restriction, including without limitation the rights to use, copy, modify,
-merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or
-substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
-INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
-PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
-FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
-OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-package com.googlecode.mp4parser.h264.write;
-
-import com.googlecode.mp4parser.h264.Debug;
-
-import java.io.IOException;
-import java.io.OutputStream;
-
-
-/**
- * A class responsible for outputting exp-Golumb values into binary stream
- *
- * @author Stanislav Vitvitskiy
- */
-public class CAVLCWriter extends BitstreamWriter {
-
- public CAVLCWriter(OutputStream out) {
- super(out);
- }
-
- public void writeU(int value, int n, String string) throws IOException {
- Debug.print(string + "\t");
- writeNBit(value, n);
- Debug.println("\t" + value);
- }
-
- public void writeUE(int value) throws IOException {
- int bits = 0;
- int cumul = 0;
- for (int i = 0; i < 15; i++) {
- if (value < cumul + (1 << i)) {
- bits = i;
- break;
- }
- cumul += (1 << i);
- }
- writeNBit(0, bits);
- write1Bit(1);
- writeNBit(value - cumul, bits);
- }
-
- public void writeUE(int value, String string) throws IOException {
- Debug.print(string + "\t");
- writeUE(value);
- Debug.println("\t" + value);
- }
-
- public void writeSE(int value, String string) throws IOException {
- Debug.print(string + "\t");
- writeUE((value << 1) * (value < 0 ? -1 : 1) + (value > 0 ? 1 : 0));
- Debug.println("\t" + value);
- }
-
- public void writeBool(boolean value, String string) throws IOException {
- Debug.print(string + "\t");
- write1Bit(value ? 1 : 0);
- Debug.println("\t" + value);
- }
-
- public void writeU(int i, int n) throws IOException {
- writeNBit(i, n);
- }
-
- public void writeNBit(long value, int n, String string) throws IOException {
- Debug.print(string + "\t");
- for (int i = 0; i < n; i++) {
- write1Bit((int) (value >> (n - i - 1)) & 0x1);
- }
- Debug.println("\t" + value);
- }
-
- public void writeTrailingBits() throws IOException {
- write1Bit(1);
- writeRemainingZero();
- flush();
- }
-
- public void writeSliceTrailingBits() {
- throw new IllegalStateException("todo");
- }
-} \ No newline at end of file