mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
spa/buffer: rename SPA_MEMBER to SPA_PTROFF
SPA_MEMBER is misleading, all we're doing here is pointer+offset and a type-casting the result. Rename to SPA_PTROFF which is more expressive (and has the same number of characters so we don't need to re-indent).
This commit is contained in:
parent
e598d0a422
commit
2405f0942b
92 changed files with 248 additions and 227 deletions
|
|
@ -145,14 +145,14 @@ static void on_timeout(void *userdata, uint64_t expirations)
|
|||
mcs->hotspot.y = 0;
|
||||
mcs->bitmap_offset = sizeof(struct spa_meta_cursor);
|
||||
|
||||
mb = SPA_MEMBER(mcs, mcs->bitmap_offset, struct spa_meta_bitmap);
|
||||
mb = SPA_PTROFF(mcs, mcs->bitmap_offset, struct spa_meta_bitmap);
|
||||
mb->format = SPA_VIDEO_FORMAT_ARGB;
|
||||
mb->size.width = CURSOR_WIDTH;
|
||||
mb->size.height = CURSOR_HEIGHT;
|
||||
mb->stride = CURSOR_WIDTH * CURSOR_BPP;
|
||||
mb->offset = sizeof(struct spa_meta_bitmap);
|
||||
|
||||
bitmap = SPA_MEMBER(mb, mb->offset, uint32_t);
|
||||
bitmap = SPA_PTROFF(mb, mb->offset, uint32_t);
|
||||
color = (cos(data->accumulator) + 1.0) * (1 << 23);
|
||||
color |= 0xff000000;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue