LIBMTP_fil...ata_struct(3)

✨ NAME ✨

libmtp β€” bestie it's giving mysterious, because the manpage literally just leaves the dash hanging there πŸ’… (fr fr, that's all the NAME section says, so we're not gonna invent a summary, no cap)


πŸ¦‹ 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 β€” yes queen, that's the whole vibe. It's a struct, it holds sample data, it said what it said. πŸ’…


πŸŽ€ Field Documentation πŸŽ€

char* LIBMTP_filesampledata_struct::data

Sample data β€” literally just the raw sample data, the moment, the main character. ✨

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 β€” so if your sample is audio, this is how long it runs, measured in milliseconds. 🎧

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 β€” tells you what kind of file this sample is. πŸ—‚οΈ

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 β€” image sample? This is its height. πŸ–ΌοΈ

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 β€” how chunky the sample data is, 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 β€” image sample? This is its width. πŸ–ΌοΈ

Referenced by LIBMTP_Get_Representative_Sample(), LIBMTP_Get_Representative_Sample_Format(), and LIBMTP_Send_Representative_Sample().

Note bestie: these fields are listed alphabetically in the docs β€” data, duration, filetype, height, size, width β€” but the Data Fields list up top keeps the struct's own order, width, height, duration, filetype, size, data. Both are exactly as written, we do not mess with the source. 🫢

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libmtp from the source code. πŸ€–βœ¨


okay that's the whole page, you ate that, mwah πŸ’– This little icon was brought to you by libmtp, Version 1.1.23 🌈 β€” and yeah, the footer didn't hand us a date, so consider this your timestamp: forever iconic, no cap. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from