public static String makeIfdEntry(
      int tag, int type, int count, int value, int valueNumBytes, boolean littleEndian) {
    return encodeInt2HexString(tag, 2, littleEndian)
        + encodeInt2HexString(type, 2, littleEndian)
        + encodeInt2HexString(count, 4, littleEndian)
        + encodeInt2HexString(value, valueNumBytes, littleEndian)
        + encodeInt2HexString(0, 4 - valueNumBytes, littleEndian);
  }
Provide test use functions for JfifUtilTest.
imagepipeline-base/src/test/java/com/facebook/imageutils/JfifTestUtils.java