upipe-dvbcsa/upipe_dvbcsa_common.h header reference
Header inclusion [link]
Members [link]
Types [link]
- enum upipe_dvbcsa_command
- struct ustring_dvbcsa_cw
Functions [link]
- int upipe_dvbcsa_add_pid(struct upipe *upipe, uint64_t pid)
- int upipe_dvbcsa_del_pid(struct upipe *upipe, uint64_t pid)
- int upipe_dvbcsa_set_key(struct upipe *upipe, const char *even_key, const char *odd_key)
- struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw(const struct ustring str)
- struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw128(const struct ustring str)
- struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw48(const struct ustring str)
- struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw64(const struct ustring str)
Macro [link]
Members detail [link]
#define UPIPE_DVBCSA_COMMON_SIGNATURE [link]
This macro is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 37.
This macro is the signature for common dvbcsa pipe operations.
#define _UPIPE_DVBCSA_UPIPE_DVBCSA_COMMON_H_ [link]
This macro is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 26.
This function is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 79.
This function adds a pid to the encryption/decryption list.
Parameter list:
- upipe: description structure of the pipe
- pid: pid to add
The return value is an error code
enum upipe_dvbcsa_command [link]
This enum is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 41.
This enum enumerates the common custom control commands.
| Identifier | Value | Description |
|---|---|---|
| UPIPE_DVBCSA_SENTINEL | 0x8000 | sentinel |
| UPIPE_DVBCSA_SET_KEY | 1 | set the dvbcsa key (const char *, const char *) |
| UPIPE_DVBCSA_SET_MAX_LATENCY | 2 | set the maximum latency (uint64_t) |
| UPIPE_DVBCSA_ADD_PID | 3 | add a pid to the encryption/decryption list (uint64_t) |
| UPIPE_DVBCSA_DEL_PID | 4 | delete a pid from the encryption/decryption list (uint64_t) |
| UPIPE_DVBCSA_CONTROL_LOCAL | 5 | custom dvbcsa commands start here |
This function is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 92.
This function deletes a pid from the encryption/decryption list.
Parameter list:
- upipe: description structure of the pipe
- pid: pid to delete
The return value is an error code
This function is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 66.
This function sets the dvbcsa key.
Parameter list:
- upipe: description structure of the pipe
- key: dvbcsa key
The return value is an error code
struct ustring_dvbcsa_cw [link]
This struct is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 98.
This struct stores a parsed dvbcsa control word.
| Field | Description |
|---|---|
| struct ustring str; | matching part of the string |
| union <anonymous> { | value of the parsed control word |
| dvbcsa_cw_t value; | |
| uint8_t aes[16]; | |
| }; |
struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw(const struct ustring str) [link]
This function is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 196.
This function parsed a dvbcsa control word from an ustring.
Parameter list:
- str: string to parse from
The return value is a parsed control word
struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw128(const struct ustring str) [link]
This function is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 115.
This function parse a 128 bits dvb-cisssa control word from an ustring.
Parameter list:
- str: string to parse from
The return value is a parsed control word
struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw48(const struct ustring str) [link]
This function is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 168.
This function parsed a 48 bits dvbcsa control word from an ustring.
Parameter list:
- str: string to parse from
The return value is a parsed control word
struct ustring_dvbcsa_cw ustring_to_dvbcsa_cw64(const struct ustring str) [link]
This function is declared in upipe-dvbcsa/upipe_dvbcsa_common.h source file, line 138.
This function parse a 64 bits dvbcsa control word from an ustring.
Parameter list:
- str: string to parse from
The return value is a parsed control word