WO2008019606A1 - A method and apparatus for adjusting the quality of video communication of instant messaging - Google Patents

A method and apparatus for adjusting the quality of video communication of instant messaging Download PDF

Info

Publication number
WO2008019606A1
WO2008019606A1 PCT/CN2007/070353 CN2007070353W WO2008019606A1 WO 2008019606 A1 WO2008019606 A1 WO 2008019606A1 CN 2007070353 W CN2007070353 W CN 2007070353W WO 2008019606 A1 WO2008019606 A1 WO 2008019606A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
cpu
information
terminal
level
Prior art date
Application number
PCT/CN2007/070353
Other languages
French (fr)
Chinese (zh)
Inventor
Jing Lv
Original Assignee
Tencent Technology (Shenzhen) Company Limited
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2008019606A1 publication Critical patent/WO2008019606A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/156Availability of hardware or computational resources, e.g. encoding based on power-saving criteria

Definitions

  • the present invention relates to data processing technologies in the field of computers and communications, and in particular, to an instant messaging (IM) video quality adjustment method and apparatus.
  • IM instant messaging
  • IM video communication is a popular IM application.
  • the existing IM video communication basically does not consider the impact of terminal performance on video communication.
  • CPU central processing unit
  • For a highly configured terminal when it processes IM video communication data, it does not fully reflect the data processing capability of the CPU, so that the user does not get a good video experience, and also causes waste of resources. Summary of the invention
  • the embodiment of the invention provides a method for adjusting the quality of instant communication video to rationally utilize resources.
  • the embodiment of the invention also provides an instant communication video quality adjustment device for rationally utilizing resources.
  • An instant communication video quality adjustment method provided by an embodiment of the present invention includes: acquiring instantaneous performance communication terminal CPU performance index information, and adjusting an instant communication video quality according to the CPU performance indicator information.
  • An instant communication video quality adjustment apparatus provided by the embodiment of the present invention includes: a performance index acquisition unit, configured to acquire CPU performance index information of the terminal, and send the obtained CPU performance indicator information to a video quality adjustment unit;
  • the video quality adjustment unit is configured to adjust the instantaneous communication video quality of the terminal according to the received CPU performance indicator information.
  • FIG. 1 is a schematic diagram of a process for determining a video level according to a terminal capability according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a video quality adjustment apparatus according to an embodiment of the present invention. Mode for carrying out the invention
  • the video level is adjusted by acquiring information about the performance index of the terminal CPU, thereby adjusting the video quality.
  • the main factors affecting the CPU performance of the terminal include: CPU frequency information, cache (Cache) information, multimedia instruction set supported by the CPU, and other video level auxiliary information. Adjust the video level according to the information, and then determine the highest frame rate of the local encoding according to the obtained video level, and use the highest frame rate to encode the data of the instant communication to obtain the highest limit of the video encoding of the terminal, so that the CPU can Better video data processing to make rational use of resources and avoid waste of resources.
  • FIG. 1 is a schematic flowchart of determining a video level according to a terminal capability according to an embodiment of the present invention.
  • the terminal capability information is obtained. This process is a self-test of the performance indicators of the local CPU by the terminal.
  • the terminal level is used to determine the video level. The method includes the following steps:
  • Step 101 Obtain the CPU frequency information, and initially obtain the video level.
  • static detection It is first determined whether static detection can be performed before acquiring the main frequency information. Whether static detection is possible is determined by the operating system of this machine. For example: Windows 98 and previous operating systems do not support static detection, but the operating system after Windows 98 supports static detection. If the operating system supports static detection, the CPU's frequency information is written in the registry. In the embodiment of the present invention, the frequency information of the CPU is read from the registry. The CPU's frequency information usually has a fixed location in the registry. The application interface provided by Windows can directly open the registry and determine whether there is relevant information in this location. If there is information, it supports static detection. If no information exists, static detection is not supported.
  • the CPU's main frequency information is read from the registry.
  • dynamic detection is performed.
  • the built-in CPU instruction can be used to obtain the CPU's main frequency information.
  • the CPU's main frequency directly reflects the data processing capability of the CPU. Therefore, after acquiring the main frequency information, the video level of the local machine can be divided according to the main frequency information.
  • the division method is as follows: First, the video level is divided into n levels, respectively, S1 Level, S2 level...Sn level, then divide the range of the main frequency value into n segments in descending order, each segment contains several possible main frequency values. Corresponding to the n-level of the video level and the n-segment of the main frequency division, the highest level of the video level corresponds to the main frequency band with the highest frequency value, and so on, and then the detected main frequency of the CPU is used to match the corresponding main frequency band. According to the main frequency band, the corresponding video level is the video level initially obtained by the local machine.
  • Step 102 Detect the Cache information and adjust the video level.
  • LI Cache size is an important indicator of CPU processing power. For example: Detect LI Cache and L2 Cache separately.
  • LI Cache is a cache that is encapsulated inside the CPU, access speed and CPU
  • the main frequency is the same, and its capacity has a greater impact on the performance of the CPU. The larger the capacity, the higher the performance of the CPU.
  • L2 Cache is a cache integrated outside the CPU.
  • the access speed is the same as the CPU frequency or the motherboard frequency.
  • the main function is to store the backup data and instructions. Its capacity has a great impact on the performance of the CPU, because the video The amount of data that needs to be processed is large. If the L2 Cache has a large capacity, the number of data access exchanges can be reduced, and the video processing speed can be optimized.
  • the capacity of the LI Cache and the L2 Cache is detected by a built-in CPU instruction, and the video level of the local device is adjusted according to their capacity.
  • L2 Cache Take L2 Cache as an example to illustrate the adjustment method as follows:
  • the L2 Cache is divided into n levels according to capacity. Each level corresponds to a video level correction value (this correction range is from -X to +Y, X and Y are positive numbers), and then the detected L2 Cache capacity is used. Match the corresponding level and read the correction value to adjust the video level.
  • the size of the LI Cache is the same as the video level adjustment method and L2 Cache. Therefore, the larger the capacity of LI Cache and L2 Cache, the higher the video level of this unit.
  • Cache is only used as a post-fix. If the Cache failure is detected by the built-in CPU detection command, the level determined by the original frequency is taken as the standard.
  • Step 103 Detect other video level auxiliary information and adjust the video level.
  • Other video level auxiliary information mainly includes:
  • MMX, SSE, SSE2 and 3DNow! are all extended instruction sets of the CPU. Supporting the instruction set is an important basis for reflecting the multimedia processing capability of the terminal.
  • the built-in CPU command detects whether the terminal supports the multimedia instruction set. If it is supported, the video level is higher. This adjustment method is consistent with the above-mentioned dual-core adjustment method.
  • Hyper-Threading Technology can reduce CPU idle time and improve CPU operating efficiency.
  • the built-in CPU command detects whether the terminal supports Hyper-Threading Technology.
  • the video level will be improved. This adjustment method is consistent with the above-mentioned dual-core adjustment method.
  • Step 104 After obtaining the local video level, determine the highest frame rate of the local encoding, and encode the video data of the instant communication by the highest frame rate, as follows:
  • the terminal frame rate is divided into n levels, and each level of frame rate corresponds to a video level, which is from large to small - corresponding, and then the highest frame rate is obtained by adjusting the final obtained video level corresponding to the corresponding frame rate level. , in turn, to obtain the highest limit of terminal video coding.
  • the video quality adjustment method of the embodiment of the present invention can greatly reduce the resource occupancy rate of the terminal with low configuration, does not affect other work of the user, and can also improve the success rate of connection establishment; and for the highly configured terminal, The video level is improved accordingly, which enables users to get a better video experience and avoid waste of resources.
  • the present invention also provides an instant communication video quality adjustment apparatus having the above functions, which is applied to a terminal for performing instant communication.
  • the video quality adjustment device mainly includes two parts: a performance index acquisition unit 21 and a video quality adjustment unit 22.
  • the performance indicator obtaining unit 21 is configured to acquire CPU performance indicator information of the terminal, and obtain the The CPU performance indicator information is sent to the video quality adjustment unit.
  • the video quality adjustment unit 22 is configured to adjust the video quality of the terminal according to the received CPU performance indicator information.
  • the video quality adjustment unit 22 may further include a video level adjustment module 31 and a video quality adjustment module 32.
  • the video level adjustment module 31 is configured to adjust a video level of the terminal according to the CPU performance indicator information, and output the video level to the video quality adjustment module 32.
  • the video quality adjustment module 32 is configured to determine the highest code according to the video level. Frame rate, and output the highest frame rate to the terminal.
  • the method for obtaining the performance index information of the terminal CPU and adjusting the quality of the instant communication video according to the information can better utilize resources, avoid waste of resources, and improve the success rate of connection establishment. To improve the user's video experience. It is within the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Abstract

