WO2017005062A1 - 图片帧播放方法和装置 - Google Patents

图片帧播放方法和装置 Download PDF

Info

Publication number
WO2017005062A1
WO2017005062A1 PCT/CN2016/084218 CN2016084218W WO2017005062A1 WO 2017005062 A1 WO2017005062 A1 WO 2017005062A1 CN 2016084218 W CN2016084218 W CN 2016084218W WO 2017005062 A1 WO2017005062 A1 WO 2017005062A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture frame
frame rate
current frame
pixel value
frame
Prior art date
Application number
PCT/CN2016/084218
Other languages
English (en)
French (fr)
Inventor
雷夏平
王云华
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017005062A1 publication Critical patent/WO2017005062A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer

Definitions

  • the present invention relates to the field of video processing, and in particular, to a picture frame playing method and apparatus.
  • the main object of the present invention is to provide a picture frame playing method, which aims to solve the technical problem that the television broadcast video is not smooth enough.
  • the present invention provides a picture frame playing method, and the picture frame playing method includes the following steps:
  • the step of dividing the picture frame corresponding to the current frame rate to create a target picture frame of the number of frames corresponding to the difference includes:
  • Each pixel point having the same division ratio and the same position information is combined into one pixel point to generate a target picture frame.
  • the present invention further provides a picture frame playing method, where the picture frame playing method includes the following steps:
  • the step of determining the current frame rate of the terminal according to the size of the preset storage space and the pixel value of the currently stored picture frame includes:
  • the storage capacity value of the preset storage space is divided by the pixel value to obtain the current frame rate.
  • the step of creating a target picture frame based on the picture frame corresponding to the current frame rate includes:
  • the step of dividing the picture frame corresponding to the current frame rate to create a target picture frame of the number of frames corresponding to the difference includes:
  • Each pixel point having the same division ratio and the same position information is combined into one pixel point to generate a target picture frame.
  • the present invention further provides a picture frame playing device, where the picture frame playing device includes:
  • a determining module configured to determine a current frame rate of the terminal according to a preset storage space size and a pixel value of the currently stored picture frame when receiving the play request of the video;
  • a determining module configured to determine whether the current frame rate is less than a preset basic frame rate
  • a creating module configured to: when the current frame rate is less than the basic frame rate, create a target picture frame based on a picture frame corresponding to the current frame rate;
  • a playing module configured to play the currently stored picture frame and the created target picture frame.
  • the determining module comprises:
  • An acquiring unit configured to acquire, when receiving a play request of the video, a horizontal pixel value and a vertical pixel value of the first frame picture frame in the currently stored picture frame;
  • a processing unit configured to multiply the horizontal pixel value and the vertical pixel value to obtain a pixel value of the picture frame
  • the processing unit is further configured to divide a storage capacity value of the preset storage space by the pixel value to obtain the current frame rate.
  • the creating module comprises:
  • a calculation submodule configured to calculate, when the current frame rate is less than the basic frame rate, a difference between a number of frames corresponding to the basic frame rate and a number of frames corresponding to the current frame rate;
  • a sub-module is configured to segment the picture frame corresponding to the current frame rate to create a target picture frame of the number of frames corresponding to the difference.
  • the creating submodule comprises:
  • a determining unit configured to determine, according to the number of frames corresponding to the target picture frame to be created, the number of splits of each pixel in the picture frame corresponding to the current frame rate
  • a dividing unit configured to divide each pixel point according to a ratio of the grading of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the pixel;
  • a generating unit configured to respectively combine respective pixel points with equal split ratios and the same position information into one pixel point to generate a target picture frame.
  • the method and device for playing a picture frame determines the current frame rate of the terminal according to the size of the preset storage space and the pixel value of the currently stored picture frame, and determines the current frame rate when receiving the play request of the video. Whether it is less than a preset basic frame rate, when the current frame rate is smaller than the basic frame rate, creating a target picture frame based on the picture frame corresponding to the current frame rate, and playing the currently stored picture frame and the created The target picture frame enables the current frame rate of the terminal to reach a preset basic frame rate, thereby improving the smoothness of video playback.
  • FIG. 1 is a schematic flow chart of a preferred embodiment of a picture frame playing method according to the present invention.
  • FIG. 2 is a schematic diagram of a refinement process of step S10 in FIG. 1;
  • step S30 in FIG. 1 is a schematic diagram of a refinement process of step S30 in FIG. 1;
  • step S32 in FIG. 3 is a schematic diagram of a refinement process of step S32 in FIG. 3;
  • FIG. 5 is a schematic diagram of functional modules of a preferred embodiment of a picture frame playback apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of the determining module 10 of FIG. 5;
  • FIG. 7 is a schematic diagram of a refinement function module of the creation module 30 in FIG. 5;
  • FIG. 8 is a schematic diagram of the refinement function module of the sub-module 32 created in FIG. 6.
  • the invention provides a picture frame playing method.
  • FIG. 1 is a schematic flowchart diagram of a preferred embodiment of a picture frame playing method according to the present invention.
  • This embodiment provides a method for playing a picture frame, where the picture frame playing method includes:
  • Step S10 when receiving the play request of the video, determining the current frame rate of the terminal according to the size of the preset storage space and the pixel value of the currently stored picture frame;
  • Step S20 determining whether the current frame rate is less than a preset basic frame rate
  • Step S30 When the current frame rate is less than the basic frame rate, create a target picture frame based on the picture frame corresponding to the current frame rate.
  • Step S40 playing the currently stored picture frame and the created target picture frame.
  • the step S10 includes the step of storing a picture frame sent by the cloud
  • the step of sending the picture frame by the storage cloud includes: receiving the received picture frame when receiving the picture frame sent by the cloud
  • the image frame is stored in the preset memory, and when receiving the play request of the video, determining the current frame rate of the terminal according to the size of the preset storage space and the pixel value of the pre-stored picture frame; or the step S10 includes: Receiving the play request of the video, receiving the picture frame sent by the cloud at the same time, and storing the received picture frame into the preset memory, determining the terminal according to the size of the preset storage space and the pixel value of the pre-stored picture frame. The current frame rate.
  • the storage space in this embodiment is preferably a DDR memory (Double Data Rate, double rate synchronous dynamic random access memory). It can be understood by those skilled in the art that the DDR value corresponding to each TV is different, for example, the DDR value corresponding to TV (X1) is 128 MB, and the DDR value corresponding to TV (X2) is 256 MB.
  • DDR memory Double Data Rate, double rate synchronous dynamic random access memory
  • the step S10 includes:
  • Step S11 when receiving a play request of the video, acquiring a horizontal pixel value and a vertical pixel value of the first frame picture frame in the currently stored picture frame of the terminal;
  • the picture frame when the terminal stores the picture frame, the picture frame is preferably arranged in the order of the red pixel, the green pixel, and the blue pixel, and the pixel values of the picture frame stored by the terminal are equal, preferably after receiving the video.
  • the horizontal pixel value and the vertical pixel value of the first frame picture frame currently stored by the terminal are obtained, the horizontal pixel value of the picture frame is the sum of the horizontal pixels of the three pixels, and the vertical pixel value is three pixels.
  • the horizontal pixel value of the picture frame is 6 MB, and similarly, when the red pixel When the vertical pixel value of the green pixel and the blue pixel is 1 MB, the vertical pixel value of the picture frame is 3 MB.
  • Step S12 multiplying the horizontal pixel value by the vertical pixel value to obtain a pixel value of the picture frame
  • Step S13 dividing a storage capacity value of the preset storage space by the pixel value to obtain the current frame rate.
  • the terminal when the terminal receives the picture frame sent by the cloud, it determines that the horizontal pixel value and the vertical pixel value of the received picture frame are 6 MB and 3 MB, respectively, and the terminal presets.
  • the dynamic frame rate is It is about 7, that is, the terminal displays 7 frames per second.
  • Step S20 determining whether the current frame rate is less than a preset basic frame rate
  • the basic frame rate is a frame rate at which the terminal displays an animation effect.
  • the frame rate is 20 frames per second.
  • the current frame rate is 7
  • the frame can determine that the current frame rate is smaller than the preset basic frame rate, and it can be understood that the basic frame rate is preset to a corresponding value according to specific needs.
  • Step S30 When the current frame rate is less than the basic frame rate, create a target picture frame based on the picture frame corresponding to the current frame rate.
  • the step S30 includes:
  • Step S31 when the current frame rate is less than the basic frame rate, calculating a difference between the number of frames corresponding to the basic frame rate and the number of frames corresponding to the current frame rate;
  • Step S32 Perform segmentation on the picture frame corresponding to the current frame rate to create a target picture frame of the number of frames corresponding to the difference.
  • the step S32 includes:
  • Step S321 determining the number of divisions of each pixel in the picture frame corresponding to the current frame rate according to the number of frames corresponding to the target picture frame to be created;
  • Step S322 dividing each pixel point according to the ratio of the number of divisions according to the ratio of the molecules of the division ratio to obtain respective pixel points of different division ratios;
  • step S323 each pixel point having the same split ratio and the same position information is combined into one pixel point to generate a target picture frame.
  • the number of divided frames of each frame is determined according to the ratio of red, green, and blue pixel gains, and the number of divided frames per frame is determined according to the number of frames to be created.
  • the number of frames for creating a picture frame is determined. For example, if the picture frame to be created is 12 frames, it is determined that the number of divisions of each frame is 12, and then the pixels in each frame are performed according to the determined number of divisions 13
  • the pixel gain ratio is divided according to the ratio of the red gain of the pixel, and different red gain pictures can be obtained.
  • the ratio of the green gain of the pixel different green gain pictures can be obtained, according to the blue gain of the pixel.
  • the split ratio can be obtained with different blue gain pictures.
  • an example is as follows: when the number of picture frames to be created is 12 frames, each pixel of each frame image is divided into pixel gain ratios, for example, the red pixel point is C_RGain.
  • each pixel point with equal division ratio is combined into a picture, for example, each pixel point with a division ratio of 1/12 is combined into one frame picture, and each pixel point with a division ratio of 2/12 is combined into one frame picture, that is, the division ratio is The 1/12 red pixel, the green pixel and the blue pixel form a frame image, and the red pixel, the green pixel and the blue pixel with the division ratio of 2/12 form a frame image, and finally, according to A picture composed of frames is combined to generate a picture frame.
  • Step S40 playing the currently stored picture frame and the created target picture frame.
  • the picture frame stored in the DDR is read first, that is, the picture frame corresponding to the current frame rate, and then the target picture frame generated by dividing the pixel gain ratio is read.
  • the current frame rate of the terminal is 8 frames per second.
  • the preset basic frame rate is 20 frames per second. When 12 frames are created, the current frame rate can reach the basic frame rate.
  • the system sequentially displays the 8 frame frames corresponding to the current frame rate and creates them in a preset order.
  • the 12-frame target picture frame finally plays the received picture at 20 frames per second according to the current frame rate, thereby smoothly playing the animation video.
  • the method for playing a picture frame determines the current frame rate of the terminal according to the size of the preset storage space and the pixel value of the currently stored picture frame, and determines whether the current frame rate is When the current frame rate is smaller than the basic frame rate, the target picture frame is created based on the picture frame corresponding to the current frame rate, and the currently stored picture frame and the The target picture frame is described, so that the current frame rate of the terminal can reach a preset basic frame rate, which improves the smoothness of video playback.
  • the invention further provides a picture frame playing device.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a picture frame playing apparatus according to the present invention.
  • the functional block diagram shown in FIG. 5 is merely an exemplary diagram of a preferred embodiment, and those skilled in the art will surround the functional modules of the picture frame playing device shown in FIG.
  • the function module of the present invention can be easily supplemented; the name of each function module is a custom name, which is only used to assist in understanding various program function blocks of the picture frame playing device, and is not used to limit the technical solution of the present invention.
  • the core is the function that each functional module of the defined name has to achieve.
  • the picture frame playing device proposed in this embodiment preferably runs in a controlled terminal (such as a smart TV and a computer).
  • a controlled terminal such as a smart TV and a computer.
  • the embodiment of the present invention provides a picture frame playing device, where the picture frame playing device includes:
  • the determining module 10 is configured to determine, according to a preset storage space size and a pixel value of the currently stored picture frame, a current frame rate of the terminal when receiving the play request of the video;
  • the determining module 20 is configured to determine whether the current frame rate is less than a preset basic frame rate
  • the creating module 30 is configured to: when the current frame rate is less than the basic frame rate, create a target picture frame based on the picture frame corresponding to the current frame rate;
  • the playing module 40 is configured to play the currently stored picture frame and the target picture frame.
  • the picture frame playing device may further include a storage module, where the storage module is configured to store a picture frame sent by the cloud, and the manner in which the storage module stores the picture frame sent by the cloud includes receiving the cloud.
  • the storage module is configured to store a picture frame sent by the cloud, and the manner in which the storage module stores the picture frame sent by the cloud includes receiving the cloud.
  • the received picture frame is stored in a preset memory, and when receiving the play request of the video, the determining module 10 is configured according to the size of the preset storage space and the pre-stored picture frame. The pixel value determines the current frame rate of the terminal; or the determining module 10 is further configured to receive the picture frame sent by the cloud at the same time when receiving the play request of the video, and store the received picture frame in the preset memory.
  • the current frame rate of the terminal is determined according to the size of the preset storage space and the pixel value of the pre-stored picture frame.
  • the storage space in this embodiment is preferably a DDR memory (Double Data Rate, double rate synchronous dynamic random access memory). It can be understood by those skilled in the art that the DDR value corresponding to each TV is different, for example, the DDR value corresponding to TV (X1) is 128 MB, and the DDR value corresponding to TV (X2) is 256 MB.
  • the determining module 10 includes:
  • the obtaining unit 11 is configured to acquire, when receiving a play request of the video, a horizontal pixel value and a vertical pixel value of the currently stored first frame picture frame;
  • the picture frame when the storage module stores the picture frame, the picture frame is preferably arranged in the order of the red pixel, the green pixel, and the blue pixel. Since the pixel values of the picture frame stored by the storage module are equal, Preferably, when receiving the play request of the video, acquiring the horizontal pixel value and the vertical pixel value of the currently stored first frame picture frame, the horizontal pixel value of the picture frame is the sum of the horizontal pixels of the three pixels, and the vertical pixel The sum of the vertical pixels of the three pixels, such as the horizontal pixel of the red pixel, the horizontal pixel of the green pixel, and the horizontal pixel of the blue pixel are both 2 MB, the horizontal pixel value of the picture frame is 6 MB, the same reason When the vertical pixel values of the red pixel, the green pixel, and the blue pixel are both 1 MB, the vertical pixel value of the picture frame is 3 MB.
  • the processing unit 12 is configured to multiply the horizontal pixel value and the vertical pixel value to obtain a pixel value of the picture frame;
  • the processing unit 12 is further configured to divide a storage capacity value of the preset storage space by the pixel value to obtain the current frame rate.
  • the acquiring unit 11 receives the picture frame sent by the cloud, it determines that the horizontal pixel value and the vertical pixel value of the received picture frame are 6 MB and 3 MB, respectively.
  • the dynamic frame rate is about 7, that is, the picture frame playback device displays 7 frames per second.
  • the basic frame rate is a frame rate at which the terminal displays an animation effect
  • the frame rate of the picture frame playing device capable of smoothly displaying the animation effect is 20 frames per second.
  • the determining module 20 can determine that the current frame rate is smaller than the preset basic frame rate. It can be understood that the basic frame rate can also be preset to other values according to requirements. In case, the basic frame rate is greater than or equal to the frame per second.
  • the creating module 30 includes:
  • the calculating sub-module 31 is configured to calculate, when the current frame rate is less than the basic frame rate, a difference between a number of frames corresponding to the basic frame rate and a number of frames corresponding to the current frame rate;
  • the current frame rate is 25 frames per second, and the basic frame rate is 20 frames per second, then the current frame rate is greater than the basic frame rate, and the target picture frame does not need to be created.
  • the current frame rate is equal to the basic frame rate, it is not necessary to create a target picture frame.
  • the sub-module 32 is configured to segment the picture frame corresponding to the current frame rate to create a target picture frame of the number of frames corresponding to the difference.
  • the creating submodule 32 includes:
  • the determining unit 321 is configured to determine, according to the number of frames corresponding to the target picture frame to be created, the number of splits of each pixel in the picture frame corresponding to the current frame rate;
  • the dividing unit 322 is configured to divide each pixel point according to a ratio of the gradation of the gradation of the gradation of the gradation by the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the gradation of the grad
  • the generating unit 323 is configured to respectively combine respective pixel points having the same splitting ratio and the same position information into one pixel point to generate a target picture frame.
  • the determining unit 321 determines, according to the number of frames to be created in the preset memory, the number of divided segments of each frame according to the ratio of red, green, and blue pixel gains, and the number of divided frames per frame.
  • the number of frames of the picture frame to be created for example, if the picture frame to be created is 12 frames, it can be determined that the number of divisions of each frame is 12, and then the dividing unit 322 will each according to the determined number of divisions 12
  • the pixel points in the frame image are divided into pixel gain ratios, and the pixels are divided according to the ratio of the red gain of the pixels, so that different red gain pictures can be obtained.
  • the ratio of the green gain of the pixels different green gain pictures can be obtained.
  • the ratio of the blue gain of the pixel a picture with different blue gains can be obtained.
  • the dividing unit 322 performs pixel gain ratio division for each pixel of each frame image, for example, the red pixel point is C_RGain.
  • the generating unit 323 combines the pixels of the equal division ratio into a picture, for example, each pixel point with a division ratio of 1/12 is combined into one frame image, and each pixel point with a division ratio of 2/12 is combined into one frame image. That is, a red pixel point, a green pixel point, and a blue pixel point each having a division ratio of 1/12 constitute a frame image, and a red pixel point, a green pixel point, and a blue pixel point each having a division ratio of 2/12 constitute one frame. Picture, finally, a picture frame is generated based on the pictures combined by each frame.
  • the picture stored in the DDR is read first, that is, the picture frame corresponding to the current frame rate, and then the target picture frame generated by dividing the pixel gain ratio is read, for example, the current frame rate of the picture frame playback device is originally 8 frames per second, the preset basic frame rate is 20 frames per second. When 12 frames are created, the current frame rate can reach the basic frame rate.
  • the system sequentially displays the 8 frames corresponding to the current frame rate in a preset order.
  • the picture frame and the created 12-frame target picture frame, the playing module 40 plays the received picture every second at the current frame rate of 20 frames, thereby smoothly playing the animated video.
  • the picture frame playing device of the present embodiment determines the current frame rate of the terminal according to the size of the preset storage space and the pixel value of the currently stored picture frame, and determines whether the current frame rate is When the current frame rate is smaller than the basic frame rate, the target picture frame is created based on the picture frame corresponding to the current frame rate, and the currently stored picture frame and the The target picture frame is described, so that the current frame rate of the terminal can reach a preset basic frame rate, which improves the smoothness of video playback.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种图片帧播放方法,在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率;判断所述当前帧率是否小于预设的基本帧率;当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧;播放当前存储的所述图片帧以及创建的所述目标图片帧。本发明还公开了一种图片帧播放装置。本发明提高了视频播放的流畅性。

