Skip to content

Commit

Permalink
Add MediaType for "image/heif" and "image/jp2"
Browse files Browse the repository at this point in the history
RELNOTES=Add MediaType for "image/heif" and "image/jp2"

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=260960132
  • Loading branch information
kristineguo authored and cgdecker committed Aug 5, 2019
1 parent ff9057f commit 508696a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions android/guava/src/com/google/common/net/MediaType.java
Expand Up @@ -242,6 +242,20 @@ private static MediaType addKnownType(MediaType mediaType) {
*/
public static final MediaType WEBP = createConstant(IMAGE_TYPE, "webp");

/**
* <a href="https://www.iana.org/assignments/media-types/image/heif">HEIF image format</a>.
*
* @since NEXT
*/
public static final MediaType HEIF = createConstant(IMAGE_TYPE, "heif");

/**
* <a href="https://tools.ietf.org/html/rfc3745">JP2K image format</a>.
*
* @since NEXT
*/
public static final MediaType JP2K = createConstant(IMAGE_TYPE, "jp2");

/* audio types */
public static final MediaType MP4_AUDIO = createConstant(AUDIO_TYPE, "mp4");
public static final MediaType MPEG_AUDIO = createConstant(AUDIO_TYPE, "mpeg");
Expand Down
14 changes: 14 additions & 0 deletions guava/src/com/google/common/net/MediaType.java
Expand Up @@ -242,6 +242,20 @@ private static MediaType addKnownType(MediaType mediaType) {
*/

This comment has been minimized.

Copy link
@fburas85
public static final MediaType WEBP = createConstant(IMAGE_TYPE, "webp");

/**
* <a href="https://www.iana.org/assignments/media-types/image/heif">HEIF image format</a>.
*
* @since NEXT
*/
public static final MediaType HEIF = createConstant(IMAGE_TYPE, "heif");

/**
* <a href="https://tools.ietf.org/html/rfc3745">JP2K image format</a>.
*
* @since NEXT
*/
public static final MediaType JP2K = createConstant(IMAGE_TYPE, "jp2");

/* audio types */
public static final MediaType MP4_AUDIO = createConstant(AUDIO_TYPE, "mp4");
public static final MediaType MPEG_AUDIO = createConstant(AUDIO_TYPE, "mpeg");
Expand Down

0 comments on commit 508696a

Please sign in to comment.