METHOD AND DEVICE FOR DETERMINING SAMPLE ADAPTIVE OFFSET MODE OF CODING TREE BLOCK
Disclosed in the present application are a method and device for determining a sample adaptive offset mode. The method comprises: acquiring a motion vector contained in a first coding tree block, and acquiring a reference frame of a video frame of the first coding tree block; acquiring a video resol...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | eng ; fre ; ger |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Disclosed in the present application are a method and device for determining a sample adaptive offset mode. The method comprises: acquiring a motion vector contained in a first coding tree block, and acquiring a reference frame of a video frame of the first coding tree block; acquiring a video resolution and a video frame rate, calculating a threshold according to the video resolution and the video frame rate, and determining, according to a preset rule, whether the motion vector is greater than the threshold; if the motion vector is not greater than the threshold, determining second coding tree blocks according to the motion vector; sequentially calculating first probabilities that coding blocks in preset directions of all second coding tree blocks enable sample adaptive offset modes, and calculating a second probability that all coding blocks in a preset direction of the first coding tree block enable an offset mode; determining, according to the first probabilities and the second probability, whether the offset modes are trustworthy; and if yes, acquiring the offset modes of all second coding tree blocks, and using all types of the obtained offset modes as the offset modes of the first coding tree block. The present application can reduce the time consumed by a coding process. |
---|