Unlock instant, AI-driven research and patent intelligence for your innovation.

A way to convert nv12+ format to p010 format

A format conversion, p010be technology, applied in the field of image coding, can solve problems such as reducing storage space, and achieve the effect of shortening time, improving speed and efficiency

Active Publication Date: 2021-01-19
XI AN JIAOTONG UNIV
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] NV12+ is composed of additional data added by NV12. For 8-bit video encoding, NV12 data can be used directly; for 10-bit video encoding, if the NV12+ format can be quickly converted to P010 format, NV12+ can only store 10-bit image effective information without data redundancy. In addition, the data transmission efficiency of the acquisition card can be effectively improved, the storage space is reduced, and the data transmission efficiency of the acquisition card is improved. However, there is no similar format conversion method in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A way to convert nv12+ format to p010 format
  • A way to convert nv12+ format to p010 format
  • A way to convert nv12+ format to p010 format

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] In this embodiment, eight 8+2-bit pixels are taken as an example to show specific procedures and execution results.

[0033] Suppose the NV12 data to be read are two 8-byte 0x8182838471727374 and 0x6162636451525354, and the additional 2-bit data to be read are two 2-byte 0xaaaa and 0xffff. The method of AVX2 fast format conversion is: convert it into four 8-byte P010 format data, the format conversion procedure is as follows:

[0034]

[0035]

[0036]

[0037]

[0038]

[0039] The execution process is as follows:

[0040] D operation process: (16 bytes)

[0041] D0: 0x0000000000000000 0x0000000000000000 0x81828384717273740x6162636451525354

[0042] D1: 0x0000000000000000 0x8182838471727374 0x00000000000000000x6162636451525354

[0043] D2: 0x0081008200830084 0x0071007200730074 0x00610062006300640x0051005200530054

[0044] D3: 0x8100820083008400 0x7100720073007400 0x61006200630064000x5100520053005400

[0045]d operation process: (4 bytes)

[0046] 0...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for converting an NV12 + format into a P010 format. The method comprises the following steps:: 1) respectively moving 8-bit data of a YUV component and additional 2-bit data into two registers by using a VMOVDQA command; 2) moving the aligned packaging integer values by using a VPERMQ instruction, and averagely moving the data stored on the continuous address of the register to the high-low bit address of the AVX register; 3) interleaving and combining the data in the register with 0 by using a VPUNPCKLBW instruction, namely, data in a register and all 0 crosscombinations are placed in the register at intervals; and after the cross combinations, shifting data D in the NV12 format leftwards by 8 bits according to words, wherein the position of data C of additional 2-bit data is kept unchanged; and 4) sequentially finishing the addition of the register value of the D data for storing the NV12 and the register value of the C data for storing the additional 2 bits through the VPADDW instruction, and finishing the conversion from the NV12 + format to the P010be format. The method can quickly convert the NV12 + format into the P010 format.

Description

technical field [0001] The invention belongs to the field of image coding and relates to a method for converting an NV12+ format into a P010 format. Background technique [0002] Many hardware encoders (such as QSV, NVENC) natively support NV12 format image input, P010 storage format is a 10bit video image encoding format, its YUV adopts 4:2:0 sampling, and the storage order is to store all Y first, and then UV is stored alternately, and YUV is 10 bits. P010 is stored in 16 bits (2 bytes). According to the difference in size and size, it is divided into P010le and P010be. P010le places 10 bits in the lower 10 bits of 16 bits; P010be places 10 bits in the 10 bits higher than 16 bits. Its storage format is as figure 1 Shown: [0003] The 10-bit image stored by the P010 has 25% more information than the 8-bit image stored by the NV12, but has 100% more storage space. This can have an adverse effect on image acquisition. Therefore, a new image encoding method has emerged, c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N19/423
CPCH04N19/423
Inventor 符均刘耀远吴长丽
Owner XI AN JIAOTONG UNIV