[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-23 Thread Thomas Stolarski


Thomas Stolarski  added the comment:

I figured this would probably be the case, but since YIQ also requires a 
profile (and the FCC one it implements is pretty weird for digital work), I 
thought I'd give it a shot anyway.

Would it be worth moving the test/formatting changes over to a different ticket 
or should we just leave them?

--

___
Python tracker 
<https://bugs.python.org/issue45775>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-09 Thread Thomas Stolarski


Change by Thomas Stolarski :


--
keywords: +patch
pull_requests: +27763
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29512

___
Python tracker 
<https://bugs.python.org/issue45775>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45775] Implementation of colorsys.rgb_to_yuv and vice versa

2021-11-09 Thread Thomas Stolarski


New submission from Thomas Stolarski :

Since the implementation of `rgb_to_yiq` roughly 30 years ago now, the advent 
of HDTV has resulted in most broadcasting and video processing having moved 
towards Rec 709 (or BT.709).

While I know colorsys has been on the chopping block for a while, it seemed a 
little silly that what is now arguably the most common color space used in 
video editors isn't available as part of this module, despite being a matrix 
mapping like much of the others.

YUV is a bit more contentious on its definition than YIQ is, but it is still 
widely used to refer to Rec 709 and this is the ATSC standardization for HDTV.

I've written a PR for both conversions and will add it to this ticket once it's 
up.

--
components: Library (Lib)
messages: 406067
nosy: thomas.stolarski
priority: normal
severity: normal
status: open
title: Implementation of colorsys.rgb_to_yuv and vice versa
type: enhancement
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45775>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com