Method and apparatus for decoding video bitstream, method and apparatus for generating video bitstream, storage medium, and electronic device
AssigneeXi'an Zhongxing New Software Co., Ltd.
InventorsMing Li, Zhao Wu, Ping Wu
Life of this patent
Estimating the term…
Abstract
A method and apparatus for decoding a video bitstream, a method and apparatus for generating a video bitstream, storage medium and an electronic device are provided. The method for decoding the video bitstream includes that: a first parameter of a reference position of a slice in a video picture is acquired; a second parameter of the slice is acquired, the second parameter being used for determining a starting position of the slice in the video picture; and a starting position coordinate parameter of the slice in the video picture is calculated according to the first parameter and the second parameter.
Claims17
A method for decoding a video bitstream, comprising:
- acquiring a first parameter of a reference position of a slice in a video picture;
- acquiring a second parameter of the slice, the second parameter being used for determining a starting position of the slice in the video picture;
- and
- calculating a starting position coordinate parameter of the slice in the video picture according to the first parameter and the second parameter;
- wherein the first parameter comprises coordinate information of the video picture and stride information of the video picture, and the second parameter comprises coordinate information of the slice;
- wherein the coordinate information of the video picture comprises a coordinate of the reference position of the slice in the video picture in a horizontal direction and a coordinate of the reference position of the slice in the video picture in a vertical direction;
- the stride information of the video picture comprises a stride value of the video picture in a horizontal direction and a stride value of the video picture in a vertical direction, or the stride information of the video picture comprises a stride value of the video picture in a horizontal direction;
- the coordinate information of the slice comprises a position coordinate of the slice in a horizontal direction and a position coordinate of the slice in a vertical direction.
A method for generating a video bitstream, comprising:
- setting a first parameter according to a starting position of a first slice in a video picture;
- and
- writing the first parameter into a bitstream of a picture-layer data unit of the video picture;
- calculating a second parameter according to a starting position coordinate parameter of a slice in the video picture and the first parameter, and writing the second parameter into a bitstream corresponding to slice-layer header information, the second parameter being used for determining a starting position of the slice in the video picture;
- wherein the first parameter comprises coordinate information of the video picture and stride information of the video picture, and the second parameter comprises coordinate information of the slice;
- wherein the coordinate information of the video picture comprises a coordinate of the reference position of the slice in the video picture in a horizontal direction and a coordinate of the reference position of the slice in the video picture in a vertical direction;
- the stride information of the video picture comprises a stride value of the video picture in a horizontal direction and a stride value of the video picture in a vertical direction, or the stride information of the video picture comprises a stride value of the video picture in a horizontal direction;
- the coordinate information of the slice comprises a position coordinate of the slice in a horizontal direction and a position coordinate of the slice in a vertical direction.
An apparatus for decoding a video bitstream, comprising:
- a first acquisition module, configured to acquire a first parameter of a reference position of a slice in a video picture;
- a second acquisition module, configured to acquire a second parameter of the slice, the second parameter being used for determining a starting position of the slice in the video picture;
- and
- a calculation module, configured to calculate a starting position coordinate parameter of the slice in the video picture according to the first parameter and the second parameter;
- wherein the first parameter comprises coordinate information of the video picture and stride information of the video picture, and the second parameter comprises coordinate information of the slice;
- wherein the coordinate information of the video picture comprises a coordinate of the reference position of the slice in the video picture in a horizontal direction and a coordinate of the reference position of the slice in the video picture in a vertical direction;
- the stride information of the video picture comprises a stride value of the video picture in a horizontal direction and a stride value of the video picture in a vertical direction, or the stride information of the video picture comprises a stride value of the video picture in a horizontal direction;
- the coordinate information of the slice comprises a position coordinate of the slice in a horizontal direction and a position coordinate of the slice in a vertical direction.
An apparatus for generating a video bitstream, comprising:
- a setting module, configured to set a first parameter according to a starting position of a first slice in a video picture;
- and
- a generation module, configured to write the first parameter into a bitstream of a picture-layer data unit of the video picture;
- wherein the apparatus is further configured to, after the generation module writes the first parameter into the bitstream of the picture-layer data unit of the video picture, calculate a second parameter according to a starting position coordinate parameter of a slice in the video picture and the first parameter, and write the second parameter into a bitstream corresponding to slice-layer header information, the second parameter being used for determining a starting position of the slice in the video picture;
- wherein the first parameter comprises coordinate information of the video picture and stride information of the video picture, and the second parameter comprises coordinate information of the slice;
- wherein the coordinate information of the video picture comprises a coordinate of the reference position of the slice in the video picture in a horizontal direction and a coordinate of the reference position of the slice in the video picture in a vertical direction;
- the stride information of the video picture comprises a stride value of the video picture in a horizontal direction and a stride value of the video picture in a vertical direction, or the stride information of the video picture comprises a stride value of the video picture in a horizontal direction;
- the coordinate information of the slice comprises a position coordinate of the slice in a horizontal direction and a position coordinate of the slice in a vertical direction.
Dependencies are inferred from the claim text.