Abstract:
An decoding method is disclosed, including: parsing a bitstream to obtain a first flag, wherein the first flag specifies whether a current coding block is required to be partitioned; when the first flag specifies that the current coding block is required to be partitioned, parsing the bitstream to obtain a second flag, wherein the second flag specifies whether the current coding blocks is partitioned in a horizontal direction or a vertical direction; partitioning the current coding block into four first rectangular subblocks in the horizontal direction or four second rectangular subblocks in the vertical direction; and reconstructing the current coding block based on the four first rectangular subblocks or the four second rectangular subblocks.
Abstract:
This application provides a video encoding/decoding method, a corresponding video encoding/decoding apparatus. The video encoding method includes: obtaining a to-be-encoded video; encoding the to-be-encoded video to obtain a first bitstream and a second bitstream, where the first bitstream is a bitstream obtained by performing frame skipping and encoding on the to-be-encoded video, the second bitstream is a bitstream obtained by encoding video frames in a second frame sequence by using video frames in a first frame sequence as key frames, the first frame sequence includes video frames obtained by downsampling video frames in the to-be-encoded video that are encoded into the first bitstream, and the second frame sequence includes video frames obtained by downsampling video frames in the to-be-encoded video that are not encoded into the first bitstream; and outputting the first bitstream and the second bitstream. The technical solutions provided in this application help improve video image prediction accuracy.
Abstract:
A photographing method is provided. In the method, based on a video call between terminals at two places, each terminal previews, in a preset template, real-time preview video streams of the two parties. The two parties may separately adjust a picture of a local preview stream, and obtain a respective high-definition image through snapping when a preview group photo image is satisfying. Through file backhaul, one terminal can generate a high-resolution remote group photo based on snapped high-definition images of the terminals, a picture adjustment parameter during snapping, and the preset template.
Abstract:
A method for pixel prediction is provided. The method includes: obtaining an average pixel value of reference pixel points on a long side of a current block if the current block is rectangular and coded or decoded adjacent blocks of the current block are all available, where the reference pixel points are all located at boundaries of the adjacent blocks near the current block; and obtaining a prediction pixel value of the current block according to the average pixel value of the reference pixel points on the long side. According to the pixel prediction method and apparatus provided in the embodiments of the present invention, a prediction pixel is obtained from corresponding adjacent blocks according to a shape of the current block, meeting a pixel distribution rule.
Abstract:
An embodiment of this application discloses an image capturing apparatus, including a rolling shutter image sensor, a wheel, and a driving apparatus. The wheel is located on a photosensitive side of the rolling shutter image sensor, and a light shielding part for blocking light and a light transmission part for transmitting light are disposed on the wheel. When the driving apparatus drives the wheel to rotate, the light transmission part on the wheel periodically transmits light, so that a plurality of rows of photosensitive units in the rolling shutter image sensor receive the transmitted light, and convert a light signal into an electric signal through optical-to-electrical conversion. In addition, the rolling shutter image sensor is combined with the wheel, to reduce costs of the image capturing apparatus.
Abstract:
An optical path switching method is applied to a surveillance module. The method includes: determining a target magnification; and (i) when the target magnification is less than or equal to a maximum magnification of a camera, setting a magnification of the camera to the target magnification, determining that a reflection element is at a first location or in a first working state, and performing image capture by using the camera alone; or (ii) when the target magnification is greater than a maximum magnification of the camera, setting a magnification of the camera to a first magnification, determining that the reflection element is at a second location or in a second working state, and performing image capture by using both the camera and a teleconverter, where a product of the first magnification and a magnification of the teleconverter is the target magnification. The method increases a surveillance distance while reducing costs.
Abstract:
An encoding method with multiple image block division manners is disclosed, including: determining a division manner and a division direction of an image block; dividing the image block to obtain image subblocks sequentially arranged horizontally or vertically; determining whether the image subblocks need subdivision, and if subdivision is not needed, predicting the encoding object in the frame according to the image subblocks, to obtain residual data; performing transformation, quantization, and entropy encoding for the residual data so as to obtain coded residual data; and writing the division manner of the image block, the division direction of the image block, an identifier indicating whether the image subblocks need subdivision, and the coded residual data into a bitstream. By applying the encoding method, better prediction accuracy can be achieved when the image block presents a small change of pixel value in the horizontal or vertical direction.
Abstract:
This application discloses a photographing apparatus and method, and relates to the field of image processing. When a high-quality image in a low illumination environment is obtained, costs are reduced, a size is reduced, and product compatibility is improved. The method includes: controlling a light filtering unit to: transparently transmit visible light in incident light and block infrared light in the incident light in a first image exposure interval, transparently transmit the infrared light in the incident light in a first time period of a second image exposure interval, and block the incident light in a second time period of the second image exposure interval; performing, by using an image sensor to obtain a first image, and performing photoelectric imaging on a light ray to obtain a second image; and synthesizing the first image and the second image, to generate a first target image.
Abstract:
An encoding method with multiple image block division manners is disclosed, including: determining a division manner and a division direction of an image block; dividing the image block to obtain image subblocks sequentially arranged horizontally or vertically; determining whether the image subblocks need subdivision, and if subdivision is not needed, predicting the encoding object in the frame according to the image subblocks, to obtain residual data; performing transformation, quantization, and entropy encoding for the residual data so as to obtain coded residual data; and writing the division manner of the image block, the division direction of the image block, an identifier indicating whether the image subblocks need subdivision, and the coded residual data into a bitstream. By applying the encoding method, better prediction accuracy can be achieved when the image block presents a small change of pixel value in the horizontal or vertical direction.
Abstract:
The present disclosure provides a method for encoding an intra-frame prediction mode, including: obtaining an intra-frame prediction mode of a current intra-frame encoding block from a preset prediction mode set; obtaining reference prediction modes of the current intra-frame encoding block, where the reference prediction modes are intra-frame prediction modes of available adjacent blocks of the current intra-frame encoding block or prediction modes in a preset backup reference mode set; writing a first flag bit into a code stream according to the reference prediction modes and the intra-frame prediction mode; and, when the intra-frame prediction mode of the encoding block is different from all the reference prediction modes, obtaining a prediction mode encoding value according to a size relationship between the value of the intra-frame prediction mode and values of the reference prediction modes, and encoding the prediction mode encoding value.