opusfile  0.7
Stand-alone decoder library for .opus files.
Data Fields
OpusPictureTag Struct Reference

The contents of a METADATA_BLOCK_PICTURE tag. More...

#include <opusfile.h>

Data Fields

opus_int32 type
 The picture type according to the ID3v2 APIC frame: More...
 
char * mime_type
 The MIME type of the picture, in printable ASCII characters 0x20-0x7E. More...
 
char * description
 The description of the picture, in UTF-8. More...
 
opus_uint32 width
 The width of the picture in pixels. More...
 
opus_uint32 height
 The height of the picture in pixels. More...
 
opus_uint32 depth
 The color depth of the picture in bits-per-pixel (not bits-per-channel). More...
 
opus_uint32 colors
 For indexed-color pictures (e.g., GIF), the number of colors used, or 0 for non-indexed pictures. More...
 
opus_uint32 data_length
 The length of the picture data in bytes. More...
 
unsigned char * data
 The binary picture data. More...
 
int format
 The format of the picture data, if known. More...
 

Detailed Description

The contents of a METADATA_BLOCK_PICTURE tag.

Field Documentation

opus_int32 OpusPictureTag::type

The picture type according to the ID3v2 APIC frame:

  1. Other
  2. 32x32 pixels 'file icon' (PNG only)
  3. Other file icon
  4. Cover (front)
  5. Cover (back)
  6. Leaflet page
  7. Media (e.g. label side of CD)
  8. Lead artist/lead performer/soloist
  9. Artist/performer
  10. Conductor
  11. Band/Orchestra
  12. Composer
  13. Lyricist/text writer
  14. Recording Location
  15. During recording
  16. During performance
  17. Movie/video screen capture
  18. A bright colored fish
  19. Illustration
  20. Band/artist logotype
  21. Publisher/Studio logotype

Others are reserved and should not be used. There may only be one each of picture type 1 and 2 in a file.

char* OpusPictureTag::mime_type

The MIME type of the picture, in printable ASCII characters 0x20-0x7E.

The MIME type may also be "-->" to signify that the data part is a URL pointing to the picture instead of the picture data itself. In this case, a terminating NUL is appended to the URL string in data, but data_length is set to the length of the string excluding that terminating NUL.

char* OpusPictureTag::description

The description of the picture, in UTF-8.

opus_uint32 OpusPictureTag::width

The width of the picture in pixels.

opus_uint32 OpusPictureTag::height

The height of the picture in pixels.

opus_uint32 OpusPictureTag::depth

The color depth of the picture in bits-per-pixel (not bits-per-channel).

opus_uint32 OpusPictureTag::colors

For indexed-color pictures (e.g., GIF), the number of colors used, or 0 for non-indexed pictures.

opus_uint32 OpusPictureTag::data_length

The length of the picture data in bytes.

unsigned char* OpusPictureTag::data

The binary picture data.

int OpusPictureTag::format

The format of the picture data, if known.

One of


The documentation for this struct was generated from the following file: