upipe-modules/upipe_blit.h header reference
Upipe module blitting subpictures into a main picture More
Header inclusion [link]
Members [link]
Types [link]
- enum upipe_blit_command
- enum upipe_blit_sub_command
- enum uprobe_blit_event
Functions [link]
- struct upipe_mgr * upipe_blit_mgr_alloc(void )
- int upipe_blit_prepare(struct upipe *upipe, struct upump **upump_p)
- int upipe_blit_sub_get_alpha(struct upipe *upipe, int *alpha_p)
- int upipe_blit_sub_get_alpha_threshold(struct upipe *upipe, int *threshold_p)
- int upipe_blit_sub_get_rect(struct upipe *upipe, uint64_t *loffset_p, uint64_t *roffset_p, uint64_t *toffset_p, uint64_t *boffset_p)
- int upipe_blit_sub_get_z_index(struct upipe *upipe, int *z_index_p)
- int upipe_blit_sub_set_alpha(struct upipe *upipe, int alpha)
- int upipe_blit_sub_set_alpha_threshold(struct upipe *upipe, int threshold)
- int upipe_blit_sub_set_margin(struct upipe *upipe, struct urational lmargin, struct urational rmargin, struct urational tmargin, struct urational bmargin)
- int upipe_blit_sub_set_rect(struct upipe *upipe, uint64_t loffset, uint64_t roffset, uint64_t toffset, uint64_t boffset)
- int upipe_blit_sub_set_z_index(struct upipe *upipe, int z_index)
Description [link]
Upipe module blitting subpictures into a main picture
Members detail [link]
#define UPIPE_BLIT_SIGNATURE [link]
This macro is declared in upipe-modules/upipe_blit.h source file, line 39.
#define UPIPE_BLIT_SUB_SIGNATURE [link]
This macro is declared in upipe-modules/upipe_blit.h source file, line 40.
#define _UPIPE_MODULES_UPIPE_BLIT_H_ [link]
This macro is declared in upipe-modules/upipe_blit.h source file, line 32.
enum upipe_blit_command [link]
This enum is declared in upipe-modules/upipe_blit.h source file, line 60.
This enum extends upipe_command with specific commands for upipe_blit pipes.
| Identifier | Value | Description |
|---|---|---|
| UPIPE_BLIT_SENTINEL | 0x8000 | |
| UPIPE_BLIT_PREPARE | 1 | prepares the next picture to output (struct upump **) |
This function is declared in upipe-modules/upipe_blit.h source file, line 47.
This function returns the management structure for blit pipes.
The return value is pointer to manager
This function is declared in upipe-modules/upipe_blit.h source file, line 106.
This function prepares the next picture to output.
Parameter list:
- upipe: description structure of the pipe
- upump_p: reference to pump that generated the buffer
The return value is an error code
enum upipe_blit_sub_command [link]
This enum is declared in upipe-modules/upipe_blit.h source file, line 69.
This enum extends upipe_command with specific commands for upipe_blit_sub pipes.
| Identifier | Value | Description |
|---|---|---|
| UPIPE_BLIT_SUB_SENTINEL | 0x8000 | |
| UPIPE_BLIT_SUB_GET_RECT | 1 | gets the offsets of the rect onto which the input of this subpipe will be blitted (uint64_t *, uint64_t *, uint64_t *, uint64_t *) |
| UPIPE_BLIT_SUB_SET_RECT | 2 | sets the offsets of the rect onto which the input of this subpipe will be blitted (uint64_t, uint64_t, uint64_t, uint64_t) |
| UPIPE_BLIT_SUB_SET_MARGIN | 3 | sets the margins of the rect onto which the input of this subpipe will be blitted (struct urational, struct urational, struct urational, struct urational) |
| UPIPE_BLIT_SUB_GET_ALPHA | 4 | gets the alpha channel multiplier (int *) |
| UPIPE_BLIT_SUB_SET_ALPHA | 5 | sets the alpha channel multiplier (int) |
| UPIPE_BLIT_SUB_GET_ALPHA_THRESHOLD | 6 | gets the method for alpha blending (int *) See also ubuf_pic_blit. |
| UPIPE_BLIT_SUB_SET_ALPHA_THRESHOLD | 7 | sets the method for alpha blending (int) See also ubuf_pic_blit. |
| UPIPE_BLIT_SUB_GET_Z_INDEX | 8 | gets the z-index (int *) |
| UPIPE_BLIT_SUB_SET_Z_INDEX | 9 | sets the z-index (int) |
This function is declared in upipe-modules/upipe_blit.h source file, line 177.
This function gets the multiplier of the alpha channel.
Parameter list:
- upipe: description structure of the pipe
- alpha_p: filled in with the multiplier of the alpha channel
The return value is an error code
This function is declared in upipe-modules/upipe_blit.h source file, line 204.
This function gets the method for alpha blending for this subpipe.
Parameter list:
- upipe: description structure of the pipe
- threshold_p: filled in with method for alpha blending ()
The return value is an error code
int upipe_blit_sub_get_rect(struct upipe *upipe, uint64_t *loffset_p, uint64_t *roffset_p, uint64_t *toffset_p, uint64_t *boffset_p) [link]
This function is declared in upipe-modules/upipe_blit.h source file, line 124.
This function gets the offsets (from the respective borders of the frame) of the rectangle onto which the input of the subpipe will be blitted.
Parameter list:
- upipe: description structure of the pipe
- loffset_p: filled in with the offset from the left border
- roffset_p: filled in with the offset from the right border
- toffset_p: filled in with the offset from the top border
- boffset_p: filled in with the offset from the bottom border
The return value is an error code
This function is declared in upipe-modules/upipe_blit.h source file, line 230.
This function gets the z-index for this subpipe.
Parameter list:
- upipe: description structure of the pipe
- z_index_p: filled in with z-index
The return value is an error code
This function is declared in upipe-modules/upipe_blit.h source file, line 190.
This function sets the multiplier of the alpha channel.
Parameter list:
- upipe: description structure of the pipe
- alpha: multiplier of the alpha channel
The return value is an error code
This function is declared in upipe-modules/upipe_blit.h source file, line 217.
This function sets the method for alpha blending for this subpipe.
Parameter list:
- upipe: description structure of the pipe
- threshold: method for alpha blending ()
The return value is an error code
int upipe_blit_sub_set_margin(struct upipe *upipe, struct urational lmargin, struct urational rmargin, struct urational tmargin, struct urational bmargin) [link]
This function is declared in upipe-modules/upipe_blit.h source file, line 163.
This function sets the margins (from the respective borders of the frame) of the rectangle onto which the input of the subpipe will be blitted.
Parameter list:
- upipe: description structure of the pipe
- lmargin: margin from the left border in ratio of the total width
- rmargin: margin from the right border in ratio of the total width
- tmargin: margin from the top border in ratio of the total height
- bmargin: margin from the bottom border in ratio of the total height
The return value is an error code
int upipe_blit_sub_set_rect(struct upipe *upipe, uint64_t loffset, uint64_t roffset, uint64_t toffset, uint64_t boffset) [link]
This function is declared in upipe-modules/upipe_blit.h source file, line 142.
This function sets the offsets (from the respective borders of the frame) of the rectangle onto which the input of the subpipe will be blitted.
Parameter list:
- upipe: description structure of the pipe
- loffset: offset from the left border
- roffset: offset from the right border
- toffset: offset from the top border
- boffset: offset from the bottom border
The return value is an error code
This function is declared in upipe-modules/upipe_blit.h source file, line 243.
This function sets the z-index for this subpipe.
Parameter list:
- upipe: description structure of the pipe
- z_index: z-index
The return value is an error code
enum uprobe_blit_event [link]
This enum is declared in upipe-modules/upipe_blit.h source file, line 51.
This enum extends uprobe_event with specific events for upipe_blit pipes.
| Identifier | Value | Description |
|---|---|---|
| UPROBE_BLIT_SENTINEL | 0x8000 | |
| UPROBE_BLIT_PREPARE_READY | 1 | upipe_blit is ready for upipe_blit_prepare (struct upump **) |