Code Monkey home page Code Monkey logo

yuvconverter's Introduction

YUV format is a color encoded system, it can be transformed by RGB format.
The concept of YUV format is to separate the color information and luminance information. The Y channel is for luminance value and U&V channels are for color value. YUV format usually has smaller bandwidth than RGB format, because it reduced the chrominance information. But it can still perform good quality after decoding.

RGB to YUV conversion formula:

Y = 0.299R + 0.587G + 0.114B
U = -0.169
R -0.331G +0.5B +128
V = 0.5R - 0.419G - 0.081*B + 128

There are two major types of YUV format
1.planer: each Y, U and V put separately in the momory
ex:
YYYYY
YYYYY
UUUUU
VVVVV
2.semi-planer:Y and UV put separately in memory, the difference between planer and semi-planer is that UV format put together in semi-planer.
ex:
YYYYY
YYYYY
UVUVU
VUVUV

This repo include:

RGB -> YUV444 planer
RGB -> YUV444 semi-planer
RGB -> YUV422 planer R
RGB -> YUV422 planer YV16
RGB -> YUV420 planer I420
RGB -> YUV420 planer NV12
RGB -> YUV420 semi-planer

Also from above YUV format to RGB fomat

yuvconverter's People

Contributors

rayxie29 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.