www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,24 @@
|
|||
package org.jcodec.common;
|
||||
|
||||
import org.jcodec.platform.Platform;
|
||||
|
||||
public class Fourcc {
|
||||
public static int makeInt(byte b3, byte b2, byte b1, byte b0) {
|
||||
return b3 << 24 | (b2 & 0xFF) << 16 | (b1 & 0xFF) << 8 | b0 & 0xFF;
|
||||
}
|
||||
|
||||
public static int intFourcc(String string) {
|
||||
byte[] b = Platform.getBytes(string);
|
||||
return makeInt(b[0], b[1], b[2], b[3]);
|
||||
}
|
||||
|
||||
public static final int ftyp = intFourcc("ftyp");
|
||||
|
||||
public static final int free = intFourcc("free");
|
||||
|
||||
public static final int moov = intFourcc("moov");
|
||||
|
||||
public static final int mdat = intFourcc("mdat");
|
||||
|
||||
public static final int wide = intFourcc("wide");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue