Abstract:
A method for selecting a prediction mode of an intra prediction, a video encoding device and an image processing apparatus are provided. The method includes following steps. Multiple prediction costs corresponding to multiple prediction modes of the intra prediction are calculated according to a block of an input image in case that a transform unit transforms according to a default transform index. Multiple candidate prediction modes are selected from the prediction modes based on the prediction costs corresponding to the prediction modes. Multiple distortion costs corresponding to the candidate prediction modes under a plurality of transform indexes are calculated based on the block and the prediction costs corresponding to the candidate prediction modes. And, one of the candidate prediction modes is selected according to the distortion costs to serve as a prediction mode to be used of the intra prediction corresponding to the block.
Abstract:
In an embodiment, an encoding method includes generating a histogram corresponding to all pixels in a coding unit. The encoding method further includes seeking a first color value according to the histogram, wherein a first number of pixels of the first color value in the histogram is greater than or equals to a first threshold. The encoding method further includes seeking a second color value in a first range of the first color value according to the histogram. The encoding method further includes removing one or more pixels of the first color value from the histogram when a second number of pixels of the second color value is greater than or equals to a second threshold. The encoding method further includes adding the first color value into an initial color table when the second number of pixels is less than the second threshold. An encoder is also provided in the disclosure.
Abstract:
A video encoding method includes receiving a source video frame, dividing the source video frame into a coding tree unit, determining a coding unit from the coding tree unit, determining a correlation between components of the coding unit, enabling or disabling a coding mode of the coding unit, determining whether to evaluate a size of a transform unit for an enabled coding mode, and determining a transform unit of the coding unit for the enabled coding mode, wherein the size of the coding unit is defined by a number (N) of samples.
Abstract:
The disclosure is directed to a method of color palette coding and an electronic device using the same method. The proposed method would include not limited to encoding, by using a processor, a bit stream to represent a color of a coding unit and storing the bit stream in a storage medium or transmitting the bit stream. The bit stream would include not limited to a binary bit representing a run flag, a N binary bit sequence representing up to 2N major colors in a coding unit with each of the possible values of the N binary bit sequence representing an unique major color index of N major color indices, and a M binary bit sequence representing up to 2M extended colors with each of the possible values of the M binary bit sequence representing an unique extended color index of M extended color indices.
Abstract:
An encoding method and a decoding method, and a codec system, an encoder and a decoder using the methods are provided. The encoding method includes receiving a first coding unit of a frame, and selecting a first index pixel and a second index pixel from pixels of the frame and setting index values corresponding to the two index pixels, where a color of the first index pixel is different to a color of the second index pixel. The encoding method includes indexing each pixel in the first coding unit to generate an index map. The encoding method includes generating a coding value corresponding to the first coding unit according to the index map, and transmitting the coding value to a decoder, wherein only an index value corresponding to a 1st scanned pixel in the pixels of the first coding unit in the index map is recorded in the coding value.
Abstract:
A method and device for coding interlaced video data. The method includes coding interlaced video data captured from a plurality of different positions, the interlaced video data including data for a top field and a bottom field for at least one interlaced video scan, the top field including every other line starting with a top line of a frame and the bottom field including interposed lines in the frame.