Optimizing Compression Efficiency with Adaptive Quantization Bit Depths