Exemplo n.º 1
0
 private Request buildRequest(Target<TranscodeType> target) {
   return buildRequestRecursive(
       target,
       null,
       transitionOptions,
       requestOptions.getPriority(),
       requestOptions.getOverrideWidth(),
       requestOptions.getOverrideHeight());
 }
Exemplo 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());
   }
 }