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

Method wrapper_fb

src/platform/linux/kmsgrab.cpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 class wrapper_fb {
62 public:
63 wrapper_fb(drmModeFB *fb):
64 fb {fb},
65 fb_id {fb->fb_id},
66 width {fb->width},
67 height {fb->height} {
68 pixel_format = DRM_FORMAT_XRGB8888;
69 modifier = DRM_FORMAT_MOD_INVALID;
70 std::fill_n(handles, 4, 0);
71 std::fill_n(pitches, 4, 0);
72 std::fill_n(offsets, 4, 0);
73 handles[0] = fb->handle;
74 pitches[0] = fb->pitch;
75 }
76
77 wrapper_fb(drmModeFB2 *fb2):
78 fb2 {fb2},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected