You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: benchmark.rs
    path of file: ./repos/rustdesk/libs/scrap/examples
    
    the code of the file until where you have to start completion: use docopt::Docopt;
use hbb_common::{
    env_logger::{init_from_env, Env, DEFAULT_FILTER_ENV},
    log,
};
use scrap::{
    aom::{AomDecoder, AomEncoder, AomEncoderConfig},
    codec::{EncoderApi, EncoderCfg, Quality as Q},
    Capturer, Display, TraitCapturer, VpxDecoder, VpxDecoderConfig, VpxEncoder, VpxEncoderConfig,
    
    
    pub fn test(c: &mut Capturer, width: usize, height: usize, quality: Q, yuv_count: usize) {
        let best = HwEncoder::best();
        let mut h264s = Vec::new();
        let mut h265s = Vec::new();
        if let Some(info) = best.h264 {
            test_encoder(width, height, quality, info, c, yuv_count, &mut h264s);
        }
        if let Some(info) = best.h265 {
            test_encoder(width, height, quality, info, c, yuv_count, &mut h265s);
        }
        test_decoder(CodecFormat::H264, &h264s);
        test_decoder(CodecFormat::H265, &h265s);
    }