I am just curious if it is more efficient to store the video information in RGB or YUV420P internally? Doesn't RGB take up more space 1.5 vs 2?
Ryan
RGB vs YUV420P
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: RGB vs YUV420P
Hi Ryan,
It does take a bit more space you're right. However most of the time RGB is the format the images in so there's no conversion to be done. Plus it's just easier working with RGB as all the colour elements of the image are next to each other and don't have to be address in different layers.
Generally I tend to prefer faster processing to less memory, especially when it's not a huge overhead. Memory is fairly cheap these days whereas getting a faster CPU is a bit more of an enterprise.
Cheers,
Phil,
It does take a bit more space you're right. However most of the time RGB is the format the images in so there's no conversion to be done. Plus it's just easier working with RGB as all the colour elements of the image are next to each other and don't have to be address in different layers.
Generally I tend to prefer faster processing to less memory, especially when it's not a huge overhead. Memory is fairly cheap these days whereas getting a faster CPU is a bit more of an enterprise.
Cheers,
Phil,
Re: RGB vs YUV420P
How about if my capture card defaults to YUV420P, is there a performance hit there?