Home | History | Annotate | Download | only in transcode
      1 package com.bumptech.glide.load.resource.transcode;
      2 
      3 import com.bumptech.glide.load.engine.Resource;
      4 
      5 /**
      6  * Transcodes a resource of one type to a resource of another type.
      7  *
      8  * @param <Z> The type of the resource that will be transcoded from.
      9  * @param <R> The type of the resource that will be transcoded to.
     10  */
     11 public interface ResourceTranscoder<Z, R> {
     12     /**
     13      * Transcodes the given resource to the new resource type and returns the wew resource.
     14      *
     15      * @param toTranscode The resource to transcode.
     16      */
     17     public Resource<R> transcode(Resource<Z> toTranscode);
     18 
     19     public String getId();
     20 }
     21