Method and device for transmitting image
AssigneeGoertek Technology Co., Ltd.
InventorsChingshun Lin, Beichen Nong
Life of this patent
Estimating the term…
Abstract
Provided are a method and device for transmitting an image. The method includes: adjusting an image compression ratio based on a current network transmission condition; performing compression processing on an image to be transmitted according to the adjusted image compression ratio to obtain a compressed image; and sending the compressed image to a viewing device side for the viewing device side to play the compressed image. The present disclosure ensures the fluency of image playback on the viewing device side, and improves the viewing experience of a user.
Claims6
A method for transmitting image, comprising:
- adjusting an image compression ratio based on a current network transmission condition;
- performing compression processing on an image to be transmitted according to the adjusted image compression ratio to obtain a compressed image;
- and
- sending the compressed image to a viewing device side for the viewing device side to play the compressed image,
- wherein the adjusting an image compression ratio based on a current network transmission condition comprises:
- determining a total number of a sent packet and a total number of a lost packet within a preset time;
- calculating a ratio of the total number of the sent packet and the total number of lost packet to obtain a packet loss ratio;
- and
- adjusting the image compression ratio based on the packet loss ratio;
- wherein the performing compression processing on an image to be transmitted according to the adjusted image compression ratio to obtain a compressed image comprises:
- determining whether the adjusted image compression ratio is greater than a preset image compression ratio;
- if yes, performing compression processing on the image to be transmitted according to the preset image compression ratio to obtain a compressed image;
- if not, performing compression processing on the image to be transmitted according to the adjusted image compression ratio to obtain a compressed image.
A device for transmitting image, comprising a memory and a processing component, wherein the memory is for storing computer-readable program code, and the processing component is for executing the computer-readable program code to implement:
- adjusting an image compression ratio based on a current network transmission condition;
- performing compression processing on an image to be transmitted according to the adjusted image compression ratio to obtain a compressed image;
- and sending the compressed image to a viewing device side for the viewing device side to play the compressed image,
- wherein the adjusting an image compression ratio based on a current network transmission condition specifically is:
- determining a total number of a sent packet and a total number of a lost packet within a preset time;
- calculating a ratio of the total number of the sent packet and the total number of lost packet to obtain a packet loss ratio;
- and adjusting the image compression ratio based on the packet loss ratio;
- wherein the performing compression processing on an image to be transmitted according to the adjusted image compression ratio to obtain a compressed image specifically is:
- determining whether the adjusted image compression ratio is greater than a preset image compression ratio;
- if yes, performing compression processing on the image to be transmitted according to the preset image compression ratio to obtain a compressed image;
- if not, performing compression processing on the image to be transmitted according to the adjusted image compression ratio to obtain a compressed image.
Dependencies are inferred from the claim text.