aws / dcv-color-primitives

DCV Color Primitives Library
MIT No Attribution
31 stars 22 forks source link

Direct nv12 to rgb? #70

Closed seddonm1 closed 1 year ago

seddonm1 commented 1 year ago

Hi, Is there anything significant preventing a direct nv12 to rgb conversion? Currently we are doing nv12 to bgra to rgb. Thanks

fabiosky commented 1 year ago

Hi Mike,

there is no significant issue, we have not added it because we are not currently using such conversion, however we would definitely take a patch to add it.

Adding the support needs implementing some boilerplate code and performing the output conversion from AoS to SoA as final step of the conversion kernel.

fabiosky commented 1 year ago

There is a PR adding nv12 to rgb direct conversion: https://github.com/aws/dcv-color-primitives/pull/71

seddonm1 commented 1 year ago

Wow. thanks @fabiosky . I was planning to look at this later this week. Not exactly a small PR!