Data processing method and device, equipment and computer readable storage medium
Patent Information
- Application Number
- CN202111552294.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2041-12-17
AI Technical Summary
[0004]本申请实施例提供一种与现有技术不同的实现方案,以解决相关技术中,当需将多个不同大小的图像传输至另一设备展示时,对图像数据的处理过程较浪费系统资源的技术问题
[0026]本申请通过在检测到针对将待展示图像展示于目标设备的展示指令时,获取所述待展示图像的图像数据;将所述待展示图像的图像数据复制于共享图像区域中,得到目标图像,所述共享图像区域的大小不小于所述待展示图像的大小;对所述目标图像进行编码,得到所述待展示图像对应的编码结果;将所述编码结果发送至所述目标设备,使所述目标设备基于所述编码结果展示所述待展示图像的方案,可设置共享图像区域的分辨率不小于多个待展示图像的分辨率,根据共享图像区域的分辨率对编码器进行创建,在对不同大小的待展示图像的图像数据进行编码时,可仅对编码器的编码参数进行调整,即可实现对待展示图像的图像数据的编码过程,减小了对大小不同的多个待展示图像分别编码时,编码器的创建次数,无需针对大小不同的待展示图像分别重新创建线程,降低了线程管理的复杂度,节省了系统资源的消耗。
Smart Images

Figure CN116266072B_ABST
Abstract
Claims
1. A data processing method, characterized in that, include: When a display instruction is detected to display an image to be displayed on a target device, the image data of the image to be displayed is acquired; The image data of the image to be displayed is copied into a shared image area to obtain the target image. The size of the shared image area is not smaller than the size of the image to be displayed. Encoding the target image to obtain the encoding result corresponding to the image to be displayed includes: acquiring image parameter information of the image to be displayed; encoding the target image based on the image parameter information of the image to be displayed to obtain the encoding result corresponding to the image to be displayed; the image parameter information includes target resolution information; encoding the target image based on the image parameter information of the image to be displayed to obtain the encoding result corresponding to the image to be displayed includes: determining whether the target resolution information matches the encoder's encoding configuration information, the encoding configuration information including encoding height information and encoding width information; if not, adjusting the encoding configuration information according to the target resolution information to obtain adjusted encoding configuration information; encoding the target image according to the adjusted encoding configuration information to obtain the encoding result corresponding to the image to be displayed. The encoding result is sent to the target device, so that the target device can display the image to be displayed based on the encoding result.
2. The method according to claim 1, characterized in that, The image data of the image to be displayed is copied to the shared image area to obtain the target image, including: Obtain information about the target region to be copied for the image to be displayed; The image data within the region corresponding to the target region information in the image to be displayed is copied as the image data of the image to be displayed into the shared image region to obtain the target image.
3. The method according to claim 1, characterized in that, The method further includes: Retrieve the user's creation instructions; The shared image region is created according to the creation information corresponding to the creation instruction. The creation information includes shared height information and shared width information used to determine the shared resolution information of the shared image region.
4. The method according to claim 1, characterized in that, The method further includes: Retrieve historical display image information within a preset time period; Based on the historical image information, determine the image with the highest resolution among the historical images; The shared image region is created based on the resolution of the image with the highest resolution.
5. The method according to claim 1, characterized in that, The method further includes: Obtain the shared resolution information of the shared image region; The initial encoding configuration information of the encoder is determined based on the shared resolution information; The encoder is created based on the initial encoding configuration information.
6. A data processing method, characterized in that, include: Receive the encoded results sent by the data processing equipment; The encoded result is decoded to obtain the decoded result; Display the corresponding content based on the decoding result; The encoding result is obtained by the data processing device when it detects a display instruction to display an image to be displayed on a target device, acquiring the image data of the image to be displayed; copying the image data of the image to be displayed into a shared image area to obtain a target image, wherein the size of the shared image area is not less than the size of the image to be displayed; and encoding the target image to obtain the encoding result, which includes: acquiring image parameter information of the image to be displayed; encoding the target image based on the image parameter information of the image to be displayed to obtain the encoding result corresponding to the image to be displayed; wherein the image parameter information includes target resolution information, and encoding the target image based on the image parameter information of the image to be displayed to obtain the encoding result corresponding to the image to be displayed includes: determining whether the target resolution information matches the encoder's encoding configuration information, wherein the encoding configuration information includes encoding height information and encoding width information; if not, adjusting the encoding configuration information according to the target resolution information to obtain adjusted encoding configuration information; and encoding the target image according to the adjusted encoding configuration information to obtain the encoding result corresponding to the image to be displayed.
7. A data processing apparatus, characterized in that, include: The acquisition module is used to acquire image data of the image to be displayed when a display instruction for displaying the image to be displayed on the target device is detected; The copying module is used to copy the image data of the image to be displayed to a shared image area to obtain the target image, wherein the size of the shared image area is not smaller than the size of the image to be displayed. An encoding module is used to encode the target image to obtain an encoding result corresponding to the image to be displayed, including: acquiring image parameter information of the image to be displayed; encoding the target image based on the image parameter information of the image to be displayed to obtain an encoding result corresponding to the image to be displayed; the image parameter information includes target resolution information; encoding the target image based on the image parameter information of the image to be displayed to obtain an encoding result corresponding to the image to be displayed includes: determining whether the target resolution information matches the encoding configuration information of the encoder, the encoding configuration information including encoding height information and encoding width information; if not, adjusting the encoding configuration information according to the target resolution information to obtain adjusted encoding configuration information; encoding the target image according to the adjusted encoding configuration information to obtain an encoding result corresponding to the image to be displayed. The sending module is used to send the encoding result to the target device, so that the target device can display the image to be displayed based on the encoding result.
8. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to perform the method of any one of claims 1-5 or 6 by executing the executable instructions.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-5 or claim 6.
Citation Information
Patent Citations
Screen sharing method, device and system, storage medium and computer equipment
CN113596571A