---
name: "hdmi_infoframe_pack"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/hdmi_infoframe_pack"
---

# hdmi\_infoframe\_pack(9)

write a HDMI infoframe to binary buffer

## NAME

hdmi\_infoframe\_pack - write a HDMI infoframe to binary buffer

## SYNOPSIS

**ssize\_t hdmi\_infoframe\_pack(union hdmi\_infoframe \*** *frame***, void \*** *buffer***, size\_t** *size***);**

## ARGUMENTS

*frame*

HDMI infoframe

*buffer*

destination buffer

*size*

size of buffer

## DESCRIPTION

Packs the information contained in the *frame* structure into a binary representation that can be written into the corresponding controller registers. Also computes the checksum as required by section 5.3.5 of the HDMI 1.4 specification.

Returns the number of bytes packed into the binary buffer or a negative error code on failure.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
