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 widthuint32_t heightuint32_t durationLIBMTP_filetype_t filetypeuint64_t sizechar * 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
- ubuntu stonking: libmtp-doc 1.1.23-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms