YUVTools


http://www.sunrayimage.com/faq.html



Home / FAQ

     Frequently Asked Questions About YUVTools:
  1. What's sampling format?

    This is the format to define how the three components (Y,U, V or R, G, B) are sampled,  including :

    • YUV 4:4:4: Y, U and V are all in sampling format, no being down-sampled

               

    • YUV 4:2:2: Y is in full sampling format, while U and V are down-sampled horizontally

                          

    • YUV 4:2:0: Y is in full sampling format, while U and V are down-sampled both vertically and horizontally

                         

    • RGB 4:4:4: R, G and B are all in sampling format, no being down-sampled

       

        

  2. What's interlace/progressive format?

    This is to define whether the video frame (the whole image) is a single progressive frame, or two interlaced fields

    • One single progressive frame:

            

    • Two interlaced fields:

             

             

      

  3. What's pixel packing format?

    This setting is used to specify the organization of YUV components for each pixel, whether in planar format or packed format:

    • planar format: Y values for all pixels are put together, as well as U and V, like: YYYYYY......UUUUUUU.......VVVVVV......

             

             

             

    • packed format: pixel YUV value are packed together as: YUV, YUV, YUV,....

             

  4. How many resolutions yuvtools support?

    We support several pre-defined resolutions (QCIF, CIF, 4CIF.. etc) and customized resolution:

    • QCIF_NTSC:176x120
    • QCIF_PAL:176x144
    • CIF_NTSC:352x240
    • CIF_PAL:352x288
    • 4CIF_NTSC:704x480
    • 4CIF_PAL:704x576
    • D1_NTSC:720x480
    • D1_PAL:720x576
    • VGA:640x480
    • SVGA:800x600
    • XGA:1024x768
    • SXGA:1280x1024
    • UXGA:1600x1200
    • 720HD:1280x720
    • 1080HD:1920x1080
    • Customized: user specified image height and width.

  5. How many combined formats yuvtools support?

    Resolution setting only effects image size, while other four settings will define the data structure of each YUV file. So, we consider only four different sampling formats. The combination of sampling format (3 formats), component order (2 or 3 formats), interlace/progressive format (2 formats) and pixel packing format (2 formats) will generate 30 formats:

    1. RGB 4:4:4 format:

    2. RGB-444-progressive-packed;
    3. RGB-444-progressive-planar;
    4. BGR-444-progressive-packed;
    5. BGR-444-progressive-planar;

      YUV 4:4:4 format:

    6. YUV-444-interlaced-packed;
    7. YUV-444-interlaced-planar;
    8. YUV-444-progressive-packed;
    9. YUV-444-progressive-planar;
    10. YVU-444-interlaced-packed;
    11. YVU-444-interlaced-planar;
    12. YVU-444-progressive-packed;
    13. YVU-444-progressive-planar;
    14. UYV-444-interlaced-packed;
    15. UYV-444-interlaced-planar;
    16. UYV-444-progressive-packed;
    17. UYV-444-progressive-planar;

      YUV 4:2:2 format:

    18. YUYV-422-interlaced-packed;
    19. YUV-422-interlaced-planar (YV16);
    20. YUYV-422-progressive-packed (YUY2, YUNV, V422, YUYV);
    21. YUY-422-progressive-planar;
    22. UYVY-422-interlaced-packed (IUYV);
    23. UYVY-422-progressive-packed (UYVY, UYNV, Y422 );
    24. YVYU-422-interlaced-packed;
    25. YVU-422-interlaced-planar;
    26. YVYU-422-progressive-packed (YVYU);
    27. YVU-422-progressive-planar;

      YUV 4:2:0 format:

    28. YUV-420-interlaced-planar;
    29. YUV-420-progressive-planar (IYUV, I420);
    30. YVU-420-interlaced-planar (YV12);
    31. YVU-420-progressive-planar;

    To see the examples of each format, please refer to Example page .

  6. Which formula is used in yuvtools to convert between RGB and YUV?

    There are many variations of formula to convert between YUV and RGB. We support two types of conversion:

    * ITU-R 601 for SDTV:

       RGB to YUV Conversion:

          Y = (0.257 * R) + (0.504 * G) + (0.098 * B) + 16
          U = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128
          V = (0.439 * R) - (0.368 * G) - (0.071 * B) + 128

       YUV to RGB Conversion:

          B = 1.164(Y - 16) + 2.018(U - 128)
          G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128)
          R = 1.164(Y - 16) + 1.596(V - 128)

    * ITU-R 709 for HDTV:

       RGB to YUV Conversion:

          Y = (0.183 * R) + (0.614 * G) + (0.062 * B) + 16
          U = -(0.101 * R) - (0.338 * G) + (0.439 * B) + 128
          V = (0.439 * R) - (0.399 * G) - (0.040 * B) + 128

       YUV to RGB Conversion:

          B = 1.164(Y - 16) + 1.793(U - 128)
          G = 1.164(Y - 16) - 0.534(V - 128) - 0.213(U - 128)
          R = 1.164(Y - 16) + 2.115(V - 128)

    Please refer to color Conversion article

  7. Where can I download YUV video data?

    You can find some clips from:
    http://trace.eas.asu.edu/yuv/index.html
    http://www.cipr.rpi.edu/resource/sequences/sif.html
    or search "yuv 4:2:0" from google.com.

  8. Why I get an error when I open the help file "YUVTools.chm"?

    Some customers reported that they have problem to open YUVTools.chm file, get error like following:

    CHM files are basically compiled HTML web page files. Windows put some security checks before open the file if the file is downloaded from the Internet. To fix, you can try:

    • Make sure the file is not saved in Windows temporary file folder. Copy the file to your data folder.
    • Make sure the file is not saved in network shared folder.
    • Change the file property. Right clik on the file, you will see the drop down menu like this:

      Click on "Unlokck" button on the bottom part.

 
     Frequently Asked Questions About VIC Libraries:
  1. What kind of container format the libraries support?

    The video coding libraries (H.263, MPEG2, MPEG4) only accept video elementary stream, which already demultiplexed from any container format (AVI, MPEG2 System, MP4, etc).

  2. Does JPEG decoder in VIC Libraries support progressive scan?

    Yes.

  3. Does H.263 decoder in VIC Libraries support H.263+?

    H.263+ adds more coding tools ( called annex ) on top of H.263. H.263 decoder in VIC Libraries only supports H.263, not include those annexes.

  4. I can download some open source codec libraries, like ffmpeg, why I need VIC libraries ?

    First, when you use open source code, you may need to open your own code back to the open source community; second, open-source library intends to build on other third party libraries, or is very big by itself, and all modules are tangled together. It is hard to extract one or two codec. Even when you only need one or two codec, you have to include all of them.