Description

图片帧播放方法和装置
技术领域
本发明涉及视频处理领域,尤其涉及一种图片帧播放方法和装置。
背景技术
随着科学技术的发展,各种移动终端也不断发展和普及,随着视频处理技术的进步,现有智能电视云推送的业务,不知不觉越来越丰富,而智能电视菜单页面的动画效果也深受用户的喜欢,常见的是,电视系统接收云端推送的图片时,存储图片到DDR(Double Data Rate,双倍速率同步动态随机存储器)中,当电视系统的DDR存储空间小,而云端推送的图片像素值大时,会导致视频的当前帧率达不到预设的基本帧率,造成视频播放不够顺畅。
发明内容
本发明的主要目的在于提出一种图片帧播放方法,旨在解决电视播放视频时不够顺畅的技术问题。
为实现上述目的,本发明提供的一种图片帧播放方法,所述图片帧播放方法包括以下步骤:
在接收到视频的播放请求时,获取终端当前存储的图片帧中第一帧图片帧的水平像素值和竖直像素值;
将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率;
判断所述当前帧率是否小于预设的基本帧率;
当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧;
播放当前存储的所述图片帧以及创建的所述目标图片帧。
优选地,所述对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧的步骤包括:
根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
此外,为实现上述目的,本发明还提供一种图片帧播放方法,所述图片帧播放方法包括以下步骤:
在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率;
判断所述当前帧率是否小于预设的基本帧率;
当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧;
播放当前存储的所述图片帧以及创建的所述目标图片帧。
优选地,在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率的步骤包括:
在接收到视频的播放请求时,获取终端当前存储图片帧中第一帧图片帧的水平像素值和竖直像素值;
将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率。
优选地,所述当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧的步骤包括:
当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧。
优选地,所述对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧的步骤包括:
根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
此外,为实现上述目的,本发明还提出一种图片帧播放装置,所述图片帧播放装置包括:
确定模块,用于在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率;
判断模块,用于判断所述当前帧率是否小于预设的基本帧率;
创建模块,用于当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧;
播放模块,用于播放当前存储的所述图片帧以及创建的所述目标图片帧。
优选地,所述确定模块包括:
获取单元,用于在接收到视频的播放请求时,获取当前存储图片帧中第一帧图片帧的水平像素值和竖直像素值;
处理单元,用于将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
所述处理单元,还用于将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率。
优选地,所述创建模块包括:
计算子模块,用于当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
创建子模块,用于对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧。
优选地,所述创建子模块包括:
确定单元,用于根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
分割单元,用于根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
生成单元,用于分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
本发明提出的图片帧播放方法和装置,在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率,判断所述当前帧率是否小于预设的基本帧率,当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧,并播放当前存储的所述图片帧以及创建的所述目标图片帧,使得终端的当前帧率可达到预设的基本帧率,提高了视频播放的流畅性。
附图说明
图1为本发明图片帧播放方法较佳实施例的流程示意图;
图2为图1中步骤S10的细化流程示意图;
图3为图1中步骤S30的细化流程示意图;
图4为图3中步骤S32的细化流程示意图;
图5为本发明图片帧播放装置较佳实施例的功能模块示意图;
图6为图5中确定模块10的细化功能模块示意图;
图7为图5中创建模块30的细化功能模块示意图;
图8为图6中创建子模块32的细化功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种图片帧播放方法。
参照图1,图1为本发明图片帧播放方法较佳实施例的流程示意图。
本实施例提出一种图片帧播放方法,所述图片帧播放方法包括:
步骤S10,在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率;
步骤S20,判断所述当前帧率是否小于预设的基本帧率;
步骤S30,当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧。
步骤S40,播放当前存储的所述图片帧以及创建的目标图片帧。
具体地,在本实施例中,所述步骤S10之前包括存储云端发送图片帧的步骤,所述存储云端发送图片帧的步骤包括:在接收到云端发送的图片帧时,将所述接收到的图片帧存储到预设的存储器,并在接收到视频的播放请求时,根据预设的存储空间的大小以及预存的图片帧的像素值确定终端的当前帧率;或者所述步骤S10包括:在接收到视频的播放请求时,同时接收云端发送的图片帧,并将接收到的所述图片帧存储至预设存储器中,根据预设的存储空间的大小以及预存的图片帧的像素值确定终端的当前帧率。本实施例中的存储空间优选为DDR存储器(Double Data Rate,双倍速率同步动态随机存储器)。本领域技术人员可以理解的是,每个TV对应的DDR值是不一样的,如标识为TV(X1)对应的DDR值为128MB,标识为TV(X2)对应的DDR值为256MB。
在本实施例中,参照图2,所述步骤S10包括:
步骤S11,在接收到视频的播放请求时,获取终端当前存储图片帧中第一帧图片帧的水平像素值和竖直像素值;
在本实施例中,终端存储图片帧时,优选所述图片帧按照红色像素、绿色像素和蓝色像素的顺序排列,终端存储的图片帧的像素值是相等的,优选在接收到视频的播放请求时,获取终端当前存储的第一帧图片帧的水平像素值和竖直像素值,所述图片帧的水平像素值为三种像素的水平像素之和,竖直像素值为三种像素的竖直像素之和,如红色像素的水平像素、绿色像素的水平像素以及蓝色像素的水平像素都为2MB时,所述图片帧的水平像素值则为6MB,同理,当所述红色像素、绿色像素、以及蓝色像素的竖直像素值都为1MB时,所述图片帧的竖直像素值则为3MB。
步骤S12,将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
步骤S13,将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率。
在本实施例中,为详细解释具体过程,举例如下:终端接收云端发送的图片帧时,确定接收到的图片帧的水平像素值和竖直像素值分别为6MB和3MB,将终端预设的DDR值如128MB作为分子,以所述水平像素值6MB和竖直像素值3MB的乘积18MB作为分母,计算出终端的当前帧率为128MB/18MB=7.1,可以理解的是,所述动态帧率大约为7,即所述终端每秒显示的图片为7帧。
步骤S20,判断所述当前帧率是否小于预设的基本帧率;
在本实施例中,所述基本帧率为终端显示动画效果的帧率,如终端能流畅显示动画效果的帧率为每秒20帧图片,由上述例子可知,当所述当前帧率为7帧每秒时,所述终端即可判断当前帧率小于预设的基本帧率,可以理解的是,所述基本帧率根据具体需要预设为相应值。
步骤S30,当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧。
在本实施例中,参照图3,所述步骤S30包括:
步骤S31,当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
在本实施例中,当所述当前帧率小于所述基本帧率时,终端创建图片帧,所述创建图片帧的方式优选为,将所述基本帧率对应的帧数减去所述当前帧率对应的帧数,以计算待创建图片帧对应的帧数,例如,所述当前帧率为7帧每秒,所述基本帧率为20帧每秒,则所述待创建的目标图片帧对应的帧数为20-7=13帧。进一步地,若所述当前帧率为25帧每秒,而所述基本帧率为20帧每秒时,则所述当前帧率大于所述基本帧率,不需要创建目标图片帧,可以理解的是,当所述当前帧率等于所述基本帧率时,也不需要创建目标图片帧。
步骤S32,对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧。
在本实施例中,参照图4,所述步骤S32包括:
步骤S321,根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
步骤S322,根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
步骤S323,分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
在本实施例中,根据预设的存储器中存储的图片帧按照需要创建的帧数,确定每帧图片按照红,绿,蓝像素增益比例分割的分割份数,每帧图片分割份数根据待创建图片帧的帧数决定,比如:需要创建的图片帧为12帧,则可确定每帧图片的分割份数为12,然后,根据确定的分割份数13将每帧图像中的像素点进行像素增益比例分割,按照像素的红色增益的比例分割,可以得到不同的红色增益的图片,同理,按照像素的绿色增益的比例分割,可以得到不同的绿色增益的图片,按照像素的蓝色增益的比例分割,可以得到不同的蓝色增益的图片。为更好理解,举例如下:当待创建的图片帧数为12帧时,将每帧图像的每个像素点进行像素增益比例分割,如红色像素点为C_RGain = 255,将该像素点进行比例分割,结果得到C_RGain(r1)=1/12 x C_RGain =21.25、C_RGain(r2)=2/12 x C_RGain = 42.5,…,C_RGain(r11)=11/12 x C_RGain= 233.75,C_RGain(r12)=12/12 x C_RGain= 255,同理C_GGain,C_BGain都相同的方法计算,可得绿色像素点进行像素增益比例分割的各个像素点以及蓝色像素点进行像素增益比例分割的各个像素点。然后,将分割比例相等的各个像素点组合成图片,如分割比例为1/12的各个像素点组合成一帧图片,分割比例为2/12的各个像素点组合成一帧图片,即分割比例都为1/12的红色像素点、绿色像素点和蓝色像素点组成一帧图片,将分割比例都为2/12的红色像素点、绿色像素点和蓝色像素点组成一帧图片,最后,根据各帧组合成的图片生成图片帧。
步骤S40,播放当前存储的所述图片帧以及创建的所述目标图片帧。
在本实施例中,先读取DDR存储的图片帧,即当前帧率对应的图片帧,然后读取按照像素增益比例分割生成的目标图片帧,例如,终端原本当前帧率为8帧每秒,预设基本帧率为20帧每秒,创建出12帧图片时,即可使得当前帧率达到基本帧率,系统按照预设顺序依次显示所述当前帧率对应的8帧图片帧以及创建的12帧目标图片帧,最终按照所述当前帧率20帧每秒播放接收到的图片,从而顺畅播放动画视频。
本实施例提出的图片帧播放方法,在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率,判断所述当前帧率是否小于预设的基本帧率,当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧,并播放所述当前存储的所述图片帧以及所述目标图片帧,使得终端的当前帧率可达到预设的基本帧率,提高了视频播放的流畅性。
本发明进一步提供一种图片帧播放装置。
参照图5,图5为本发明图片帧播放装置第一实施例的功能模块示意图。
需要强调的是,对本领域的技术人员来说,图5所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图5所示的图片帧播放装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该图片帧播放装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。
本实施例提出的图片帧播放装置优选运行于被控终端(如智能电视以及电脑)中。
本实施例提出一种图片帧播放装置,所述图片帧播放装置包括:
确定模块10,用于在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率;
判断模块20,用于判断所述当前帧率是否小于预设的基本帧率;
创建模块30,用于当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧;
播放模块40,用于播放所述当前存储的所述图片帧以及所述目标图片帧。
具体地,在本实施例中,所述图片帧播放装置还可以包括存储模块,所述存储模块用于存储云端发送的图片帧,所述存储模块存储云端发送图片帧的方式包括在接收到云端发送的图片帧时,将所述接收到的图片帧存储到预设的存储器,并在接收到视频的播放请求时,所述确定模块10根据预设的存储空间的大小以及预存的图片帧的像素值确定终端的当前帧率;或者所述确定模块10还用于在接收到视频的播放请求时,同时接收云端发送的图片帧,并将接收到的所述图片帧存储至预设存储器中,根据预设的存储空间的大小以及预存的图片帧的像素值确定终端的当前帧率。本实施例中的存储空间优选为DDR存储器(Double Data Rate,双倍速率同步动态随机存储器)。本领域技术人员可以理解的是,每个TV对应的DDR值是不一样的,如标识为TV(X1)对应的DDR值为128MB,标识为TV(X2)对应的DDR值为256MB。
在本实施例中,参照图6,所述确定模块10包括:
获取单元11,用于在接收到视频的播放请求时,获取当前存储的第一帧图片帧的水平像素值和竖直像素值;
在本实施例中,所述存储模块存储图片帧时,优选所述图片帧按照红色像素、绿色像素和蓝色像素的顺序排列,由于所述存储模块存储的图片帧的像素值是相等的,优选在接收到视频的播放请求时,获取当前存储的第一帧图片帧的水平像素值和竖直像素值,所述图片帧的水平像素值为三种像素的水平像素之和,竖直像素值为三种像素的竖直像素之和,如红色像素的水平像素、绿色像素的水平像素以及蓝色像素的水平像素都为2MB时,所述图片帧的水平像素值则为6MB,同理,当所述红色像素、绿色像素、以及蓝色像素的竖直像素值都为1MB时,所述图片帧的竖直像素值则为3MB。
处理单元12,用于将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
所述处理单元12,还用于将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率。
在本实施例中,为详细解释具体过程,举例如下:所述获取单元11接收到云端发送的图片帧时,确定接收到的图片帧的水平像素值和竖直像素值分别为6MB和3MB,所述处理单元12将终端预设的DDR值如128MB作为分子,以所述水平像素值6MB和竖直像素值3MB的乘积18MB作为分母,计算出当前帧率为128MB/18MB=7.1,可以理解的是,所述动态帧率大约为7,即所述图片帧播放装置每秒显示的帧数为7帧。
在本实施例中,所述基本帧率为终端显示动画效果的帧率,如所述图片帧播放装置能流畅显示动画效果的帧率为每秒20帧图片,由上述例子可知,当所述当前帧率为7帧每秒时,所述判断模块20即可判断当前帧率小于预设的基本帧率,可以理解的是,所述基本帧率也可根据需要预设为其他值,一般情况下,基本帧率大于或等于帧每秒。
在本实施例中,参照图7,所述创建模块30包括:
计算子模块31,用于当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
在本实施例中,当所述当前帧率小于所述基本帧率时,所述创建模块30创建目标图片帧,所述创建模块30创建目标图片帧的方式优选为,所述计算子模块31将所述基本帧率对应的帧数减去所述当前帧率对应的帧数,以计算待创建的目标图片帧对应的帧数,例如,所述当前帧率为7帧每秒,所述基本帧率为20帧每秒,则所述待创建图片帧对应的帧数为20-7=13帧。进一步地,若所述当前帧率为25帧每秒,而所述基本帧率为20帧每秒时,则所述当前帧率大于所述基本帧率,不需要创建目标图片帧,可以理解的是,当所述当前帧率等于所述基本帧率时,也不需要创建目标图片帧。
创建子模块32,用于对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧。
在本实施例中,参照图8,所述创建子模块32包括:
确定单元321,用于根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
分割单元322,用于根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
生成单元323,用于分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
在本实施例中,确定单元321根据预设的存储器中存储的图片按照需要创建的帧数,确定每帧图片按照红,绿,蓝像素增益比例分割的分割份数,每帧图片分割份数根据待创建图片帧的帧数决定,比如:需要创建的图片帧为12帧,则可确定每帧图片的分割份数为12,然后,所述分割单元322根据确定的分割份数12将每帧图像中的像素点进行像素增益比例分割,按照像素的红色增益的比例分割,可以得到不同的红色增益的图片,同理,按照像素的绿色增益的比例分割,可以得到不同的绿色增益的图片,按照像素的蓝色增益的比例分割,可以得到不同的蓝色增益的图片。为更好理解,举例如下:当待创建的图片帧数为13帧时,所述分割单元322将每帧图像的每个像素点进行像素增益比例分割,如红色像素点为C_RGain = 255,将该像素点进行比例分割,结果得到C_RGain(r1)=1/12 x C_RGain =21.25、C_RGain(r2)=2/12 x C_RGain = 42.5,…,C_RGain(r11)=11/12 x C_RGain= 233.75,C_RGain(r12)=12/12 x C_RGain= 255,同理C_GGain,C_BGain都相同的方法计算,可得绿色像素点进行像素增益比例分割的各个像素点以及蓝色像素点进行像素增益比例分割的各个像素点。然后,所述生成单元323将分割比例相等的各个像素点组合成图片,如分割比例为1/12的各个像素点组合成一帧图片,分割比例为2/12的各个像素点组合成一帧图片,即分割比例都为1/12的红色像素点、绿色像素点和蓝色像素点组成一帧图片,将分割比例都为2/12的红色像素点、绿色像素点和蓝色像素点组成一帧图片,最后,根据各帧组合成的图片生成图片帧。
在本实施例中,先读取DDR存储的图片,即当前帧率对应的图片帧,然后读取按照像素增益比例分割生成的目标图片帧,例如,所述图片帧播放装置原本当前帧率为8帧每秒,预设基本帧率为20帧每秒,创建出12帧图片时,即可使得当前帧率达到基本帧率,系统按照预设顺序依次显示所述当前帧率对应的8帧图片帧以及创建的12帧目标图片帧,所述播放模块40按照所述当前帧率20帧每秒播放接收到的图片,从而顺畅播放动画视频。
本实施例提出的图片帧播放装置,在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率,判断所述当前帧率是否小于预设的基本帧率,当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧,并播放所述当前存储的所述图片帧以及所述目标图片帧,使得终端的当前帧率可达到预设的基本帧率,提高了视频播放的流畅性。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (10)

  1. 一种图片帧播放方法,其特征在于,所述图片帧播放方法包括以下步骤:
    在接收到视频的播放请求时,获取终端当前存储的图片帧中第一帧图片帧的水平像素值和竖直像素值;
    将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
    将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率;
    判断所述当前帧率是否小于预设的基本帧率;
    当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
    对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧;
    播放当前存储的所述图片帧以及创建的所述目标图片帧。
  2. 如权利要求1所述的图片帧播放方法,其特征在于,所述对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧的步骤包括:
    根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
    根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
    分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
  3. 一种图片帧播放方法,其特征在于,所述图片帧播放方法包括以下步骤:
    在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率;
    判断所述当前帧率是否小于预设的基本帧率;
    当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧;
    播放当前存储的所述图片帧以及创建的所述目标图片帧。
  4. 如权利要求3所述的图片帧播放方法,其特征在于,在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率的步骤包括:
    在接收到视频的播放请求时,获取终端当前存储的图片帧中第一帧图片帧的水平像素值和竖直像素值;
    将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
    将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率。
  5. 如权利要求3所述的图片帧播放方法,其特征在于,所述当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧的步骤包括:
    当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
    对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧。
  6. 如权利要求5所述的图片帧播放方法,其特征在于,所述对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧的步骤包括:
    根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
    根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
    分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
  7. 一种图片帧播放装置,其特征在于,所述图片帧播放装置包括:
    确定模块,用于在接收到视频的播放请求时,根据预设的存储空间的大小以及当前存储的图片帧的像素值确定终端的当前帧率;
    判断模块,用于判断所述当前帧率是否小于预设的基本帧率;
    创建模块,用于当所述当前帧率小于所述基本帧率时,基于所述当前帧率对应的图片帧创建目标图片帧;
    播放模块,用于播放当前存储的所述图片帧以及创建的所述目标图片帧。
  8. 如权利要求7所述的图片帧播放装置,其特征在于,所述确定模块包括:
    获取单元,用于在接收到视频的播放请求时,获取当前存储图片帧中第一帧图片帧的水平像素值和竖直像素值;
    处理单元,用于将所述水平像素值与所述竖直像素值进行相乘,以得到所述图片帧的像素值;
    所述处理单元,还用于将预设的存储空间的存储容量值除以所述像素值,以得到所述当前帧率。
  9. 如权利要求7所述的图片帧播放装置,其特征在于,所述创建模块包括:
    计算子模块,用于当所述当前帧率小于所述基本帧率时,计算所述基本帧率对应的帧数与所述当前帧率对应的帧数的差值;
    创建子模块,用于对所述当前帧率对应的图片帧进行分割,以创建所述差值对应的帧数的目标图片帧。
  10. 如权利要求9所述的图片帧播放装置,其特征在于,所述创建子模块包括:
    确定单元,用于根据待创建目标图片帧对应的帧数,确定所述当前帧率对应的图片帧中每个像素点的分割份数;
    分割单元,用于根据所述分割份数对每个像素点按照分割比例的分子逐渐加一的比例进行分割,以得到不同分割比例的各个像素点;
    生成单元,用于分别将分割比例相等且位置信息相同的各个像素点组合成一个像素点,以生成目标图片帧。
