Method and device for transmitting block division information in image codec for security camera
The present invention relates to a method and device for transmitting block division information for efficient image coding in a video compression technique for a high-definition security camera. To this end, the present invention obtains block division information from a bitstream, determines the division form of an image by computing and predicting omitted information if there is omitted information in the obtained information, and performs video decoding in the unit of a divided block.
1. A method for decoding a video signal, with a decoding apparatus, comprising:
determining, with the decoding apparatus, a current block by dividing a coding block,
wherein the division of the coding block is performed recursively based on both a quad-division and a binary-division,
wherein the quad-division is performed without extracting division information for the quad-division from a bitstream when a pre-determined condition is satisfied,
wherein the binary-division is performed by using a plurality of flags extracted from the bitstream,
wherein the plurality of flags include a first flag for indicating whether to use a binary-division type and a second flag for specifying a division direction of the binary-division, and
wherein the second flag equal to a first value indicates a vertical direction while the second flag equal to a second value indicates a horizontal direction;
obtaining, with the decoding apparatus, a residual signal by performing an inverse-quantization and an inverse-transform on quantized coefficients of the current block;
generating, with the decoding apparatus, a prediction signal of the current block by performing an intra prediction based on reconstructed pixel values of a neighboring block; and
reconstructing, with the decoding apparatus, the current block using the residual signal and the prediction signal.
2. The method of claim 1 , wherein the division information includes at least one of a flag indicating whether to divide the coding block, a shape of a divided block, a size of the divided block, a minimum division size, a maximum division size or a maximum number of the division times.
3. The method of claim 1 , further comprising:
dividing the current block obtained based on the binary-division into a plurality of sub-regions,
wherein at least one of the sub-regions has triangle shape.
4. The method of claim 1 , wherein the inverse-quantization, the inverse-transform and the intra prediction are performed in units of blocks having a same size.
5. A non-transitory computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processor to:
determining a current block by dividing a coding block,
wherein the division of the coding block is performed recursively based on both a quad-division and a binary-division,
wherein the quad-division is performed without extracting division information for the quad-division from a bitstream when a pre-determined condition is satisfied,
wherein the binary-division is performed by using a plurality of flags extracted from the bitstream,
wherein the plurality of flags include a first flag for indicating whether to use a binary-division type and a second flag for specifying a division direction of the binary-division, and
wherein the second flag equal to a first value indicates a vertical direction while the second flag equal to a second value indicates a horizontal direction;
obtaining a residual signal by performing an inverse-quantization and an inverse-transform on quantized coefficients of the current block;
generating a prediction signal of the current block by performing an intra prediction based on reconstructed pixel values of a neighboring block; and
reconstructing the current block using the residual signal and the prediction signal.