UVTools are a set of software utilities to play, convert and analyze YUV or RGB video data in their raw formats. The main features of YUVTools are: It accepts (plays, converts, edits and analyzes) the combination of following formats: YUV in 4:4:4, 4:2:2 or 4:2:0 sample format, RGB in 4:4:4 sampling format; in different component order, like YUV, YVU, UYV, RGB, BGR, etc. in progressive (one single frame) or interlaced (two fields) format; in planar (YYY...UUU...VVV...) or packed (YUV, YUV....) pixel format; in predefined or arbitrary resolutions; Support FOURCC ( refer to: http://www.fourcc.org/). An image preview function to help guess the video format interactively. YUV Player can open multiple player dialogs and play different files in each dialog separately, or play multiple video files in one player dialog one by one sequentially. The detailed format of any opened or generated files will be logged, and the user can directly select any file to play back from the history list. YUV Converter can convert any combination of the format to another format, or convert to (or from) a sequence of BMP files. Other conversion functions include: scaling, join, crop, flip, padding, merge and separation of color components. YUV Analyzer can be used to calculate PSNR between two YUV files, or compare pixel by pixel to check the difference between the corresponding frames of two files, or overlay block type or motion vectors on top of each frame. Another useful feature is to help check the motion between two adjacent frames. YUV Editor can be used to edit the images pixel by pixel, or overlay one YUV image on top of another YUV image file. Convert YUV file to AVI format or vice versa; Setting options include grid display, different YUV to RGB conversion formula, etc. Many of above functions can also be performed in command line mode, which are useful for batch process or scripting.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值