Method and system for converting YUV into RGB and converting RGB into YUV

The invention relates to a method for converting a YUV into an RGB. The method for converting YUV into the RGB includes the following steps that YUV data of image pixels are obtained, numbers of effectively digits of the YUV data of multiple pixels of the image are spliced to different segments of digits of one datum to obtain the combined YUV data of the multiple pixels; the combined YUV data of the multiple pixels are calculated to obtain combined RGB data of the multiple pixels; numbers on digits of corresponding segments of all the pixels in the combined RGB data are RGB data of all the pixels. The YUV data and the RGB data have the range between 0 and 255. Only eight digits are needed to perform presenting, however, multiple processors can process data with more than eight data bits. According to the method for converting the YUV into the RGB, the data of the pixels are combined into one datum to carry out conversion calculation. The feature that many data bits can be processed by the processors is fully utilized, multiple times of conversion calculation can be combined to form a one-time conversion calculation and thus, the conversion efficiency is improved. In addition, the invention further provides a method and system for converting the RGB into the YUV and a system where the RGB and the YUV are mutually converted.