Make Atom.getAtomTypeString public.
I've found myself doing this a couple of times during local debugging. It's harmless to have it public, and seems pretty useful for debugging inside of the mp4 package.
This commit is contained in:
parent
b787852e71
commit
6cccfc1caa
@ -180,7 +180,13 @@ import java.util.List;
|
|||||||
return 0x00FFFFFF & fullAtomInt;
|
return 0x00FFFFFF & fullAtomInt;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getAtomTypeString(int type) {
|
/**
|
||||||
|
* Converts a numeric atom type to the corresponding four character string.
|
||||||
|
*
|
||||||
|
* @param type The numeric atom type.
|
||||||
|
* @return The corresponding four character string.
|
||||||
|
*/
|
||||||
|
public static String getAtomTypeString(int type) {
|
||||||
return "" + (char) (type >> 24)
|
return "" + (char) (type >> 24)
|
||||||
+ (char) ((type >> 16) & 0xFF)
|
+ (char) ((type >> 16) & 0xFF)
|
||||||
+ (char) ((type >> 8) & 0xFF)
|
+ (char) ((type >> 8) & 0xFF)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user