MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / coder_from_view

Function coder_from_view

src/config.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 }
229
230 int coder_from_view(const ::std::string_view &coder) {
231 if (coder == "auto"sv) {
232 return _auto;
233 }
234 if (coder == "cabac"sv || coder == "ac"sv) {
235 return cabac;
236 }
237 if (coder == "cavlc"sv || coder == "vlc"sv) {
238 return cavlc;
239 }
240
241 return _auto;
242 }
243 } // namespace amd
244
245 namespace qsv {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected