The HEVC/H.265 standards requires that picture luma sizes (both width and height) are multiple of MinCbSizeY (this parameter is configurable, but it typical value is 8).

The standard says:

pic_height_in_luma_samples and pic_width_in_luma_samples “shall be an integer multiple of MinCbSizeY”.

Where ‘MinCbSizeY’ is derived from SPS parameter ‘log2_min_luma_coding_block_size_minus3‘, typical magnitude of ‘MinCbSizeY’ is 8.

What to do if original picture size (width and/or height) is not multiple of 8?

1) One of solutions is to extend original pictures to 8-pixels boundaries (CbY alignment) in bottom-right extension or by left-top extension and encode the extended pictures. To instruct a player about actual output sizes, it’s necessary to signal (in SPS) corresponding cropping parameters: conf_win_left_offset, conf_win_right_offset, conf_win_top_offset and conf_win_bottom_offset. Otherwise the player displays the extended pictures with padded margins.

2) Alternative solution is to crop original pictures to 8-pixels boundaries. In such case the cropping parameters are not signaled since encoded picture size is equal to displayed one.

3) Most sophisticated solution is upscale original pictures to 8-pixels boundaries.

As per the first solution, it’s better for coding efficiency to extend original frames in same way by padding with same values. In such case then the energy of inter predicted residual blocks is smaller than the case where pictures are extended by mirroring or edge duplication. Adaptive pixel extension can be useful for I-frames only, if the encoder extends pictures in such way that spatial residuals of a chosen intra mode are minimal.

 

20 Responses

  1. Hi, Neat post. There’s a problem with your web site in internet explorer, would check this… IE still is the market leader and a large portion of people will miss your excellent writing because of this problem.

    1. lack of money to advertise this site, but info of the site has been circulating among specialists and beginners

  2. I am extremely inspired together with your writing abilities as neatly as with the format in your weblog. Is this a paid topic or did you modify it your self? Anyway keep up the excellent quality writing, it’s uncommon to look a nice weblog like this one today..

    1. it’s a non-profit site, i pay each year money for keeping this site.
      my purpose to make people from poor countries to be familiar with modern technologies without paying for expensive professional courses

  3. A lot of thanks for every one of your efforts on this site. Ellie takes pleasure in participating in investigations and it is simple to grasp why. Many of us know all about the compelling means you make practical tips and tricks via your web blog and invigorate contribution from people on this article plus our favorite child has been starting to learn a lot of things. Take pleasure in the remaining portion of the year. You have been carrying out a splendid job.

  4. What i do not realize is if truth be told how you are now not really much more well-preferred than you might be right now. You are very intelligent. You know thus considerably with regards to this subject, produced me personally consider it from numerous various angles. Its like men and women are not involved until it?¦s something to accomplish with Girl gaga! Your individual stuffs excellent. At all times take care of it up!

Leave a Reply

Your email address will not be published. Required fields are marked *