ReactOS 0.4.15-dev-7842-g558ab78
mpeghead.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HDR_SYNC   0xffe00000
 
#define HDR_SYNC_VAL(h)   (((h)&HDR_SYNC) >> 21)
 
#define HDR_VERSION   0x00180000
 
#define HDR_VERSION_VAL(h)   (((h)&HDR_VERSION) >> 19)
 
#define HDR_LAYER   0x00060000
 
#define HDR_LAYER_VAL(h)   (((h)&HDR_LAYER) >> 17)
 
#define HDR_CRC   0x00010000
 
#define HDR_CRC_VAL(h)   (((h)&HDR_CRC) >> 16)
 
#define HDR_BITRATE   0x0000f000
 
#define HDR_BITRATE_VAL(h)   (((h)&HDR_BITRATE) >> 12)
 
#define HDR_SAMPLERATE   0x00000c00
 
#define HDR_SAMPLERATE_VAL(h)   (((h)&HDR_SAMPLERATE) >> 10)
 
#define HDR_PADDING   0x00000200
 
#define HDR_PADDING_VAL(h)   (((h)&HDR_PADDING) >> 9)
 
#define HDR_PRIVATE   0x00000100
 
#define HDR_PRIVATE_VAL(h)   (((h)&HDR_PRIVATE) >> 8)
 
#define HDR_CHANNEL   0x000000c0
 
#define HDR_CHANNEL_VAL(h)   (((h)&HDR_CHANNEL) >> 6)
 
#define HDR_CHANEX   0x00000030
 
#define HDR_CHANEX_VAL(h)   (((h)&HDR_CHANEX) >> 4)
 
#define HDR_COPYRIGHT   0x00000008
 
#define HDR_COPYRIGHT_VAL(h)   (((h)&HDR_COPYRIGHT) >> 3)
 
#define HDR_ORIGINAL   0x00000004
 
#define HDR_ORIGINAL_VAL(h)   (((h)&HDR_ORIGINAL) >> 2)
 
#define HDR_EMPHASIS   0x00000003
 
#define HDR_EMPHASIS_VAL(h)   (((h)&HDR_EMPHASIS) >> 0)
 
#define HDR_CMPMASK   (HDR_SYNC|HDR_VERSION|HDR_LAYER|HDR_SAMPLERATE)
 
#define HDR_SAMEMASK   (HDR_SYNC|HDR_VERSION|HDR_LAYER|HDR_BITRATE|HDR_SAMPLERATE|HDR_CHANNEL)
 
#define HDR_FREE_FORMAT(head)   (!(head & HDR_BITRATE))
 
#define HDR_SAMPMASK   (HDR_VERSION|HDR_SAMPLERATE)
 

Macro Definition Documentation

◆ HDR_BITRATE

#define HDR_BITRATE   0x0000f000

Definition at line 44 of file mpeghead.h.

◆ HDR_BITRATE_VAL

#define HDR_BITRATE_VAL (   h)    (((h)&HDR_BITRATE) >> 12)

Definition at line 45 of file mpeghead.h.

◆ HDR_CHANEX

#define HDR_CHANEX   0x00000030

Definition at line 59 of file mpeghead.h.

◆ HDR_CHANEX_VAL

#define HDR_CHANEX_VAL (   h)    (((h)&HDR_CHANEX) >> 4)

Definition at line 60 of file mpeghead.h.

◆ HDR_CHANNEL

#define HDR_CHANNEL   0x000000c0

Definition at line 56 of file mpeghead.h.

◆ HDR_CHANNEL_VAL

#define HDR_CHANNEL_VAL (   h)    (((h)&HDR_CHANNEL) >> 6)

Definition at line 57 of file mpeghead.h.

◆ HDR_CMPMASK

Definition at line 78 of file mpeghead.h.

◆ HDR_COPYRIGHT

#define HDR_COPYRIGHT   0x00000008

Definition at line 62 of file mpeghead.h.

◆ HDR_COPYRIGHT_VAL

#define HDR_COPYRIGHT_VAL (   h)    (((h)&HDR_COPYRIGHT) >> 3)

Definition at line 63 of file mpeghead.h.

◆ HDR_CRC

#define HDR_CRC   0x00010000

Definition at line 41 of file mpeghead.h.

◆ HDR_CRC_VAL

#define HDR_CRC_VAL (   h)    (((h)&HDR_CRC) >> 16)

Definition at line 42 of file mpeghead.h.

◆ HDR_EMPHASIS

#define HDR_EMPHASIS   0x00000003

Definition at line 68 of file mpeghead.h.

◆ HDR_EMPHASIS_VAL

#define HDR_EMPHASIS_VAL (   h)    (((h)&HDR_EMPHASIS) >> 0)

Definition at line 69 of file mpeghead.h.

◆ HDR_FREE_FORMAT

#define HDR_FREE_FORMAT (   head)    (!(head & HDR_BITRATE))

Definition at line 84 of file mpeghead.h.

◆ HDR_LAYER

#define HDR_LAYER   0x00060000

Definition at line 38 of file mpeghead.h.

◆ HDR_LAYER_VAL

#define HDR_LAYER_VAL (   h)    (((h)&HDR_LAYER) >> 17)

Definition at line 39 of file mpeghead.h.

◆ HDR_ORIGINAL

#define HDR_ORIGINAL   0x00000004

Definition at line 65 of file mpeghead.h.

◆ HDR_ORIGINAL_VAL

#define HDR_ORIGINAL_VAL (   h)    (((h)&HDR_ORIGINAL) >> 2)

Definition at line 66 of file mpeghead.h.

◆ HDR_PADDING

#define HDR_PADDING   0x00000200

Definition at line 50 of file mpeghead.h.

◆ HDR_PADDING_VAL

#define HDR_PADDING_VAL (   h)    (((h)&HDR_PADDING) >> 9)

Definition at line 51 of file mpeghead.h.

◆ HDR_PRIVATE

#define HDR_PRIVATE   0x00000100

Definition at line 53 of file mpeghead.h.

◆ HDR_PRIVATE_VAL

#define HDR_PRIVATE_VAL (   h)    (((h)&HDR_PRIVATE) >> 8)

Definition at line 54 of file mpeghead.h.

◆ HDR_SAMEMASK

Definition at line 81 of file mpeghead.h.

◆ HDR_SAMPLERATE

#define HDR_SAMPLERATE   0x00000c00

Definition at line 47 of file mpeghead.h.

◆ HDR_SAMPLERATE_VAL

#define HDR_SAMPLERATE_VAL (   h)    (((h)&HDR_SAMPLERATE) >> 10)

Definition at line 48 of file mpeghead.h.

◆ HDR_SAMPMASK

#define HDR_SAMPMASK   (HDR_VERSION|HDR_SAMPLERATE)

Definition at line 87 of file mpeghead.h.

◆ HDR_SYNC

#define HDR_SYNC   0xffe00000

Definition at line 32 of file mpeghead.h.

◆ HDR_SYNC_VAL

#define HDR_SYNC_VAL (   h)    (((h)&HDR_SYNC) >> 21)

Definition at line 33 of file mpeghead.h.

◆ HDR_VERSION

#define HDR_VERSION   0x00180000

Definition at line 35 of file mpeghead.h.

◆ HDR_VERSION_VAL

#define HDR_VERSION_VAL (   h)    (((h)&HDR_VERSION) >> 19)

Definition at line 36 of file mpeghead.h.