MCPcopy Create free account
hub / github.com/WiVRn/WiVRn / codec_id

Function codec_id

client/decoder/ffmpeg/ffmpeg_decoder.cpp:48–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static AVCodecID codec_id(wivrn::video_codec codec)
49{
50 using c = wivrn::video_codec;
51 switch (codec)
52 {
53 case c::h264:
54 return AV_CODEC_ID_H264;
55 case c::h265:
56 return AV_CODEC_ID_HEVC;
57 case c::av1:
58 return AV_CODEC_ID_AV1;
59 case c::raw:
60 break;
61 }
62 assert(false);
63 __builtin_unreachable();
64}
65
66struct decoder::ffmpeg_blit_handle : public wivrn::decoder::blit_handle
67{

Callers 1

decoderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected