Esempio n. 1
0
 private Request buildRequest(Target<TranscodeType> target) {
   return buildRequestRecursive(
       target,
       null,
       transitionOptions,
       requestOptions.getPriority(),
       requestOptions.getOverrideWidth(),
       requestOptions.getOverrideHeight());
 }
Esempio n. 2
0
 private Priority getThumbnailPriority(Priority current) {
   switch (current) {
     case LOW:
       return Priority.NORMAL;
     case NORMAL:
       return Priority.HIGH;
     case HIGH:
     case IMMEDIATE:
       return Priority.IMMEDIATE;
     default:
       throw new IllegalArgumentException("unknown priority: " + requestOptions.getPriority());
   }
 }