[PATCH 1/4] drm/format-helper: Implement drm_fb_swab() with per-line helpers
Thomas Zimmermann
tzimmermann at suse.de
Tue May 3 08:02:20 UTC 2022
Hi
Am 03.05.22 um 09:48 schrieb Javier Martinez Canillas:
> Hello Thomas,
>
> On 4/27/22 16:14, Thomas Zimmermann wrote:
>> Replace the inner loop of drm_fb_swab() with helper functions that
>> swap the bytes in each pixel. This will allow to share the outer
>> loop with other conversion helpers.
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
>> ---
>
> Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
>
> I've a meta question though.
>
> Something that I never fully understood in the conversion helpers is if there
> is some convention about the name of the parameters. Since it seems that in
> some places we use dbuf, sbuf but in others we use src and dst, and so forth.
>
> If is just that the naming haven't been used consistently, maybe this rework
> (or a follow-up) could be an opportunity to add consistency in that regard.
It's just inconsistent. I try to use dbuf and sbuf if possible.
Best regards
Thomas
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220503/1805ae8f/attachment-0001.sig>
More information about the dri-devel
mailing list