content: package com.video.search.access;
  
  import android.content.Context;
  
  import com.bumptech.glide.Glide;
  import com.bumptech.glide.GlideBuilder;
  import com.bumptech.glide.load.DecodeFormat;
  import com.bumptech.glide.module.GlideModule;
  
  public class MyGlideModule implements GlideModule {
  
      @Override
      public void applyOptions(Context context, GlideBuilder builder) {
          builder.setDecodeFormat(DecodeFormat.PREFER_RGB_565);
  
  /*        MemorySizeCalculator calculator = new MemorySizeCalculator(context);
          int defaultMemoryCacheSize = calculator.getMemoryCacheSize();
          int defaultBitmapPoolSize = calculator.getBitmapPoolSize();
  
          int customMemoryCacheSize = (int) (0.1f * defaultMemoryCacheSize);
          int customBitmapPoolSize = (int) (0.1f * defaultBitmapPoolSize);
  
          builder.setMemoryCache(new LruResourceCache(customMemoryCacheSize));
          builder.setBitmapPool(new LruBitmapPool(customBitmapPoolSize));*/
      }
  
      @Override
      public void registerComponents(Context context, Glide glide) {
  
      }
  }
  