---
name: "mtp_LIBMTP_filesampledata_struct"
section: "3"
platform: "linux"
package: "libmtp-doc"
version: "1.1.22-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtp_LIBMTP_filesampledata_struct"
---

# mtp\_LIBMTP\_filesampledata\_struct(3)

## NAME

libmtp -

## 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()**, **LIBMTP\_new\_filesampledata\_t()**, 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.