A method for adjusting the quality of video communication of instant messaging. It includes: getting main frequency of CPU and dividing the frequency of the present terminal into several video levels according to the get main frequency, then determining the elementary frequency and adjusting the video levels through cache and secondary information. The highest frame rate of the terminal is determined through the final video level to make the video quality up to the best in the range of processing ability of CPU, then video image is organized into code streams to transmitted to receiver. Further, the corresponding apparatus is disclosed.

Description

一种即时通信视频质量调节方法及装置 技术领域  Instant communication video quality adjustment method and device
本发明涉及计算机及通信领域的数据处理技术, 尤其涉及一种即时 通信(Instant Messaging, IM )视频质量调节方法及装置。 发明背景  The present invention relates to data processing technologies in the field of computers and communications, and in particular, to an instant messaging (IM) video quality adjustment method and apparatus. Background of the invention
随着互联网的发展与普及, IM逐渐成为互联网最主要的应用之一, 越来越多的互联网用户将即时通信作为一种重要的通信工具。  With the development and popularization of the Internet, IM has gradually become one of the most important applications of the Internet. More and more Internet users regard instant messaging as an important communication tool.
IM视频通信是一种广受欢迎的 IM应用。 现有的 IM视频通信基本 上都不考虑终端性能对视频通信的影响。 对于低配置的终端而言, 由于 其中央处理单元( Centre Processing Unit, CPU )数据处理能力较差, 当 其处理 IM视频通信数据时, CPU使用率高, 从而影响用户其他工作, 并且也使得连接成功率下降; 对于高配置的终端而言, 当其处理 IM视 频通信数据时,并没有充分体现 CPU的数据处理能力,使得用户得不到 较好的视频体验, 并且也造成了资源浪费。 发明内容  IM video communication is a popular IM application. The existing IM video communication basically does not consider the impact of terminal performance on video communication. For a low-configuration terminal, because its central processing unit (CPU) has poor data processing capability, when it processes IM video communication data, the CPU usage is high, which affects other work of the user, and also makes the connection The success rate is degraded. For a highly configured terminal, when it processes IM video communication data, it does not fully reflect the data processing capability of the CPU, so that the user does not get a good video experience, and also causes waste of resources. Summary of the invention
本发明实施例提出一种即时通信视频质量调节方法, 以合理地利用 资源。  The embodiment of the invention provides a method for adjusting the quality of instant communication video to rationally utilize resources.
本发明实施例还提出一种即时通信视频质量调节装置, 以合理地利 用资源。  The embodiment of the invention also provides an instant communication video quality adjustment device for rationally utilizing resources.
本发明实施例提供的一种即时通信视频质量调节方法包括: 获取即时通信终端 CPU性能指标信息, 根据所述 CPU性能指标信 息对即时通信视频质量进行调节。 本发明实施例提供的一种即时通信视频质量调节装置包括: 性能指标获取单元, 用于获取终端的 CPU性能指标信息, 并将获取 的 CPU性能指标信息发送给视频质量调节单元; An instant communication video quality adjustment method provided by an embodiment of the present invention includes: acquiring instantaneous performance communication terminal CPU performance index information, and adjusting an instant communication video quality according to the CPU performance indicator information. An instant communication video quality adjustment apparatus provided by the embodiment of the present invention includes: a performance index acquisition unit, configured to acquire CPU performance index information of the terminal, and send the obtained CPU performance indicator information to a video quality adjustment unit;
视频质量调节单元,用于根据收到的 CPU性能指标信息调节终端的 即时通信视频质量。  The video quality adjustment unit is configured to adjust the instantaneous communication video quality of the terminal according to the received CPU performance indicator information.
本发明实施例通过获取终端 CPU性能指标信息,并根据此信息对即 时通信视频质量进行调节的方法, 可以较好的利用资源, 避免造成资源 浪费。 附图简要说明  In the embodiment of the present invention, by obtaining the performance information of the terminal CPU and adjusting the quality of the instant communication video according to the information, resources can be better utilized to avoid waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例根据终端能力确定视频级别流程示意图; 图 2为本发明实施例的视频质量调节装置示意图。 实施本发明的方式  FIG. 1 is a schematic diagram of a process for determining a video level according to a terminal capability according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a video quality adjustment apparatus according to an embodiment of the present invention. Mode for carrying out the invention
本发明实施例通过对终端 CPU性能指标的信息获取,来对视频级别 进行调节, 进而调节视频质量。 影响终端 CPU性能指标的主要包括: CPU主频信息、 緩存(Cache )信息、 CPU所支持的多媒体指令集以及 其他视频级别辅助信息。 根据这些信息对视频级别进行调节, 然后根据 最后得到的视频级别确定本机编码的最高帧率, 利用该最高帧率对即时 通信的数据进行编码,来获取终端视频编码的最高限制,使 CPU能够更 好地进行视频数据处理,从而合理地利用资源,并且能够避免资源浪费。  In the embodiment of the present invention, the video level is adjusted by acquiring information about the performance index of the terminal CPU, thereby adjusting the video quality. The main factors affecting the CPU performance of the terminal include: CPU frequency information, cache (Cache) information, multimedia instruction set supported by the CPU, and other video level auxiliary information. Adjust the video level according to the information, and then determine the highest frame rate of the local encoding according to the obtained video level, and use the highest frame rate to encode the data of the instant communication to obtain the highest limit of the video encoding of the terminal, so that the CPU can Better video data processing to make rational use of resources and avoid waste of resources.
下面结合说明书附图, 对本发明实施例的方法作进一步详细描述。 图 1为本发明实施例根据终端能力确定视频级别的流程示意图。 如图 1所示, 当终端向对端发送视频命令或终端接受来自对端的视 频命令时, 或在即时通信的过程中由终端周期发起视频命令时, 就立刻 进行终端能力信息获取, 此过程是终端对本地 CPU 的性能指标进行自 检。 通过终端能力来确定视频级别的, 该方法包括以下步骤: The method of the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. FIG. 1 is a schematic flowchart of determining a video level according to a terminal capability according to an embodiment of the present invention. As shown in FIG. 1, when the terminal sends a video command to the opposite end or the terminal accepts the video command from the opposite end, or when the video command is initiated by the terminal period in the process of instant communication, immediately The terminal capability information is obtained. This process is a self-test of the performance indicators of the local CPU by the terminal. The terminal level is used to determine the video level. The method includes the following steps:
步骤 101: 获得 CPU主频信息, 初步得到视频级别。  Step 101: Obtain the CPU frequency information, and initially obtain the video level.
在获取主频信息前首先判定能否进行静态检测。 能否进行静态检测 是由本机的操作系统决定的。 比如: Windows98及以前的操作系统不支 持静态检测, 但是 Windows98之后的操作系统就支持静态检测。 如果操 作系统支持静态检测,那么在注册表中就写入了 CPU的主频信息。在本 发明实施例中, 从注册表中读取 CPU的主频信息。 CPU的主频信息在 注册表中通常有固定的位置,通过 Windows提供的应用程序接口可以直 接打开注册表, 然后判定此位置是否有相关的信息存在。 如果有信息存 在, 即为支持静态检测, 如果没有信息存在即为不支持静态检测。  It is first determined whether static detection can be performed before acquiring the main frequency information. Whether static detection is possible is determined by the operating system of this machine. For example: Windows 98 and previous operating systems do not support static detection, but the operating system after Windows 98 supports static detection. If the operating system supports static detection, the CPU's frequency information is written in the registry. In the embodiment of the present invention, the frequency information of the CPU is read from the registry. The CPU's frequency information usually has a fixed location in the registry. The application interface provided by Windows can directly open the registry and determine whether there is relevant information in this location. If there is information, it supports static detection. If no information exists, static detection is not supported.
当能够进行静态检测时, 就从注册表中读取 CPU的主频信息; 当不 能够进行静态检测时, 即进行动态检测,可以使用内置的 CPU指令获取 CPU的主频信息。  When static detection is enabled, the CPU's main frequency information is read from the registry. When static detection is not possible, dynamic detection is performed. The built-in CPU instruction can be used to obtain the CPU's main frequency information.
CPU的主频直接反映了 CPU的数据处理能力, 因此获取了主频信 息后, 可以根据主频信息对本机的视频级别进行划分, 划分方法如下: 首先将视频级别划分为 n级, 分别为 S1级, S2级...Sn级, 再将主 频值的范围按照从大到小的顺序划分为 n段, 每一段包含若干个可能的 主频值。 把视频级别的 n级与主频划分的 n段——对应起来, 视频级别 的最高级对应主频值最高的主频段, 以此类推,然后用检测到的 CPU主 频去匹配对应的主频段, 根据主频段得到对应的视频级别就是本机初步 得到的视频级别。  The CPU's main frequency directly reflects the data processing capability of the CPU. Therefore, after acquiring the main frequency information, the video level of the local machine can be divided according to the main frequency information. The division method is as follows: First, the video level is divided into n levels, respectively, S1 Level, S2 level...Sn level, then divide the range of the main frequency value into n segments in descending order, each segment contains several possible main frequency values. Corresponding to the n-level of the video level and the n-segment of the main frequency division, the highest level of the video level corresponds to the main frequency band with the highest frequency value, and so on, and then the detected main frequency of the CPU is used to match the corresponding main frequency band. According to the main frequency band, the corresponding video level is the video level initially obtained by the local machine.
步骤 102: 检测 Cache信息, 对视频级别进行调节。  Step 102: Detect the Cache information and adjust the video level.
Cache大小是 CPU处理能力的重要指标。 例如: 分别检测 LI Cache 和 L2 Cache。 LI Cache是封装于 CPU内部的高速緩存,存取速度与 CPU 主频相同, 它的容量对 CPU的性能有较大的影响, 容量越大, CPU的 性能也会相对提高。 L2 Cache是集成于 CPU外部的高速緩存, 存取速 度与 CPU主频或主板频率相同, 主要功能是作为后备数据和指令的存 储,它的容量大小对 CPU的性能有较大的影响, 因为视频需要处理的数 据量较大, 如果 L2 Cache容量较大的话就可以减少数据存取交换的次 数, 优化视频处理速度。 Cache size is an important indicator of CPU processing power. For example: Detect LI Cache and L2 Cache separately. LI Cache is a cache that is encapsulated inside the CPU, access speed and CPU The main frequency is the same, and its capacity has a greater impact on the performance of the CPU. The larger the capacity, the higher the performance of the CPU. L2 Cache is a cache integrated outside the CPU. The access speed is the same as the CPU frequency or the motherboard frequency. The main function is to store the backup data and instructions. Its capacity has a great impact on the performance of the CPU, because the video The amount of data that needs to be processed is large. If the L2 Cache has a large capacity, the number of data access exchanges can be reduced, and the video processing speed can be optimized.
在本发明实施例中,通过内置的 CPU指令检测 LI Cache和 L2 Cache 的容量大小, 根据它们的容量大小对本机的视频级别进行调节。 以 L2 Cache为例说明调节方法如下:  In the embodiment of the present invention, the capacity of the LI Cache and the L2 Cache is detected by a built-in CPU instruction, and the video level of the local device is adjusted according to their capacity. Take L2 Cache as an example to illustrate the adjustment method as follows:
首先将 L2 Cache按照容量划分为 n级,每一级别对应一个视频级别 修正值(这个修正值的范围从 -X到 + Y , X , Y为正数), 然后用检测到 的 L2 Cache容量去匹配相应的级别, 读取修正值调整视频级别。  First, the L2 Cache is divided into n levels according to capacity. Each level corresponds to a video level correction value (this correction range is from -X to +Y, X and Y are positive numbers), and then the detected L2 Cache capacity is used. Match the corresponding level and read the correction value to adjust the video level.
LI Cache的容量大小对视频级别调节方法与 L2 Cache—致。 所以 LI Cache和 L2 Cache的容量越大, 本机的视频级别就越高。  The size of the LI Cache is the same as the video level adjustment method and L2 Cache. Therefore, the larger the capacity of LI Cache and L2 Cache, the higher the video level of this unit.
但是对于有些 CPU的检测结果可能不准确的情况下(典型的是笔记 本用 CPU ), Cache只作为后期修正。 如果通过内置的 CPU检测指令检 测 Cache失败, 则以原来主频所定级别为准。  However, for some CPUs whose detection results may be inaccurate (typically the CPU for notebooks), Cache is only used as a post-fix. If the Cache failure is detected by the built-in CPU detection command, the level determined by the original frequency is taken as the standard.
步骤 103: 检测其他视频级别辅助信息, 对视频级别进行调节。 其他视频级别辅助信息主要包括:  Step 103: Detect other video level auxiliary information and adjust the video level. Other video level auxiliary information mainly includes:
( 1 )是否双核: 因为处理器实际性能是处理器在每个时钟周期内所 能处理指令数的总量, 从理论上讲, 增加一个内核, 处理器每个时钟周 期内可执行的单元数将增加一倍, 所以双核 CPU 性能比单核有较大提 高。 通过内置的 CPU指令检测此终端是否为双核, 对于双核的主机, 视 频级别将会提高。 调节方法如下:  (1) Whether dual core: Because the actual performance of the processor is the total number of instructions that the processor can process in each clock cycle, theoretically, adding a core, the number of units that can be executed in each clock cycle of the processor It will double, so the performance of dual-core CPU is much higher than that of single core. The built-in CPU command detects if the terminal is dual-core. For dual-core hosts, the video level will increase. The adjustment method is as follows:
设定级别修正值为 Z, 若检测到终端为双核则读取修正值 Z调整视 频级别, 若检测到终端为单核则不调整视频级别。 Set the level correction value to Z. If it detects that the terminal is dual-core, read the correction value Z to adjust the view. At the frequency level, if the terminal is detected as a single core, the video level is not adjusted.
( 2 )是否支持多媒体指令集: MMX、 SSE、 SSE2和 3DNow!都是 CPU的扩展指令集,对指令集的支持是反应终端多媒体处理能力的重要 依据。通过内置的 CPU指令检测此终端是否支持多媒体指令集,若是能 够支持, 则视频级别就越高, 此调节方法同上述是否双核的调节方法一 致。  (2) Whether the multimedia instruction set is supported: MMX, SSE, SSE2 and 3DNow! are all extended instruction sets of the CPU. Supporting the instruction set is an important basis for reflecting the multimedia processing capability of the terminal. The built-in CPU command detects whether the terminal supports the multimedia instruction set. If it is supported, the video level is higher. This adjustment method is consistent with the above-mentioned dual-core adjustment method.
( 3 )是否支持超线程技术( HTT ): 超线程技术能够减少 CPU的闲 置时间, 提高的 CPU的运行效率。 通过内置的 CPU指令检测此终端是 否支持超线程技术, 对于支持超线程技术的主机, 视频级别将会提高, 此调节方法同上述是否双核的调节方法一致。  (3) Whether Hyper-Threading Technology (HTT) is supported: Hyper-Threading Technology can reduce CPU idle time and improve CPU operating efficiency. The built-in CPU command detects whether the terminal supports Hyper-Threading Technology. For hosts that support Hyper-Threading Technology, the video level will be improved. This adjustment method is consistent with the above-mentioned dual-core adjustment method.
步骤 104: 得到本机视频级别后确定本机编码的最高帧率, 通过该 最高帧率对即时通信的视频数据进行编码, 方法如下:  Step 104: After obtaining the local video level, determine the highest frame rate of the local encoding, and encode the video data of the instant communication by the highest frame rate, as follows:
首先将终端帧率划分为 n级, 每一级别帧率都对应一个视频级别, 都是由大到小——对应, 然后通过调节最后得到的视频级别对应相应的 帧率级别, 得到最高帧率, 进而获取终端视频编码的最高限制。  First, the terminal frame rate is divided into n levels, and each level of frame rate corresponds to a video level, which is from large to small - corresponding, and then the highest frame rate is obtained by adjusting the final obtained video level corresponding to the corresponding frame rate level. , in turn, to obtain the highest limit of terminal video coding.
在开始视频通话前得到终端视频编码的最高限制, 保证资源占用在 本机的处理能力范围之内,视频质量达到最佳,然后进入视频传输过程。  Obtain the maximum limit of the terminal video coding before starting the video call, ensure that the resources are occupied within the processing capability of the local machine, the video quality is optimal, and then enter the video transmission process.
通过本发明实施例的视频质量调节方法, 对于低配置的终端来说, 可大大减少资源占用率, 不影响用户的其他工作, 同时也能够提高连接 建立的成功率; 而对于高配置的终端, 视频级别相应提高, 能够使用户 得到较好的视频体验, 避免造成资源的浪费。  The video quality adjustment method of the embodiment of the present invention can greatly reduce the resource occupancy rate of the terminal with low configuration, does not affect other work of the user, and can also improve the success rate of connection establishment; and for the highly configured terminal, The video level is improved accordingly, which enables users to get a better video experience and avoid waste of resources.
如图 2所示, 本发明还提供一种具有上述功能的即时通信视频质量 调节装置, 该装置应用于进行即时通信的终端中。 该视频质量调节装置 主要包括性能指标获取单元 21和视频质量调节单元 22两部分。 其中, 性能指标获取单元 21 , 用于获取终端的 CPU性能指标信息, 并将获取 的 CPU性能指标信息发送给视频质量调节单元;视频质量调节单元 22, 用于根据收到的 CPU性能指标信息调节终端的视频质量。 As shown in FIG. 2, the present invention also provides an instant communication video quality adjustment apparatus having the above functions, which is applied to a terminal for performing instant communication. The video quality adjustment device mainly includes two parts: a performance index acquisition unit 21 and a video quality adjustment unit 22. The performance indicator obtaining unit 21 is configured to acquire CPU performance indicator information of the terminal, and obtain the The CPU performance indicator information is sent to the video quality adjustment unit. The video quality adjustment unit 22 is configured to adjust the video quality of the terminal according to the received CPU performance indicator information.
视频质量调节单元 22还可以包括视频级别调节模块 31、 视频质量 调节模块 32。 其中, 视频级别调节模块 31 , 用于根据所述 CPU性能指 标信息调节终端的视频级别, 并将视频级别输出给视频质量调节模块 32; 视频质量调节模块 32, 用于根据视频级别确定编码的最高帧率, 并 输出该最高帧率给终端。  The video quality adjustment unit 22 may further include a video level adjustment module 31 and a video quality adjustment module 32. The video level adjustment module 31 is configured to adjust a video level of the terminal according to the CPU performance indicator information, and output the video level to the video quality adjustment module 32. The video quality adjustment module 32 is configured to determine the highest code according to the video level. Frame rate, and output the highest frame rate to the terminal.
应用本发明实施例以后, 通过获取终端 CPU性能指标信息, 并根据 此信息对即时通信视频质量进行调节的方法, 可以较好的利用资源, 避 免造成资源浪费,并且还能提高连接建立的成功率,改善用户视频体验。 离本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发 明权利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和 变型在内。  After the application of the embodiment of the present invention, the method for obtaining the performance index information of the terminal CPU and adjusting the quality of the instant communication video according to the information can better utilize resources, avoid waste of resources, and improve the success rate of connection establishment. To improve the user's video experience. It is within the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims

