Skip to content

Instantly share code, notes, and snippets.

import subprocess
import re
import struct
import sys
from pathlib import Path
# Artlynk SEI MSP_DISPLAYPORT parser
#
# SEI Message Data structure
# Header:
#include <drm/drm_mode.h>
#include <cairo/cairo.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/ioctl.h>