summaryrefslogtreecommitdiff
path: root/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base
diff options
context:
space:
mode:
Diffstat (limited to 'isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base')
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/BTree.java.svn-base69
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/CharCache.java.svn-base57
-rw-r--r--isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/Debug.java.svn-base88
3 files changed, 0 insertions, 214 deletions
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/BTree.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/BTree.java.svn-base
deleted file mode 100644
index 57391ba..0000000
--- a/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/BTree.java.svn-base
+++ /dev/null
@@ -1,69 +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;
-
-
-/**
- * Simple BTree implementation needed for haffman tables
- *
- * @author Stanislav Vitvitskiy
- */
-public class BTree {
- private BTree zero;
- private BTree one;
- private Object value;
-
- /**
- * Adds a leaf value to a binary path specified by path
- *
- * @param str
- * @param value
- */
- public void addString(String path, Object value) {
- if (path.length() == 0) {
- this.value = value;
- return;
- }
- char charAt = path.charAt(0);
- BTree branch;
- if (charAt == '0') {
- if (zero == null)
- zero = new BTree();
- branch = zero;
- } else {
- if (one == null)
- one = new BTree();
- branch = one;
- }
- branch.addString(path.substring(1), value);
- }
-
- public BTree down(int b) {
- if (b == 0)
- return zero;
- else
- return one;
- }
-
- public Object getValue() {
- return value;
- }
-} \ No newline at end of file
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/CharCache.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/CharCache.java.svn-base
deleted file mode 100644
index 2fe8ead..0000000
--- a/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/CharCache.java.svn-base
+++ /dev/null
@@ -1,57 +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;
-
-public class CharCache {
- private char[] cache;
- private int pos;
-
- public CharCache(int capacity) {
- cache = new char[capacity];
- }
-
- public void append(String str) {
- char[] chars = str.toCharArray();
- int available = cache.length - pos;
- int toWrite = chars.length < available ? chars.length : available;
- System.arraycopy(chars, 0, cache, pos, toWrite);
- pos += toWrite;
- }
-
- public String toString() {
- return new String(cache, 0, pos);
- }
-
- public void clear() {
- pos = 0;
- }
-
- public void append(char c) {
- if (pos < cache.length - 1) {
- cache[pos] = c;
- pos++;
- }
- }
-
- public int length() {
- return pos;
- }
-}
diff --git a/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/Debug.java.svn-base b/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/Debug.java.svn-base
deleted file mode 100644
index d0bea73..0000000
--- a/isoparser/src/main/java/com/googlecode/mp4parser/h264/.svn/text-base/Debug.java.svn-base
+++ /dev/null
@@ -1,88 +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;
-
-import java.nio.ShortBuffer;
-
-public class Debug {
- public final static void print8x8(int[] output) {
- int i = 0;
- for (int x = 0; x < 8; x++) {
- for (int y = 0; y < 8; y++) {
- System.out.printf("%3d, ", output[i]);
- i++;
- }
- System.out.println();
- }
- }
-
- public final static void print8x8(short[] output) {
- int i = 0;
- for (int x = 0; x < 8; x++) {
- for (int y = 0; y < 8; y++) {
- System.out.printf("%3d, ", output[i]);
- i++;
- }
- System.out.println();
- }
- }
-
- public final static void print8x8(ShortBuffer output) {
- for (int x = 0; x < 8; x++) {
- for (int y = 0; y < 8; y++) {
- System.out.printf("%3d, ", output.get());
- }
- System.out.println();
- }
- }
-
- public static void print(short[] table) {
- int i = 0;
- for (int x = 0; x < 8; x++) {
- for (int y = 0; y < 8; y++) {
- System.out.printf("%3d, ", table[i]);
- i++;
- }
- System.out.println();
- }
- }
-
- public static void trace(String format, Object... args) {
- // System.out.printf("> " + format + "\n", args);
- }
-
- public final static boolean debug = false;
-
- public static void print(int i) {
- if (debug)
- System.out.print(i);
- }
-
- public static void print(String string) {
- if (debug)
- System.out.print(string);
- }
-
- public static void println(String string) {
- if (debug)
- System.out.println(string);
- }
-}