Commit 4929d8e5 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dr_45.h: document some defines.

parent 1a9bf781
...@@ -34,10 +34,22 @@ ...@@ -34,10 +34,22 @@
extern "C" { extern "C" {
#endif #endif
/*!
* \def DVDPSI_GetContentCategoryFromType
* \brief Extract content category by type. The value 'type' includes the
* content category (MSB) and content detail (LSB).
*/
#define DVDPSI_GetContentCategoryFromType(type) ((type) >> 4) #define DVDPSI_GetContentCategoryFromType(type) ((type) >> 4)
/*!
* \def L1L2MERGE
* \brief Merge content category and content detail in one byte. The
* category is in the topmost 4-bits (MSB) and the content detail in
* the lower 4-bits (LSB).
*/
#define L1L2MERGE(L1,L2) ( ( DVBPSI_CONTENT_CAT ## L1<<4) | (L2) ) #define L1L2MERGE(L1,L2) ( ( DVBPSI_CONTENT_CAT ## L1<<4) | (L2) )
/* Content category */
#define DVBPSI_CONTENT_CAT_UNDEFINED 0x0 #define DVBPSI_CONTENT_CAT_UNDEFINED 0x0
#define DVBPSI_CONTENT_CAT_MOVIE 0x1 #define DVBPSI_CONTENT_CAT_MOVIE 0x1
#define DVBPSI_CONTENT_CAT_NEWS 0x2 #define DVBPSI_CONTENT_CAT_NEWS 0x2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment