diff --git a/src/main/java/org/forkalsrud/album/video/FlvFilter.java b/src/main/java/org/forkalsrud/album/video/FlvFilter.java index d9f488c..099d027 100644 --- a/src/main/java/org/forkalsrud/album/video/FlvFilter.java +++ b/src/main/java/org/forkalsrud/album/video/FlvFilter.java @@ -218,32 +218,20 @@ public class FlvFilter extends OutputStream { } - int decodeUint32(byte[] buf, int offset) { - int ch1 = buf[offset + 0] & 0xff; - int ch2 = buf[offset + 1] & 0xff; - int ch3 = buf[offset + 2] & 0xff; - int ch4 = buf[offset + 3] & 0xff; - return ((ch1 << 24) + (ch2 << 16) + (ch3 << 8) + (ch4 << 0)); - } - int decodeUint24(byte[] buf, int offset) { + private int decodeUint24(byte[] buf, int offset) { int ch1 = buf[offset + 0] & 0xff; int ch2 = buf[offset + 1] & 0xff; int ch3 = buf[offset + 2] & 0xff; return ((ch1 << 16) + (ch2 << 8) + (ch3 << 0)); } - int decodeUint16(byte[] buf, int offset) { - int ch1 = buf[offset + 0] & 0xff; - int ch2 = buf[offset + 1] & 0xff; - return ((ch1 << 8) + (ch2 << 0)); - } - int decodeUint8(byte[] buf, int offset) { + private int decodeUint8(byte[] buf, int offset) { return buf[offset] & 0xff; } - int decodeTimestamp(byte[] buf, int offset) { + private int decodeTimestamp(byte[] buf, int offset) { int ch1 = buf[offset + 0] & 0xff; int ch2 = buf[offset + 1] & 0xff; int ch3 = buf[offset + 2] & 0xff; @@ -252,19 +240,6 @@ public class FlvFilter extends OutputStream { } - void encodeUint32(byte[] buf, int offset, int value) { - - buf[offset + 0] = (byte)((value >> 24) & 0xff); - buf[offset + 1] = (byte)((value >> 16) & 0xff); - buf[offset + 2] = (byte)((value >> 8) & 0xff); - buf[offset + 3] = (byte)((value >> 0) & 0xff); - } - - void encodeUint16(byte[] buf, int offset, int value) { - - buf[offset + 0] = (byte)((value >> 8) & 0xff); - buf[offset + 1] = (byte)((value >> 0) & 0xff); - } @Override public void write(int b) throws IOException { diff --git a/src/main/webapp/assets/selectable.html b/src/main/webapp/assets/selectable.html deleted file mode 100644 index aea3d2f..0000000 --- a/src/main/webapp/assets/selectable.html +++ /dev/null @@ -1,807 +0,0 @@ - - -
-

jQuery UI Selectable

-
-

Overview

-
-

The jQuery UI Selectable plugin allows for elements to be selected by dragging a box (sometimes called a lasso) with the mouse over the elements. Also, elements can be selected by click or drag while holding the Ctrl/Meta key, allowing for multiple (non-contiguous) selections.

-
-
-

Dependencies

-
    -
  • UI Core
  • -
-
-
-

Example

-
- -

-A simple jQuery UI Selectable.
-

-
$("#selectable").selectable();
-
-

-

-
<!DOCTYPE html>
-<html>
-<head>
-  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
-  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
-  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
-  <style type="text/css">
-#selectable .ui-selecting {
-	background: silver;
-}
-#selectable .ui-selected {
-	background: gray;
-}
-</style>
-
-  <script>
-  $(document).ready(function() {
-    $("#selectable").selectable();
-  });
-  </script>
-</head>
-<body style="font-size:62.5%;">
-  
-<ul id="selectable">
-<li>Item 1</li>
-<li>Item 2</li>
-<li>Item 3</li>
-<li>Item 4</li>
-<li>Item 5</li>
-</ul>
-
-</body>
-</html>
-
-

-

-
-
-
-

Options

- -
-
-

Events

- -
-
-

Methods

- -
-
-

Theming

-

The jQuery UI Selectable plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain. -

-

If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.selectable.css stylesheet that can be modified. These classes are highlighed in bold below. -

- -

Sample markup with jQuery UI CSS Framework classes

- <ul class="ui-selectable">
-   <li class="ui-selectee"></li>
-   <li class="ui-selectee"></li>
-   <li class="ui-selectee"></li>
-</ul> -

- - Note: This is a sample of markup generated by the selectable plugin, not markup you should use to create a selectable. The only markup needed for that is
<ul>
-   <li></li>
-   <li></li>
-   <li></li>
-</ul>. -
-

- -
-
- -

- - diff --git a/src/main/webapp/dynamic.html b/src/main/webapp/dynamic.html index c0eafab..9bb143e 100644 --- a/src/main/webapp/dynamic.html +++ b/src/main/webapp/dynamic.html @@ -1,6 +1,4 @@ - - + @@ -114,8 +112,6 @@ $(function() { + "\n"); gridDiv.appendTo('body'); - var element = gridDiv.filter("a.ss"); - $("

" + entry.type + "

").appendTo("#dbg"); switch (entry.type) {