mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
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
1 changed files with 7 additions and 1 deletions
|
|
@ -180,7 +180,13 @@ import java.util.List;
|
|||
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)
|
||||
+ (char) ((type >> 16) & 0xFF)
|
||||
+ (char) ((type >> 8) & 0xFF)
|
||||
|
|
|
|||
Loading…
Reference in a new issue