This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
raw [2020/03/30 13:46] – yair | raw [2020/03/30 14:11] – yair |
---|
| |
**solution**: \\ | **solution**: \\ |
a missing channel in any image format is **just a convention**, we can re-package a datastream to another, as long as we mind our strides. | a image formats are **just a convention**, internally they are byte(octet) streams. we can re-package a datastream to another format, as long as we mind our strides. |
| |
view the image format as just a stream of octets. here is our stream in Y8 format | view the image format as just a stream of octets. here is our stream in Y8 format |
note the above represents two sequential pixels. | note the above represents two sequential pixels. |
| |
the trick is to use gstreamer built in format [[https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c#formats|design document]] and let it handle the conventions. | the trick is to use gstreamer built in [[https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c#formats|format spec]] and let that handle the conventions. |
| |
the [[https://www.collabora.com/news-and-blog/blog/2016/02/16/a-programmers-view-on-digital-images-the-essentials/|hammer]] | the [[https://www.collabora.com/news-and-blog/blog/2016/02/16/a-programmers-view-on-digital-images-the-essentials/|hammer]] |
====strides and offsets==== | ====strides and offsets==== |
| |
there are extremes to this approach (yuv). get the hammer and study the [[https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c#formats|design document]]. | there are caveats to this approach (yuv). get the hammer and study the [[https://gstreamer.freedesktop.org/documentation/additional/design/mediatype-video-raw.html?gi-language=c#formats|design document]]. |
| |
| |