PCT/CN2016/084218 2015-07-07 2016-06-01 图片帧播放方法和装置 WO2017005062A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510393809.XA CN105049914B (zh) 2015-07-07 2015-07-07 图片帧播放方法和装置
CN201510393809.X 2015-07-07

Publications (1)

Publication Number Publication Date
WO2017005062A1 true WO2017005062A1 (zh) 2017-01-12

Family

ID=54456037

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084218 WO2017005062A1 (zh) 2015-07-07 2016-06-01 图片帧播放方法和装置

Country Status (2)

Country Link
CN (1) CN105049914B (zh)
WO (1) WO2017005062A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112101104A (zh) * 2020-08-06 2020-12-18 深圳数联天下智能科技有限公司 人体存在检测方法及相关装置
CN113938631A (zh) * 2021-11-29 2022-01-14 青岛信芯微电子科技股份有限公司 一种基准监视器、图像帧截取方法及系统

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049914B (zh) * 2015-07-07 2019-02-26 深圳Tcl数字技术有限公司 图片帧播放方法和装置
CN105959304A (zh) * 2016-06-30 2016-09-21 宇龙计算机通信科技(深圳)有限公司 一种帧率调整的方法及装置
CN108574874B (zh) * 2017-03-10 2020-07-03 杭州海康威视数字技术股份有限公司 一种视频播放速度调整方法及装置
CN111918098A (zh) * 2020-09-16 2020-11-10 Oppo广东移动通信有限公司 视频处理方法、装置、电子设备、服务器及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621693A (zh) * 2009-07-31 2010-01-06 重庆大学 一种结合目标分割和不规则块补偿的帧频提升方法
CN101669361A (zh) * 2007-02-16 2010-03-10 马维尔国际贸易有限公司 用于改善低分辨率和低帧速率视频的方法和系统
CN103069458A (zh) * 2010-08-20 2013-04-24 高通股份有限公司 用于满足最小帧速率要求的图形呈现方法
CN103248950A (zh) * 2013-04-28 2013-08-14 天脉聚源(北京)传媒科技有限公司 一种视频帧率定制的系统及方法
CN104461520A (zh) * 2014-11-25 2015-03-25 广州酷狗计算机科技有限公司 动画的播放帧频调整方法及装置
CN105049914A (zh) * 2015-07-07 2015-11-11 深圳Tcl数字技术有限公司 图片帧播放方法和装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102194441A (zh) * 2010-03-10 2011-09-21 鸿富锦精密工业(深圳)有限公司 在电子装置中切换显示图片的方法
CN102811149B (zh) * 2011-12-07 2015-09-02 苏州科达科技股份有限公司 一种用于视频系统中的双卡前端设备及控制方法、系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669361A (zh) * 2007-02-16 2010-03-10 马维尔国际贸易有限公司 用于改善低分辨率和低帧速率视频的方法和系统
CN101621693A (zh) * 2009-07-31 2010-01-06 重庆大学 一种结合目标分割和不规则块补偿的帧频提升方法
CN103069458A (zh) * 2010-08-20 2013-04-24 高通股份有限公司 用于满足最小帧速率要求的图形呈现方法
CN103248950A (zh) * 2013-04-28 2013-08-14 天脉聚源(北京)传媒科技有限公司 一种视频帧率定制的系统及方法
CN104461520A (zh) * 2014-11-25 2015-03-25 广州酷狗计算机科技有限公司 动画的播放帧频调整方法及装置
CN105049914A (zh) * 2015-07-07 2015-11-11 深圳Tcl数字技术有限公司 图片帧播放方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112101104A (zh) * 2020-08-06 2020-12-18 深圳数联天下智能科技有限公司 人体存在检测方法及相关装置
CN112101104B (zh) * 2020-08-06 2024-04-09 深圳数联天下智能科技有限公司 人体存在检测方法及相关装置
CN113938631A (zh) * 2021-11-29 2022-01-14 青岛信芯微电子科技股份有限公司 一种基准监视器、图像帧截取方法及系统
CN113938631B (zh) * 2021-11-29 2023-11-03 青岛信芯微电子科技股份有限公司 一种基准监视器、图像帧截取方法及系统