权利要求书 Claim
1、 一种即时通信视频质量调节方法, 其特征在于, 该方法为: 获取终端 CPU性能指标信息, 根据所述 CPU性能指标信息对即时 通信视频质量进行调节。  An instant communication video quality adjustment method, the method is: obtaining terminal CPU performance indicator information, and adjusting an instant communication video quality according to the CPU performance indicator information.
2、根据权利要求 1所述的即时通信视频质量调节方法,其特征在于, 对即时通信视频质量进行调节的步骤包括:  2. The instant messaging video quality adjustment method according to claim 1, wherein the step of adjusting the quality of the instant communication video comprises:
A.根据所述 CPU性能指标信息获得本机的视频级别;  A. obtaining the video level of the local device according to the CPU performance indicator information;
B .根据该视频级别确定本机编码的最高帧率, 根据该最高帧率对即 时通信的视频数据进行编码。  B. Determine the highest frame rate of the native encoding according to the video level, and encode the video data for instant communication according to the highest frame rate.
3、根据权利要求 1所述的即时通信视频质量调节方法,其特征在于, 所述对即时通信视频质量进行调节的步骤是在终端向对端发送视频命 令或终端接受来自对端视频命令时进行的。  The method for adjusting an instant communication video quality according to claim 1, wherein the step of adjusting the quality of the instant communication video is performed when the terminal sends a video command to the opposite end or the terminal accepts the video command from the opposite end. of.
4、根据权利要求 1所述的即时通信视频质量调节方法,其特征在于, 所述的终端 CPU性能指标信息包括 CPU主频信息和 /或緩存容量信息。  The instant messaging video quality adjustment method according to claim 1, wherein the terminal CPU performance indicator information comprises CPU frequency information and/or cache capacity information.
5、根据权利要求 2所述的即时通信视频质量调节方法,其特征在于, 所述的终端 CPU性能指标信息包括 CPU主频信息和緩存容量信息, 步 骤 A包括:  The instant messaging video quality adjustment method according to claim 2, wherein the terminal CPU performance indicator information includes CPU frequency information and cache capacity information, and step A includes:
Al、 获取本机 CPU主频信息, 根据获取的 CPU主频信息与视频级 别的对应关系, 确定本机的初始视频级别;  Al, obtain the local CPU frequency information, and determine the initial video level of the local machine according to the corresponding relationship between the acquired CPU frequency information and the video level;
A2、 检测本机緩存容量信息, 根据检测得到的緩存容量信息对所述 初始视频级别进行修正。  A2: The local cache capacity information is detected, and the initial video level is corrected according to the detected cache capacity information.
6、根据权利要求 5所述的即时通信视频质量调节方法,其特征在于, 所述 CPU主频信息与视频级别的对应关系包括:  The method for adjusting the quality of the instant communication video according to claim 5, wherein the correspondence between the CPU frequency information and the video level comprises:
CPU主频越高, 视频级别越高; 所述根据检测到的緩存容量信息对初始视频级别进行修正包括: 如果检测到的緩存容量越大, 则将初始视频级别向上调整, 以使得 最终得到的视频级别越高。 The higher the CPU clock speed, the higher the video level; The correcting the initial video level according to the detected cache capacity information includes: if the detected buffer capacity is larger, the initial video level is adjusted upwards, so that the final obtained video level is higher.
7、根据权利要求 5所述的即时通信视频质量调节方法,其特征在于, 步骤 A1 中终端从注册表中读取获得所述 CPU主频信息, 或使用内置 CPU指令检测获得所述 CPU主频信息;  The instant communication video quality adjustment method according to claim 5, wherein in step A1, the terminal reads the CPU frequency information from the registry, or uses the built-in CPU instruction to detect the CPU frequency. Information
步骤 A2中终端通过内置的 CPU指令检测获取所述緩存容量信息。 In step A2, the terminal acquires the cache capacity information by using built-in CPU command detection.
8、根据权利要求 5所述的即时通信视频质量调节方法,其特征在于, 所述 CPU性能指标信息进一步包括视频级别辅助信息,所述视频级别辅 助信息包括: 判断是否是双核 CPU、 是否支持多媒体指令集和是否支持 超线程技术中的一种或多于一种的任意组合; The method for adjusting the quality of the instant communication video quality according to claim 5, wherein the CPU performance indicator information further includes video level auxiliary information, and the video level auxiliary information includes: determining whether it is a dual-core CPU, whether to support multimedia The instruction set and whether to support any combination of one or more of the Hyper-Threading techniques;
在步骤 A2之后, 进一步包括:  After step A2, further comprising:
A3、 通过内置的 CPU指令检测获取视频级别辅助信息, 根据视频 级别辅助信息对步骤 A2中修正后的视频级别进行调节,其中当 CPU支 持所述视频级别辅助信息时, 将所述视频级别向上调整。  A3. The video level auxiliary information is obtained by the built-in CPU instruction detection, and the corrected video level in step A2 is adjusted according to the video level auxiliary information. When the CPU supports the video level auxiliary information, the video level is adjusted upward. .
9、一种即时通信视频质量调节装置,应用于进行即时通信的终端中, 其特征在于, 该装置包括:  9. An instant communication video quality adjustment device for use in a terminal for performing instant communication, characterized in that the device comprises:
性能指标获取单元,用于获取终端的 CPU性能指标信息, 并将获取 的 CPU性能指标信息发送给视频质量调节单元;  The performance indicator obtaining unit is configured to obtain CPU performance indicator information of the terminal, and send the obtained CPU performance indicator information to the video quality adjustment unit;
视频质量调节单元,用于根据收到的 CPU性能指标信息调节终端的 即时通信视频质量。  The video quality adjustment unit is configured to adjust the instantaneous communication video quality of the terminal according to the received CPU performance indicator information.
10、 根据权利要求 9所述的即时通信视频质量调节装置, 其特征在 于, 所述视频质量调节单元包括:  The instant communication video quality adjustment apparatus according to claim 9, wherein the video quality adjustment unit comprises:
视频级别调节模块,用于根据所述 CPU性能指标信息调节终端的视 频级别, 并将视频级别输出给视频质量调节模块; 视频质量调节模块, 用于根据视频级别确定编码的最高帧率, 并输 出该最高帧率给终端。 a video level adjustment module, configured to adjust a video level of the terminal according to the CPU performance indicator information, and output the video level to the video quality adjustment module; The video quality adjustment module is configured to determine a highest frame rate of the encoding according to the video level, and output the highest frame rate to the terminal.
PCT/CN2007/070353 2006-07-28 2007-07-25 A method and apparatus for adjusting the quality of video communication of instant messaging WO2008019606A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610099535.4 2006-07-28
CN 200610099535 CN101115021B (en) 2006-07-28 2006-07-28 Instant communication video quality regulating method and device

