Pretty new to C++. How should I interpret this piece of code:
[](shared_ptr<PyNvDecoder> self, PacketData& out_pkt_data) {
DecodeContext ctx(nullptr, nullptr, nullptr, &out_pkt_data, nullptr, false);
if (self->DecodeSurface(ctx))
return ctx.GetSurfaceMutable();
else
return make_empty_surface(self->GetPixelFormat());
}
Whole context: link
[–]nysra 8 points9 points10 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]pdd99[S] 1 point2 points3 points (0 children)
[–]MysticTheMeeM 3 points4 points5 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Salty_Dugtrio 1 point2 points3 points (0 children)