        {"no-loop", REPLAY_FLAG_NO_LOOP, "stop at the end of the route"},
        {"no-cache", REPLAY_FLAG_NO_FILE_CACHE, "turn off local cache"},
        {"qcam", REPLAY_FLAG_QCAMERA, "load qcamera"},
        {"yuv", REPLAY_FLAG_SEND_YUV, "send yuv frame"},
        {"no-cuda", REPLAY_FLAG_NO_CUDA, "disable CUDA"},
        {"no-vipc", REPLAY_FLAG_NO_VIPC, "do not output video"},
    };
  
    QCommandLineParser parser;
    parser.setApplicationDescription("Mock openpilot components by publishing logged messages.");
 
</s> remove   rWarning("Please run replay with the --no-cuda flag!");
 </s> add   rWarning("Please run replay with the --no-hw-decoder flag!"); </s> remove   if (hw_pix_fmt == AV_PIX_FMT_CUDA) {
 </s> add   if (hw_pix_fmt == HW_PIX_FMT) { </s> remove     success = frames[id]->load(file, flags & REPLAY_FLAG_NO_CUDA, &abort_, local_cache, 20 * 1024 * 1024, 3);
 </s> add     success = frames[id]->load(file, flags & REPLAY_FLAG_NO_HW_DECODER, &abort_, local_cache, 20 * 1024 * 1024, 3); </s> remove   inline static std::atomic<bool> has_cuda_device = true;
 </s> add   inline static std::atomic<bool> has_hw_decoder = true; </s> remove   REPLAY_FLAG_NO_CUDA = 0x0100,
 </s> add   REPLAY_FLAG_NO_HW_DECODER = 0x0100,
      {"no-hw-decoder", REPLAY_FLAG_NO_HW_DECODER, "disable HW video decoding"},
        {"no-loop", REPLAY_FLAG_NO_LOOP, "stop at the end of the route"},
        {"no-cache", REPLAY_FLAG_NO_FILE_CACHE, "turn off local cache"},
        {"qcam", REPLAY_FLAG_QCAMERA, "load qcamera"},
        {"yuv", REPLAY_FLAG_SEND_YUV, "send yuv frame"},
      {"no-hw-decoder", REPLAY_FLAG_NO_HW_DECODER, "disable HW video decoding"},
        {"no-vipc", REPLAY_FLAG_NO_VIPC, "do not output video"},
    };
  
    QCommandLineParser parser;
    parser.setApplicationDescription("Mock openpilot components by publishing logged messages.");
keep keep keep keep replace keep keep keep keep keep
 replay: use VideoToolbox HW decoder on Mac (#23832)

* replay: support VideoToolbox HW decoding

* rename flag

* remove debug assert 
selfdrive/ui/replay/main.cc