Publications (1)

Publication Number Publication Date
WO2008019606A1 true WO2008019606A1 (en) 2008-02-21

Family

ID=39023142

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070353 WO2008019606A1 (en) 2006-07-28 2007-07-25 A method and apparatus for adjusting the quality of video communication of instant messaging

Country Status (2)

Country Link
CN (1) CN101115021B (en)
WO (1) WO2008019606A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185285A (en) * 2013-05-28 2014-12-03 华为技术有限公司 Media data transmission method, device and system
CN104540034B (en) * 2014-12-19 2018-10-26 天脉聚源(北京)科技有限公司 The method and device of pushing video information when a kind of discussion based on social networks
CN105959304A (en) * 2016-06-30 2016-09-21 宇龙计算机通信科技(深圳)有限公司 Frame rate adjustment method and device
CN106375789B (en) * 2016-09-05 2019-02-26 腾讯科技(深圳)有限公司 Medium living broadcast method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002045372A2 (en) * 2000-11-29 2002-06-06 British Telecommunications Public Limited Company Transmitting and receiving real-time data
WO2002056599A2 (en) * 2001-01-10 2002-07-18 Intel Corporation Video coder with fine granular scalability
US20030222973A1 (en) * 2002-05-29 2003-12-04 Kazushige Hiroi Video telephone system and terminal device therefor
CN1529461A (en) * 2003-10-17 2004-09-15 中国科学院计算技术研究所 Adaptive service quality ensuring method in multi-playing environment
CN1633177A (en) * 2004-12-31 2005-06-29 大唐微电子技术有限公司 Method of frame rate adjusting for video communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002045372A2 (en) * 2000-11-29 2002-06-06 British Telecommunications Public Limited Company Transmitting and receiving real-time data
WO2002056599A2 (en) * 2001-01-10 2002-07-18 Intel Corporation Video coder with fine granular scalability
US20030222973A1 (en) * 2002-05-29 2003-12-04 Kazushige Hiroi Video telephone system and terminal device therefor
CN1529461A (en) * 2003-10-17 2004-09-15 中国科学院计算技术研究所 Adaptive service quality ensuring method in multi-playing environment
CN1633177A (en) * 2004-12-31 2005-06-29 大唐微电子技术有限公司 Method of frame rate adjusting for video communication system

