Detailed description of the service

Source: Internet
Author: User
Detailed description of the service

A total of 6 bits are supported by the API. 2bit indicates that the AC coefficient of at least one 4x4 block in cbpc (2: CB and Cr is not all 0; 1: in CB and Cr, the DC coefficient of at least 2x2 is not all 0; 0: All color coefficients are all 0)

4 bits low indicate four 8x8 brightness blocks. The four bits starting from the lowest position correspond to 8x8 brightness blocks at the positions of, 10, and respectively. If a value is 1, it indicates that at least one of the four 4*4 blocks corresponding to 8*8 blocks is not all 0.

Icbptab [0] = 0 (00 0000) indicates that there is neither brightness nor chromatic aberration.

Icbptab [1] = 16 (01 0000) indicates no brightness coefficient, DC coefficient of colored difference (no AC coefficient)

Icbptab [2] = 32 (10 0000) indicates no brightness coefficient, non-color difference AC coefficient (may contain DC coefficient)

Icbptab [3] = 15 (00 1111) indicates brightness coefficient and color difference coefficient.

Icbptab [4] = 31 (01 1111) indicates brightness coefficient and DC coefficient of colored difference (no AC coefficient)

Icbptab [5] = 47 (10 1111) indicates brightness coefficient and colored difference AC coefficient (may contain DC coefficient)

Example: Position: 0x0 (0x0)
Mb_addr: 0
Size (in bits): 157
Mb_type: 0
Pmode: 0
Mb_type: inter (p_l0_16x16)
Slice_number: 0
Transform_8x8: 0
Field/frame: Frame
White service bits: 0 0000 0 00 0 00
: 0000 00 00
0011
0111
Quant_param: 28
Pmode: part_16x16
Mvl0:
0, 0, 0 | 0, 0 | 0, 0, 0 | 0, 0, 0
0, 0, 0 | 0, 0 | 0, 0, 0 | 0, 0, 0
0, 0, 0 | 0, 0 | 0, 0, 0 | 0, 0, 0
0, 0, 0 | 0, 0 | 0, 0, 0 | 0, 0, 0
The above is the macro block information... but what about the six bits in the same part of the white cloud... hope to provide further guidance... what I am talking about is the same as the same protocol. What exactly is the ing relationship? I have to study it. I didn't use the streameye software.
CBP bits : 0 0000 0 00 0 00
: 0000 00 00
: 0011
: 0111
I analyzed it last night. The situation is as follows. We divided the previously-used "CBP bits" into the following six columns:

In the first column, only the first row has a number. If the value is 0, all 16 DC coefficients of the Y component are 0. If the value is 1, 16 DC coefficients are not all 0;
The second column is a 4*4 matrix, which corresponds to the position of 16 4*4 blocks of the Y component: A value of 0 indicates that all the four AC coefficients are 0. a value of 1 indicates that not all the four AC coefficients are 0;
In the third column, only the first row has a number. If the value is 0, all the four DC coefficients of the U component are 0. If the value is 1, the four DC coefficients are not all 0;
The fourth column is a 2*2 matrix, which corresponds to the position of four 4*4 blocks of the U component: A value of 0 indicates that all the four AC coefficients are 0. a value of 1 indicates that not all the four AC coefficients are 0;
In the Fifth Column, only the first row has a number. If the value is 0, all the four DC coefficients of the V component are 0. If the value is 1, the four DC coefficients are not all 0;
The sixth column is a 2*2 matrix, which exactly corresponds to the position of four 4*4 blocks of the V component: A value of 0 indicates that all the four AC coefficients are 0. a value of 1 indicates that not all the four AC coefficients are 0;

[Note]: If the Macro Block is a non-16*16 intra Macro Block, the DC coefficient is not processed independently. Therefore, although the value in the first column is still 0, but it does not mean that the DC coefficient is all 0. At this time, whether the values in the second column are 0 is jointly determined by the DC and AC coefficients.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.