Encoding of a mask in an image frame
AssigneeAxis AB
InventorsViktor EDPALM, Joakim ERICSON
Life of this patent
Estimating the term…
Abstract
Methods, software, devices and systems encode an image frame in a video stream, such that a decoded version of the encoded image frame is provided with a first masked region. A block-aligned mask is applied to the image frame being encoded, and a pre-generated encoded image frame is used to transform the block-aligned masked region during decoding. The pre-generated encoded image frame contains motion vectors but no residual data, enabling efficient transformation of a block-aligned masked region into the first masked region with an edge that cuts across coding blocks.
Claims15
A method of encoding an image frame in a video stream, such that a decoded version of the encoded image frame is provided with a first masked region, the method comprising;
- receiving a pre-generated encoded image frame having a same resolution as the image frame, the pre-generated encoded image frame comprising motion vectors but not any residual data, the motion vectors being configured to expand a second masked region, defined by a second mask, into the first masked region, the second masked region having an edge aligned to a set of coding blocks of the pre-generated encoded image frame, such that each coding block is not part of the second masked region, and wherein the first masked region has an edge that divides each coding block;
- applying the second mask to the image frame to provide a masked image frame;
- encoding the masked image frame, setting the encoded masked image frame as a no-display frame and adding the encoded masked image frame to an encoded video stream;
- and
- adding the pre-generated encoded image frame to the encoded video stream and setting the encoded masked image frame as a reference to the pre-generated encoded image frame.
A non-transitory computer-readable storage medium having stored thereon instructions for implementing a method, when executed on a device having processing capabilities, the method for encoding an image frame in a video stream, such that a decoded version of the encoded image frame is provided with a first masked region, the method comprising;
- receiving a pre-generated encoded image frame having a same resolution as the image frame, the pre-generated encoded image frame comprising motion vectors but not any residual data, the motion vectors being configured to expand a second masked region, defined by a second mask, into the first masked region, the second masked region having an edge aligned to a set of coding blocks of the pre-generated encoded image frame, such that each coding block is not part of the second masked region, and wherein the first masked region has an edge that divides each coding block;
- applying the second mask to the image frame to provide a masked image frame;
- encoding the masked image frame, setting the encoded masked image frame as a no-display frame and adding the encoded masked image frame to an encoded video stream;
- and
- adding the pre-generated encoded image frame to the encoded video stream and setting the encoded masked image frame as a reference to the pre-generated encoded image frame.
A device for encoding an image frame in a video stream, such that a decoded version of the encoded the image frame is provided with a first masked region, the device configured for:
- receiving a pre-generated encoded image frame having a same resolution as the image frame, the pre-generated encoded image frame comprising motion vectors but not any residual data, the motion vectors being configured to expand a second masked region, defined by a second mask, into the first masked region, the second masked region having an edge aligned to a set of coding blocks of the pre-generated encoded image frame, such that each coding block is not part of the second masked region, and wherein the first masked region has an edge that divides each coding block;
- applying the second mask to the image frame to provide a masked image frame;
- encoding the masked image frame, setting the encoded masked image frame as a no-display frame and adding the encoded masked image frame to an encoded video stream;
- and
- adding the pre-generated encoded image frame to the encoded video stream and setting the encoded masked image frame as a reference to the pre-generated encoded image frame.
Dependencies are inferred from the claim text.