Also Published As

Publication number Publication date
CN101115021A (en) 2008-01-30
CN101115021B (en) 2010-05-12

Similar Documents

Publication Publication Date Title
KR101553201B1 (en) Dynamic adjustment of an interrupt latency threshold and a resource supporting a processor in a portable computing device
US8930599B2 (en) Data transmission system and method thereof
CN1251184A (en) Modem operated in non-real-time condition, software implementation in general purpose computer
US20070174522A1 (en) Universal interface apparatus and method
MXPA05006638A (en) Lightweight input/output protocol.
TW201015904A (en) Adjustable transmitter power for high speed links with constant bit error rate
WO2008019606A1 (en) A method and apparatus for adjusting the quality of video communication of instant messaging
US8464006B2 (en) Method and apparatus for data transmission between processors using memory remapping
CN109451317A (en) A kind of image compression system and method based on FPGA
CN116089343A (en) AXI-based data storage method, device, storage medium and equipment
JP5392553B2 (en) Data transfer system and data transfer method
EP1730655A1 (en) Optimizing database access for record linkage by tiling the space of record pairs
CN116303173B (en) Method, device and system for reducing RDMA engine on-chip cache and chip
TWI265451B (en) Direct memory access system for iSCSI
CN107958036B (en) Music playing method, system and device while caching
WO2018052718A1 (en) Method and apparatus for masking and transmitting data
KR100217370B1 (en) Fax data receiving processing method in portable information terminal
CN116431558B (en) AXI protocol-based request response method, device, system and medium
JP5229171B2 (en) Web server device, control method and program for Web server device
JP2574628B2 (en) Facsimile machine
Sun et al. Research on Seismic Data Compression and Error Correction System
CN117389474A (en) SSD multi-service mode performance self-adaption method, device, equipment and medium
TW202344956A (en) Dynamic clock and voltage scaling (dcvs) lookahead bandwidth voting using feedforward compression ratio
CN117729092A (en) Method for determining restart reason and electronic equipment
CN114333857A (en) Data processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07764276

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC OF 190809

122 Ep: pct application non-entry in european phase

Ref document number: 07764276

Country of ref document: EP

Kind code of ref document: A1