metadata.h File Reference


Detailed Description

Interface for various MetaData structurs.

Definition in file metadata.h.

#include <hn/osdep.h>
#include <hn/utils.h>
#include <hn/event.h>
#include <hn/hnfwd.h>
#include <iostream>
#include <set>
#include <string>

Include dependency graph for metadata.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  CGComm

Enumerations

enum  VMDOpCodes {
  OP_VMD = 0x40, OP_VMD_RUNTIME = 0x41, OP_VMD_FRAMES = 0x42, OP_VMD_FRAMERATE = 0x43,
  OP_VMD_FRAMESIZE = 0x44, OP_VMD_SUBTITLES = 0x45, OP_VMD_VIDSTREAM = 0x46, OP_VMD_AUDSTREAM = 0x47
}
 VideoMetaData opcodes. More...
enum  AMD_OpCodes {
  OP_AMD = 0x20, OP_AMD_TITLE = 0x21, OP_AMD_ARTIST = 0x22, OP_AMD_ALBUM = 0x23,
  OP_AMD_GENRE = 0x24, OP_AMD_COMMENT = 0x25, OP_AMD_COMPOSER = 0x26, OP_AMD_ORIGARTIST = 0x27,
  OP_AMD_COPYRIGHT = 0x28, OP_AMD_URL = 0x29, OP_AMD_ENCODED = 0x2a, OP_AMD_YEAR = 0x2b
}
 AudioMetaData opcodes. More...
enum  ARMDOpCodes {
  OP_ARMD = 0x60, OP_ARMD_FORMAT = 0x61, OP_ARMD_FILES = 0x62, OP_ARMD_UNCOMPR = 0x63,
  OP_ARMD_RATIO = 0x64, OP_ARMD_COMMENT = 0x65, OP_ARMD_PASSWORD = 0x66
}
 ArchiveMetaData tags. More...
enum  IMDOpCodes {
  OP_IMD = 0x80, OP_IMD_FORMAT = 0x81, OP_IMD_WIDTH = 0x82, OP_IMD_HEIGHT = 0x83,
  OP_IMD_DATE = 0x84, OP_IMD_COMMENT = 0x85
}
 ImageMetaData opcodes. More...
enum  MDEvent {
  MD_ADDED_FILENAME = 1, MD_ADDED_HASHSET, MD_ADDED_VIDEO, MD_ADDED_AUDIO,
  MD_ADDED_ARCHIVE, MD_ADDED_IMAGE
}
 Event emitted by MetaData object. More...
enum  MetaDataOpCodes {
  OP_METADATA = 0x90, OP_MD_FILENAME = 0x91, OP_MD_FILESIZE = 0x92, OP_MD_MODDATE = 0x93,
  OP_MD_FILETYPE = 0x94, OP_MD_TYPEGUESSED = 0x95
}
 MetaData opcodes. More...

Enumeration Type Documentation

enum AMD_OpCodes
 

AudioMetaData opcodes.

Enumeration values:
OP_AMD  AudioMetaData.
OP_AMD_TITLE  <string> Title
OP_AMD_ARTIST  <string> Artist
OP_AMD_ALBUM  <string> Album
OP_AMD_GENRE  <string> Genre
OP_AMD_COMMENT  <string> Comment
OP_AMD_COMPOSER  <string> Composer
OP_AMD_ORIGARTIST  <string> Original artist
OP_AMD_COPYRIGHT  <string> Copyright
OP_AMD_URL  <string> Web URL
OP_AMD_ENCODED  <string> Encoded
OP_AMD_YEAR  <uint16> Year

Definition at line 171 of file metadata.h.

enum ARMDOpCodes
 

ArchiveMetaData tags.

Enumeration values:
OP_ARMD  ArchiveMetaData.
OP_ARMD_FORMAT  <uint32> Format
OP_ARMD_FILES  <uint32> File count
OP_ARMD_UNCOMPR  <uint64> Uncompressed size
OP_ARMD_RATIO  <float> Compression ratio
OP_ARMD_COMMENT  <string> Comment
OP_ARMD_PASSWORD  <bool> If password is set

Definition at line 276 of file metadata.h.

enum IMDOpCodes
 

ImageMetaData opcodes.

Enumeration values:
OP_IMD  ImageMetaData.
OP_IMD_FORMAT  <uint32> Format
OP_IMD_WIDTH  <uint32> Height
OP_IMD_HEIGHT  <uint32> Width
OP_IMD_DATE  <uint32> Creation date
OP_IMD_COMMENT  <string> Comment

Definition at line 343 of file metadata.h.

enum MDEvent
 

Event emitted by MetaData object.

Enumeration values:
MD_ADDED_FILENAME  A file name has been added.
MD_ADDED_HASHSET  A Hashset has been added.
MD_ADDED_VIDEO  Video data has been added.
MD_ADDED_AUDIO  Audio data has been added.
MD_ADDED_ARCHIVE  Archive data has been added.
MD_ADDED_IMAGE  Image data has been added.

Definition at line 406 of file metadata.h.

enum MetaDataOpCodes
 

MetaData opcodes.

Enumeration values:
OP_METADATA  MetaData.
OP_MD_FILENAME  <string> File Name
OP_MD_FILESIZE  <uint64> size
OP_MD_MODDATE  <uint32> modification date
OP_MD_FILETYPE  <uint32> file type
OP_MD_TYPEGUESSED  <bool> if type has been guessed

Definition at line 417 of file metadata.h.

enum VMDOpCodes
 

VideoMetaData opcodes.

Enumeration values:
OP_VMD  VideoMetaData.
OP_VMD_RUNTIME  <uint32> Runtime
OP_VMD_FRAMES  <uint32> Frame count
OP_VMD_FRAMERATE  <float> Frame rate (fps)
OP_VMD_FRAMESIZE  <uint32><uint32> Frame size
OP_VMD_SUBTITLES  <uint16> Subtitle count
OP_VMD_VIDSTREAM  <streamdata> Video stream
OP_VMD_AUDSTREAM  <streamdata> Audio stream

Definition at line 77 of file metadata.h.