Also Published As

Publication number Publication date
CN105049914B (zh) 2019-02-26
CN105049914A (zh) 2015-11-11

Similar Documents

Publication Publication Date Title
WO2017005062A1 (zh) 图片帧播放方法和装置
WO2018192253A1 (zh) 视频信号的传输方法及装置
WO2016029594A1 (zh) 终端连接显示设备的方法及系统
WO2017177524A1 (zh) 音视频同步播放的方法及装置
WO2019010926A1 (zh) 广告的推送方法、装置及计算机可读存储介质
WO2016091011A1 (zh) 字幕切换方法及装置
WO2017113600A1 (zh) 视频播放方法及装置
WO2018223607A1 (zh) 电视终端及hdr图像转为sdr的方法和计算机可读存储介质
WO2018094814A1 (zh) 视频合成方法及装置
WO2017005066A1 (zh) 录制音视频同步时间戳的方法和装置
WO2022025423A1 (en) Video quality assessing method and apparatus
WO2016101698A1 (zh) 基于dlna技术实现屏幕推送的方法及系统
WO2018103187A1 (zh) 监控装置的监控画面形成方法和系统
WO2017201893A1 (zh) 视频处理方法和装置
WO2017084302A1 (zh) 显示终端开机播放视频的方法及显示终端
WO2017206368A1 (zh) 高动态范围画面切换方法及装置
WO2018023926A1 (zh) 电视与移动终端的互动方法及系统
WO2017088427A1 (zh) 音频输出控制方法及装置
WO2018223602A1 (zh) 显示终端、画面对比度提高方法及计算机可读存储介质
WO2017148035A1 (zh) 图像处理方法及装置
WO2017190451A1 (zh) 图片推送方法和装置
WO2017020649A1 (zh) 音视频播放控制方法及装置
WO2017190452A1 (zh) 背光自适应调节方法及装置
WO2017041537A1 (zh) 视频帧率的调节方法及装置
WO2017121066A1 (zh) 应用程序显示方法和系统

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: 16820713

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 (EPO FORM 1205 DATED 28/05/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16820713

Country of ref document: EP

Kind code of ref document: A1