---
name: "LIBMTP_filesampledata_struct"
section: "3"
platform: "linux"
package: "libmtp"
version: "1.1.23-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/LIBMTP_filesampledata_struct"
---

# LIBMTP\_filesampledata\_struct(3)

## NAME

LIBMTP\_filesampledata\_struct

## SYNOPSIS

\#include \<libmtp.h\>

### Data Fields

uint32\_t **width**\
 uint32\_t **height**\
 uint32\_t **duration**\
 **LIBMTP\_filetype\_t** **filetype**\
 uint64\_t **size**\
 char \* **data**\

## Detailed Description

LIBMTP Object RepresentativeSampleData Structure

## Field Documentation

### char\* LIBMTP\_filesampledata\_struct::data

Sample data

Referenced by **LIBMTP\_destroy\_filesampledata\_t()**, **LIBMTP\_Get\_Representative\_Sample()**, and **LIBMTP\_Send\_Representative\_Sample()**.

### uint32\_t LIBMTP\_filesampledata\_struct::duration

Duration in milliseconds if it is audio

Referenced by **LIBMTP\_Get\_Representative\_Sample()**, **LIBMTP\_Get\_Representative\_Sample\_Format()**, and **LIBMTP\_Send\_Representative\_Sample()**.

### LIBMTP\_filetype\_t LIBMTP\_filesampledata\_struct::filetype

Filetype used for the sample

Referenced by **LIBMTP\_Get\_Representative\_Sample()**, **LIBMTP\_Get\_Representative\_Sample\_Format()**, and **LIBMTP\_Send\_Representative\_Sample()**.

### uint32\_t LIBMTP\_filesampledata\_struct::height

Height of sample if it is an image

Referenced by **LIBMTP\_Get\_Representative\_Sample()**, **LIBMTP\_Get\_Representative\_Sample\_Format()**, and **LIBMTP\_Send\_Representative\_Sample()**.

### uint64\_t LIBMTP\_filesampledata\_struct::size

Size of sample data in bytes

Referenced by **LIBMTP\_Get\_Representative\_Sample()**, **LIBMTP\_Get\_Representative\_Sample\_Format()**, and **LIBMTP\_Send\_Representative\_Sample()**.

### uint32\_t LIBMTP\_filesampledata\_struct::width

Width of sample if it is an image

Referenced by **LIBMTP\_Get\_Representative\_Sample()**, **LIBMTP\_Get\_Representative\_Sample\_Format()**, and **LIBMTP\_Send\_Representative\_Sample()**.

## Author

Generated automatically by Doxygen for libmtp from the source code.
