WO2017041537A1 - Video frame rate adjustment method and apparatus - Google Patents

Video frame rate adjustment method and apparatus Download PDF

Info

Publication number
WO2017041537A1
WO2017041537A1 PCT/CN2016/084108 CN2016084108W WO2017041537A1 WO 2017041537 A1 WO2017041537 A1 WO 2017041537A1 CN 2016084108 W CN2016084108 W CN 2016084108W WO 2017041537 A1 WO2017041537 A1 WO 2017041537A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame rate
frame
video
picture frame
gray pixel
Prior art date
Application number
PCT/CN2016/084108
Other languages
French (fr)
Chinese (zh)
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 WO2017041537A1 publication Critical patent/WO2017041537A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof

Definitions

  • the present invention relates to the field of video playback technologies, and in particular, to a method and an apparatus for adjusting a video frame rate.
  • 3D three-dimensional display
  • users can watch 3D programs directly on TV.
  • the widely used method for viewing 3D programs is to watch by wearing a polarized glasses 3D glasses, such as shutter glasses, but for shutter type 3D glasses, the left and right lenses are dynamically switched by black occlusion after power-on.
  • the pictures alternately pass through the left and right lenses, so that the left and right eyes of the person can receive two sets of pictures, and then the stereoscopic images are synthesized through the brain.
  • the program video is always switched at the highest frame rate, and the 3D glasses are correspondingly
  • the left and right lenses are dynamically switched at the highest frequency, and the power consumption is large, resulting in a very large power consumption of the glasses.
  • the invention provides a method and a device for adjusting a video frame rate, the main purpose of which is to reduce the power consumption of the 3D glasses by adjusting the TV video frame rate and thereby reduce the power consumption of the glasses.
  • the present invention provides a method for adjusting a video frame rate, which is applied to a smart TV and a 3D glasses that are matched with a smart TV.
  • the method for adjusting the video frame rate includes:
  • the frame rate of the cached picture frame is decreased according to an adjustment coefficient corresponding to the scale value of the gray pixel point;
  • the method for adjusting the video frame rate further includes:
  • the step of reducing the frame rate of the cached picture frame according to the adjustment factor of the scale value of the gray pixel point comprises:
  • the cached picture frame is gamma corrected according to the scale value of the gray pixel point, and the gamma corrected position is stored in the preset storage space.
  • the step of switching the cached picture frame according to the reduced frame rate includes:
  • the gamma-corrected cached picture frame is displayed according to the reduced frame rate.
  • the step of acquiring the ratio value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame includes:
  • a scale value of the gray pixel points in the respective pixel points is calculated according to pixel values of the respective pixel points.
  • the method for adjusting the video frame rate further includes:
  • the frame rate of the currently played video is detected, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame is obtained.
  • the step of performing gamma correction on the cached picture frame according to a scale value of the gray pixel point comprises:
  • the gamma curve of the cache picture frame is edited according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
  • the present invention further provides a method for adjusting a video frame rate, which is applied to a smart TV and a 3D glasses that are matched with a smart TV, and the method for adjusting the video frame rate includes:
  • the cached picture frame is gamma corrected according to the scale value of the gray pixel point, and the gamma corrected position is stored in the preset storage space.
  • the frequency change command modifies the dynamic switching frequency of the lens
  • the step of performing gamma correction on the cached picture frame according to a scale value of the gray pixel point comprises:
  • the gamma curve of the cache picture frame is edited according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
  • the present invention further provides a video frame rate adjusting apparatus, where the video frame rate adjusting apparatus includes:
  • the ratio acquisition module is configured to detect a frame rate of the currently played video, and obtain a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate;
  • a frame rate adjustment module configured to reduce a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point when a frame rate of the currently played video is greater than the preset frame rate
  • a video playing module configured to display the cached picture frame according to the reduced frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, where the 3D glasses are according to the received
  • the frequency change command modifies the dynamic switching frequency of the lens.
  • the frame rate adjustment module is further configured to: when the frame rate of the currently played video is less than the preset frame rate, increase the cached picture according to an adjustment factor corresponding to a scale value of the gray pixel point; Frame rate of the frame;
  • the video playing module is further configured to display the cached picture frame according to the increased frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, where the 3D glasses are received according to the The frequency change command modifies the dynamic switching frequency of the lens.
  • the frame rate adjustment module comprises:
  • a gamma correction unit configured to perform gamma correction on the cached picture frame according to a scale value of the gray pixel point when the frame rate of the played video is greater than a preset frame rate, and store in a preset storage space The cached picture frame after gamma correction;
  • a frame rate adjustment unit configured to reduce a frame rate of the gamma-corrected cached picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points
  • the video playing module is further configured to display the gamma-corrected cached picture frame according to the reduced frame rate.
  • the ratio acquisition module comprises:
  • a pixel acquiring unit configured to acquire a pixel value of each pixel of the cached picture frame
  • a ratio calculation unit configured to calculate a scale value of the gray pixel points in the respective pixel points according to pixel values of the respective pixel points.
  • the ratio obtaining module is further configured to: when receiving an instruction for adjusting a video frame rate, detect a frame rate of the currently played video, and obtain a proportion of gray pixels in a frame frame of the next frame of the currently played picture frame. value.
  • the gamma correction unit comprises:
  • a coefficient obtaining subunit configured to acquire a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a proportional value of the gray pixel point;
  • a gamma correction subunit configured to edit a gamma curve of the cache picture frame according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
  • the method and device for adjusting the video frame rate proposed by the invention while playing the current video, the smart TV plays the cached picture frame to be played in the next frame, and analyzes the pixel value of the cached picture frame to obtain the cache picture.
  • the ratio of the gray pixel points in the frame, the ratio of each gray pixel point corresponds to a preset frame rate, and the frame rate of the currently played video is greater than the preset frame rate corresponding to the gray pixel point in the cached picture frame.
  • the frame rate of the cached picture frame is reduced according to the preset adjustment coefficient, and the cached picture frame is switched according to the reduced frame rate, and the instruction is sent to the 3D glasses at the same time, so that the 3D glasses are frequency-switched, and the 3D glasses are lowered,
  • the dynamic switching frequency of the right lens reduces the power consumption of the 3D glasses to reduce the power consumption speed of the glasses.
  • FIG. 1 is a flowchart of a first embodiment of a method for adjusting a video frame rate according to the present invention
  • FIG. 2 is a detailed flowchart of a step of adjusting a video frame rate in a second embodiment of a method for adjusting a video frame rate according to the present invention
  • FIG. 3 is a schematic flowchart of a step of obtaining a proportion of gray pixel points in a cached picture frame in a third embodiment of the method for adjusting a video frame rate according to the present invention
  • FIG. 4 is a schematic flowchart of a gamma correction step in a fourth embodiment of a method for adjusting a video frame rate according to the present invention
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a video frame rate adjusting apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of a frame rate adjustment module in a second embodiment of a video frame rate adjustment apparatus according to the present invention.
  • FIG. 7 is a schematic diagram of a refinement function module of a proportional acquisition module in a third embodiment of the apparatus for adjusting a video frame rate according to the present invention.
  • FIG. 8 is a schematic diagram of a refinement function module of a gamma correction unit in a fourth embodiment of the apparatus for adjusting a video frame rate according to the present invention.
  • the invention provides a method for adjusting a video frame rate.
  • FIG. 1 a flowchart of a first embodiment of a method for adjusting a video frame rate according to the present invention is shown.
  • the method for adjusting the video frame rate includes:
  • step S10 the frame rate of the currently played video is detected, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame is obtained, and the ratio value of each gray pixel point corresponds to a preset frame rate.
  • a corresponding preset frame rate can be set for each gray pixel point scale value, and a mapping relationship between the gray pixel point scale value and the preset frame rate can be set, and the ratio of the gray pixel points is from 0.
  • the proportion of gray pixels when the proportion of gray pixels is large, it can correspond to a smaller preset frame rate.
  • the proportion of gray pixels is small, it can correspond to a larger preset frame rate, in this embodiment.
  • the frame rate of 120 Hz is set, and when the ratio of the gray pixel points is in the range of 1/3-2/3, the frame rate of 80 Hz is set, When the ratio of gray pixels is in the range of 2/3-1, the frame rate of 40 Hz is set. In other real-time examples, other corresponding values or numerical intervals can be set.
  • the frame rate of the currently played video is detected, and Obtaining a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate.
  • step S20 when the frame rate of the currently played video is greater than the preset frame rate, the frame rate of the cached picture frame is reduced according to an adjustment coefficient corresponding to the proportion of the gray pixel points.
  • the frame rate of the currently played video is greater than the preset frame rate corresponding to the ratio of the gray pixels in the next frame buffer picture frame, the gray frame point ratio of the next frame buffer picture frame is higher, and the frame rate can be lower.
  • the playback frame rate of the current video is relatively large for the next frame buffer picture frame. Therefore, the frame rate can be reduced according to the adjustment coefficient corresponding to the proportion of the gray pixel points to adapt to the playback of the next frame buffer picture.
  • Step S30 displaying the cached picture frame according to the reduced frame rate, and sending a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to change the instruction according to the received frequency. Modify the dynamic switching frequency of the lens.
  • the ratio of the gray pixel points to all the pixel points is divided into a plurality of different sections, and different adjustments are set for different sections.
  • the coefficient for example, the current playback frame rate is 120 Hz.
  • the frame rate switches the buffer picture frame; in other embodiments, when the gray pixel point ratio value is greater than the preset scale value, a certain adjustment coefficient may be set, and the frame rate of the cache picture frame is adjusted according to the fixed adjustment coefficient.
  • the adjustment coefficient is appropriately set to avoid the frame rate after adjustment is too small, because the minimum frame rate that can be resolved by the human eye is 24, so if the frame rate is reduced to too small, the picture transition may be inconsistent. , affecting users to watch TV programs normally.
  • the 3D glasses Transmitting the frequency change instruction to the 3D glasses while switching the cache picture frame at the reduced frame rate.
  • the 3D glasses After receiving the instruction, modify the dynamic switching frequency of the left and right lenses to play the video frame according to the above instruction. Rate synchronization to reduce the power consumption of 3D glasses.
  • the method for adjusting the video frame rate further includes:
  • the current playback frame rate is smaller for the next frame buffer picture frame, and the gray frame point ratio of the next frame buffer picture frame is smaller, and the frame rate can be higher. Playback, when still playing at the adjusted lower frame rate, will affect the smoothness of the picture. At this time, the frame rate needs to be increased to accommodate the switching of the next frame buffer picture frame. While the frame rate switches the next frame buffer picture frame, the frequency change command is sent to the 3D glasses for the 3D glasses to modify the dynamic switching frequency of the lens according to the received frequency change command.
  • the current playback frame rate is equal to the preset frame rate, it indicates that the current playback frame rate is suitable for the playback of the picture frame of the next frame buffer, and there is no need to adjust the frame rate.
  • the method proposed in this embodiment is not limited to playing a 3D program on a smart TV.
  • the frame rate can also be adjusted by the method to reduce the 3D glasses. Power consumption.
  • the smart frame plays the current video, reads the cached picture frame, and analyzes the pixel value of the cached picture frame to obtain the gray pixel point in the cached picture frame.
  • the ratio value, the ratio of each gray pixel point corresponds to a preset frame rate, and the frame rate of the currently played video is greater than the preset frame rate corresponding to the ratio of the gray pixel points in the cached picture frame, according to preset adjustment
  • the coefficient reduces the frame rate of the cached picture frame, and switches the cache picture frame according to the reduced frame rate, and simultaneously sends instructions to the 3D glasses to make the frequency switching of the 3D glasses, reducing the frequency of the 3D glasses, thereby reducing the work of the 3D glasses. It is used to reduce the power consumption speed of the glasses.
  • step S20 includes the following refinement steps:
  • Step S21 when the frame rate of the played video is greater than the preset frame rate, performing gamma correction on the cached picture frame according to the ratio of the gray pixel points, and storing the gamma corrected after the preset storage space is stored.
  • the cached picture frame
  • Step S22 reducing a frame rate of the gamma-corrected cache picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points.
  • the cache picture frame with reduced frame rate is performed.
  • the gamma correction coefficient is still determined according to the proportion of the gray pixel points, for example, the ratio of the gray pixel point to the gamma correction coefficient.
  • the proportion of the gray pixel points for example, the ratio of the gray pixel point to the gamma correction coefficient.
  • the gamma-corrected cache picture frame is stored in a preset storage space, and the storage space may be a default storage space of the television or a storage space preset by the user.
  • Step S30 includes: displaying the gamma-corrected cached picture frame according to the reduced frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to receive according to the frame rate
  • the frequency change command to the modification modifies the dynamic switching frequency of the lens.
  • the gamma-corrected cached picture frame is switched according to the reduced frame rate, and the frequency change command is sent to the 3D glasses.
  • the method proposed in this embodiment performs gamma correction on the buffer picture frame according to the proportion of the gray pixel points while adjusting the frame rate according to the ratio of the gray pixel points, so as to adjust the contrast of the cache picture frame, so that the frame rate is reduced.
  • the cached picture frame can smoothly transition during playback, giving users a better visual effect.
  • step S10 includes the following refinement steps:
  • Step S11 acquiring pixel values of each pixel in the next frame buffer picture frame of the currently played picture frame
  • Step S12 calculating a scale value of the gray pixel points in the respective pixel points according to pixel values of the respective pixel points.
  • the RGB (red, green, and blue) pixel values of each pixel in the cached picture frame are obtained.
  • Each column has 1080 pixels, and the RGB pixel values of the pixels are sequentially arranged in the horizontal direction and the vertical direction, and judged one by one.
  • the ratio of gray pixel points is divided into three sections: 0-1/3, 1/3-2/3, 2/3-1.
  • the ratio of gray pixel points is greater than 1/3, the frame rate of the cached picture frame is reduced according to a preset adjustment coefficient; when the ratio of gray pixel points is in the range of 1/3-2/3, according to the adjustment of 2/3 The coefficient reduces the frame rate.
  • the gray pixel point ratio is in the 2/3-1 interval, the frame rate is reduced by an adjustment factor of 1/3.
  • step S21 includes the following refinement steps:
  • Step S211 acquiring a gamma correction coefficient corresponding to the proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a proportional value of the gray pixel point;
  • Step S212 editing a gamma curve of the cache picture frame according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
  • the gamma correction coefficient is 1, that is, the contrast of the buffer picture frame is not adjusted, and the gamma correction coefficient is selected when the gray pixel point ratio value is in the range of 1/3-2/3. 1.4, when the gray pixel point ratio value is in the 2/3-1 interval, the gamma correction coefficient is selected to be 2.5.
  • four or more grays may be set for more accurate gamma correction.
  • the interval of the pixel point ratio value, and the corresponding gamma correction coefficient is set for each interval, so that the corrected picture frame has an appropriate contrast, which brings a better visual effect to the user.
  • the method proposed in this embodiment performs gamma correction on the cached picture frame according to the ratio of the gray pixel points according to the correspondence between the preset gamma correction coefficient and the gray pixel ratio value, and improves the contrast of the cached picture frame.
  • the color of the picture frame is more smooth when switching, which gives the user a good viewing experience.
  • the invention also proposes a device for adjusting the video frame rate.
  • FIG. 5 it is a schematic diagram of functional modules of a first embodiment of a video frame rate adjusting apparatus according to the present invention.
  • the adjusting device of the video frame rate comprises:
  • the ratio obtaining module 10 is configured to detect a frame rate of the currently played video, and obtain a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate. .
  • a corresponding preset frame rate can be set for each gray pixel point scale value, and a mapping relationship between the gray pixel point scale value and the preset frame rate can be set, and the ratio of the gray pixel points is from 0.
  • the proportion of gray pixels when the proportion of gray pixels is large, it can correspond to a smaller preset frame rate.
  • the proportion of gray pixels is small, it can correspond to a larger preset frame rate, in this embodiment.
  • the frame rate of 120 Hz is set, and when the ratio of the gray pixel points is in the range of 1/3-2/3, the frame rate of 80 Hz is set, When the ratio of gray pixels is in the range of 2/3-1, the frame rate of 40 Hz is set. In other real-time examples, other corresponding values or numerical intervals can be set.
  • the ratio obtaining module 10 may detect the current playing when receiving the instruction of the video frame rate adjustment, or detecting that the television system starts to play the 3D program, or detecting that the television and the 3D glasses are in a connected state.
  • the frame rate adjustment module 20 is configured to: when the ratio of the gray pixel points is greater than a preset ratio value, reduce a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points.
  • the frame rate adjustment module 20 can reduce the frame rate according to the adjustment coefficient corresponding to the proportion of the gray pixel points to adapt to the next frame. Cache the playback of the picture.
  • the video playing module 30 is configured to display the cached picture frame according to the reduced frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to be received according to the received
  • the frequency change command modifies the dynamic switching frequency of the lens.
  • the gray pixel points occupy the ratio of all the pixel points into a plurality of different intervals, which are different. Different adjustment factors are set in the interval.
  • the current playback frame rate is 120 Hz.
  • the video playback module 30 switches the buffer picture frame according to the frame rate of 80 Hz; in other embodiments, a certain adjustment coefficient may be set when the gray pixel point ratio value is greater than the preset ratio value, according to the fixed adjustment coefficient.
  • the adjustment coefficient is appropriately set to prevent the adjusted frame rate from being too small, because the minimum frame rate that can be resolved by the human eye is 24, so if the frame rate is reduced to Too small will lead to inconsistent picture transitions, affecting users to watch TV programs normally.
  • the video playing module 30 sends a frequency change command to the 3D glasses while switching the cache picture frame at the reduced frame rate.
  • the 3D glasses modify the dynamic switching frequency of the left and right lenses according to the above instruction.
  • the playback frame rate of the video is synchronized to reduce the power consumption of the 3D glasses.
  • the frame rate adjustment module 20 is further configured to: when the frame rate of the currently played video is less than the preset frame rate, increase the cached picture frame according to an adjustment factor corresponding to a scale value of the gray pixel point Frame rate
  • the video playing module 30 is further configured to display the cached picture frame according to the increased frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, so that the 3D glasses are received according to the received
  • the frequency change command modifies the dynamic switching frequency of the lens.
  • the frame rate adjustment module 20 detects that the current frame rate is lower than the preset frame rate, the current frame rate is smaller for the next frame buffer picture frame, and the gray frame point ratio of the next frame buffer picture frame is smaller. Play at a higher frame rate, when still playing at the adjusted lower frame rate, it will affect the smoothness of the picture. At this time, the frame rate needs to be increased to adapt to the switching of the next frame buffer picture frame.
  • the video playing module 30 transmits a frequency change command to the 3D glasses while switching the next frame buffer picture frame at the increased frame rate, so that the 3D glasses modify the dynamic switching frequency of the lens according to the received frequency change command.
  • the current playback frame rate is equal to the preset frame rate, it indicates that the current playback frame rate is suitable for the playback of the picture frame of the next frame buffer, and there is no need to adjust the frame rate.
  • the device proposed in this embodiment is not limited to playing a 3D program on a smart TV.
  • the frame rate can also be adjusted through the device to reduce the 3D glasses. Power consumption.
  • the apparatus for adjusting a video frame rate reads a cached picture frame while the smart TV plays the current video, and analyzes a pixel value of the cached picture frame to obtain a gray pixel point in the cached picture frame.
  • the ratio value, the ratio of each gray pixel point corresponds to a preset frame rate, and the frame rate of the currently played video is greater than the preset frame rate corresponding to the ratio of the gray pixel points in the cached picture frame, according to preset adjustment
  • the coefficient reduces the frame rate of the cached picture frame, and switches the cache picture frame according to the reduced frame rate, and simultaneously sends instructions to the 3D glasses to make the frequency switching of the 3D glasses, reducing the frequency of the 3D glasses, thereby reducing the work of the 3D glasses. It is used to reduce the power consumption speed of the glasses.
  • the frame rate adjustment module 20 includes the following units:
  • a gamma correction unit 21 when the frame rate of the played video is greater than a preset frame rate, gamma correction is performed on the cached picture frame according to a ratio of the gray pixel points, and stored in a preset storage space The cached picture frame after horse correction.
  • the gamma correction unit 21 When the frame rate of the played video is greater than the preset frame rate, it indicates that the gray value of the next frame buffer picture frame is higher than the currently played picture frame or the scene is darker, and the cache picture frame with reduced frame rate is performed. Performing gamma correction to adjust the contrast of the picture frame.
  • the gamma correction unit 21 performs gamma correction, the gamma correction coefficient is still determined according to the proportion of the gray pixel points, for example, the ratio of the gray pixel points and the gamma A certain linear relationship is set between the horse correction coefficients, or a certain gamma correction coefficient is set.
  • the gamma correction unit 21 performs gamma correction according to the gamma correction coefficient, preferably Ground, the gamma correction factor is between 1.0 and 2.4.
  • the gamma-corrected cache picture frame is stored in a preset storage space, and the storage space may be a default storage space of the television or a storage space preset by the user.
  • the frame rate adjustment unit 22 is configured to reduce a frame rate of the gamma-corrected cached picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points.
  • the video playing module 30 is further configured to display the gamma-corrected cached picture frame according to the reduced frame rate.
  • the video playback module 30 switches the gamma-corrected cached picture frame according to the reduced frame rate, and sends a frequency change command to the 3D glasses.
  • the apparatus proposed in this embodiment performs gamma correction on the buffer picture frame according to the ratio of the gray pixel points while adjusting the frame rate according to the ratio of the gray pixel points, so as to adjust the contrast of the cache picture frame, so that the frame rate is reduced.
  • the cached picture frame can smoothly transition during playback, giving users a better visual effect.
  • the ratio acquisition module 10 includes the following units:
  • the pixel obtaining unit 11 is configured to acquire a pixel value of each pixel in the next frame buffer picture frame of the currently played picture frame;
  • the ratio calculation unit 12 is configured to calculate a scale value of the gray pixel points in the respective pixel points according to the pixel values of the respective pixel points.
  • the RGB (red, green, and blue) pixel values of each pixel in the cached picture frame are obtained.
  • Each column has 1080 pixels, and the pixel obtaining unit 21 sequentially aligns the RGB pixel values of the pixels in the horizontal direction and the vertical direction, and judges one by one.
  • the point is a gray pixel.
  • the scale calculation unit 22 calculates the total number of these gray pixel points and calculates the proportion of them in all the pixel points.
  • the gray pixel point scale value of each row may be calculated first, and then the scale values of all gray pixel points may be calculated.
  • the ratio of gray pixel points is divided into three sections: 0-1/3, 1/3-2/3, 2/3-1.
  • the ratio of gray pixel points is greater than 1/3, the frame rate of the cached picture frame is reduced according to a preset adjustment coefficient; when the ratio of gray pixel points is in the range of 1/3-2/3, according to the adjustment of 2/3 The coefficient reduces the frame rate.
  • the gray pixel point ratio is in the 2/3-1 interval, the frame rate is reduced by an adjustment factor of 1/3.
  • the gamma correction unit 21 includes the following subunits:
  • a coefficient acquisition sub-unit 211 configured to acquire a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a proportional value of the gray pixel point;
  • the gamma correction sub-unit 212 is configured to edit the gamma curve of the cache picture frame according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
  • the gamma correction coefficient is 1, that is, the contrast of the cache picture frame is not adjusted, and when the gray pixel point ratio value is in the 1/3-2/3 interval, the coefficient acquisition sub-unit 211
  • the gamma correction coefficient is selected to be 1.4, and when the gray pixel point ratio value is in the 2/3-1 interval, the coefficient acquisition sub-unit 211 selects the gamma correction coefficient to be 2.5, and in other embodiments, the gamma correction sub-unit 212 is more accurate.
  • the device proposed in this embodiment performs gamma correction on the cached picture frame according to the ratio between the preset gamma correction coefficient and the gray pixel ratio value, and improves the contrast of the cached picture frame according to the ratio of the gray pixel points.
  • the color of the picture frame is more smooth when switching, which gives the user a good viewing experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

Disclosed in the present invention is a video frame rate adjustment method, said method comprising: detecting the frame rate of a currently playing video, and acquiring the proportion values of the grey pixels in the next buffered picture frame after the currently playing picture frame, the proportion value of each grey pixel corresponding to a preset frame rate; when the frame rate of the currently playing video is greater than the preset frame rate, reducing the frame rate of the buffered picture frame on the basis of adjustment coefficients corresponding to the proportion values of the grey pixels; displaying the buffered picture frames according to the reduced frame rate, and on the basis of the frame rate, sending a frequency change command to 3D glasses, thus providing the 3D glasses with a dynamic switching frequency for adjusting the lenses on the basis of the received frequency command. Also provided in the present invention is a video frame rate adjustment apparatus. By means of adjusting the frame rate of a television video, the present invention decreases the power consumption of 3-D glasses and thus reduces the speed that the glasses consume electricity.

Description

视频帧率的调节方法及装置  Video frame rate adjustment method and device
技术领域Technical field
本发明涉及视频播放技术领域,尤其涉及一种视频帧率的调节方法及装置。The present invention relates to the field of video playback technologies, and in particular, to a method and an apparatus for adjusting a video frame rate.
背景技术Background technique
随着智能电视的发展,越来越流行3D(three-dimensional,三维空间显示)技术,用户可以直接在电视上观看3D节目。目前广泛应用的收看3D节目的方法是通过佩戴一个偏振光眼镜3D眼镜进行收看,例如快门式眼镜等,但是对于快门式3D眼镜,其通过通电后黑色遮挡对左、右镜片进行动态切换,使画面交替的通过左、右镜片,这样人的左右眼就能接收两组画面,再经过大脑合成立体影像,但是,由于观看3D节目时,节目视频一直在以最高帧率切换,3D眼镜相应地一直以最高频率对左、右镜片进行动态切换,功耗大进而导致眼镜耗电量非常大。With the development of smart TV, 3D (three-dimensional display) technology is becoming more and more popular, and users can watch 3D programs directly on TV. At present, the widely used method for viewing 3D programs is to watch by wearing a polarized glasses 3D glasses, such as shutter glasses, but for shutter type 3D glasses, the left and right lenses are dynamically switched by black occlusion after power-on. The pictures alternately pass through the left and right lenses, so that the left and right eyes of the person can receive two sets of pictures, and then the stereoscopic images are synthesized through the brain. However, since the 3D program is viewed, the program video is always switched at the highest frame rate, and the 3D glasses are correspondingly The left and right lenses are dynamically switched at the highest frequency, and the power consumption is large, resulting in a very large power consumption of the glasses.
发明内容Summary of the invention
本发明提供一种视频帧率的调节方法及装置,其主要目的在于通过调节电视视频帧率,降低3D眼镜的功耗进而减小眼镜的耗电量。The invention provides a method and a device for adjusting a video frame rate, the main purpose of which is to reduce the power consumption of the 3D glasses by adjusting the TV video frame rate and thereby reduce the power consumption of the glasses.
为实现上述目的,本发明提供一种视频帧率的调节方法,其应用于智能电视以及与智能电视配套的3D眼镜中,该视频帧率的调节方法包括: To achieve the above object, the present invention provides a method for adjusting a video frame rate, which is applied to a smart TV and a 3D glasses that are matched with a smart TV. The method for adjusting the video frame rate includes:
检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率;Detecting a frame rate of the currently played video, and obtaining a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate;
当所述当前播放视频的帧率大于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数减小所述缓存图片帧的帧率;When the frame rate of the currently played video is greater than the preset frame rate, the frame rate of the cached picture frame is decreased according to an adjustment coefficient corresponding to the scale value of the gray pixel point;
按照减小后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Displaying the cached picture frame according to the reduced frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to modify the lens according to the received frequency change instruction Dynamic switching frequency.
优选地,所述检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率的步骤之后,所述视频帧率的调节方法还包括:Preferably, the detecting the frame rate of the currently played video, and acquiring the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, and the step of each gray pixel point corresponding to a preset frame rate Thereafter, the method for adjusting the video frame rate further includes:
当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;When the frame rate of the currently played video is smaller than the preset frame rate, increasing a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point;
按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Displaying the cached picture frame according to the increased frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to modify the lens according to the received frequency change instruction. Dynamic switching frequency.
优选地,所述当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值的调节系数减小所述缓存图片帧的帧率的步骤包括:Preferably, when the frame rate of the played video is greater than the preset frame rate, the step of reducing the frame rate of the cached picture frame according to the adjustment factor of the scale value of the gray pixel point comprises:
当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧;When the frame rate of the played video is greater than the preset frame rate, the cached picture frame is gamma corrected according to the scale value of the gray pixel point, and the gamma corrected position is stored in the preset storage space. Cache picture frame;
根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率;Decreasing a frame rate of the cached picture frame after gamma correction according to an adjustment coefficient corresponding to a ratio of the gray pixel points;
所述按照减小后的所述帧率切换所述缓存图片帧的步骤包括:The step of switching the cached picture frame according to the reduced frame rate includes:
按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧。The gamma-corrected cached picture frame is displayed according to the reduced frame rate.
优选地,所述获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值的步骤包括:Preferably, the step of acquiring the ratio value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame includes:
获取当前播放图片帧的下一帧缓存图片帧中各个像素点的像素值;Obtaining a pixel value of each pixel in the next frame buffer picture frame of the currently played picture frame;
根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。A scale value of the gray pixel points in the respective pixel points is calculated according to pixel values of the respective pixel points.
优选地,所述视频帧率的调节方法还包括:Preferably, the method for adjusting the video frame rate further includes:
在接收到视频帧率调节的指令时,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值。When receiving the instruction of the video frame rate adjustment, the frame rate of the currently played video is detected, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame is obtained.
优选地,所述根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正的步骤包括:Preferably, the step of performing gamma correction on the cached picture frame according to a scale value of the gray pixel point comprises:
按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;Obtaining a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a ratio of the gray pixel points;
按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。The gamma curve of the cache picture frame is edited according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
此外,为实现上述目的,本发明还提供一种视频帧率的调节方法,其应用于智能电视以及与智能电视配套的3D眼镜中,该视频帧率的调节方法包括:In addition, in order to achieve the above object, the present invention further provides a method for adjusting a video frame rate, which is applied to a smart TV and a 3D glasses that are matched with a smart TV, and the method for adjusting the video frame rate includes:
检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率;Detecting a frame rate of the currently played video, and obtaining a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate;
当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧;When the frame rate of the played video is greater than the preset frame rate, the cached picture frame is gamma corrected according to the scale value of the gray pixel point, and the gamma corrected position is stored in the preset storage space. Cache picture frame;
根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率;Decreasing a frame rate of the cached picture frame after gamma correction according to an adjustment coefficient corresponding to a ratio of the gray pixel points;
按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率;Displaying the gamma-corrected cached picture frame according to the reduced frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to be according to the received The frequency change command modifies the dynamic switching frequency of the lens;
当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;When the frame rate of the currently played video is smaller than the preset frame rate, increasing a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point;
按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Displaying the cached picture frame according to the increased frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to modify the lens according to the received frequency change instruction. Dynamic switching frequency.
优选地,所述根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正的步骤包括:Preferably, the step of performing gamma correction on the cached picture frame according to a scale value of the gray pixel point comprises:
按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;Obtaining a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a ratio of the gray pixel points;
按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。The gamma curve of the cache picture frame is edited according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
此外,为实现上述目的,本发明还提供一种视频帧率的调节装置,该视频帧率的调节装置包括:In addition, in order to achieve the above object, the present invention further provides a video frame rate adjusting apparatus, where the video frame rate adjusting apparatus includes:
比例获取模块,用于检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率;The ratio acquisition module is configured to detect a frame rate of the currently played video, and obtain a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate;
帧率调节模块,用于当所述当前播放视频的帧率大于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数减小所述缓存图片帧的帧率;a frame rate adjustment module, configured to reduce a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point when a frame rate of the currently played video is greater than the preset frame rate;
视频播放模块,用于按照减小后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。a video playing module, configured to display the cached picture frame according to the reduced frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, where the 3D glasses are according to the received The frequency change command modifies the dynamic switching frequency of the lens.
优选地,所述帧率调节模块,还用于当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;Preferably, the frame rate adjustment module is further configured to: when the frame rate of the currently played video is less than the preset frame rate, increase the cached picture according to an adjustment factor corresponding to a scale value of the gray pixel point; Frame rate of the frame;
所述视频播放模块,还用于按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。The video playing module is further configured to display the cached picture frame according to the increased frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, where the 3D glasses are received according to the The frequency change command modifies the dynamic switching frequency of the lens.
优选地,所述帧率调节模块包括:Preferably, the frame rate adjustment module comprises:
伽马校正单元,用于当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧;a gamma correction unit, configured to perform gamma correction on the cached picture frame according to a scale value of the gray pixel point when the frame rate of the played video is greater than a preset frame rate, and store in a preset storage space The cached picture frame after gamma correction;
帧率调节单元,用于根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率;a frame rate adjustment unit, configured to reduce a frame rate of the gamma-corrected cached picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points;
所述视频播放模块,还用于按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧。The video playing module is further configured to display the gamma-corrected cached picture frame according to the reduced frame rate.
优选地,所述比例获取模块包括:Preferably, the ratio acquisition module comprises:
像素获取单元,用于获取所述缓存图片帧的各个像素点的像素值;a pixel acquiring unit, configured to acquire a pixel value of each pixel of the cached picture frame;
比例计算单元,用于根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。And a ratio calculation unit configured to calculate a scale value of the gray pixel points in the respective pixel points according to pixel values of the respective pixel points.
优选地,所述比例获取模块,还用于在接收到视频帧率调节的指令时,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值。Preferably, the ratio obtaining module is further configured to: when receiving an instruction for adjusting a video frame rate, detect a frame rate of the currently played video, and obtain a proportion of gray pixels in a frame frame of the next frame of the currently played picture frame. value.
优选地,所述伽马校正单元包括:Preferably, the gamma correction unit comprises:
系数获取子单元,用于按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;a coefficient obtaining subunit, configured to acquire a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a proportional value of the gray pixel point;
伽马校正子单元,用于按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。a gamma correction subunit, configured to edit a gamma curve of the cache picture frame according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
本发明提出的视频帧率的调节方法及装置,在智能电视播放当前视频的同时,读取下一帧待播放的缓存图片帧,并对该缓存图片帧的像素值进行分析,获取该缓存图片帧中的灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率,当前播放视频的帧率大于该缓存图片帧中的灰色像素点的比例值对应的预设帧率时,按照预设的调节系数减小缓存图片帧的帧率,并按照减小后的帧率切换缓存图片帧,同时向3D眼镜发送指令,以使3D眼镜进行频率切换,降低3D眼镜左、右镜片的动态切换频率,进而降低3D眼镜的功耗以减小眼镜的耗电速度。The method and device for adjusting the video frame rate proposed by the invention, while playing the current video, the smart TV plays the cached picture frame to be played in the next frame, and analyzes the pixel value of the cached picture frame to obtain the cache picture. The ratio of the gray pixel points in the frame, the ratio of each gray pixel point corresponds to a preset frame rate, and the frame rate of the currently played video is greater than the preset frame rate corresponding to the gray pixel point in the cached picture frame. The frame rate of the cached picture frame is reduced according to the preset adjustment coefficient, and the cached picture frame is switched according to the reduced frame rate, and the instruction is sent to the 3D glasses at the same time, so that the 3D glasses are frequency-switched, and the 3D glasses are lowered, The dynamic switching frequency of the right lens, in turn, reduces the power consumption of the 3D glasses to reduce the power consumption speed of the glasses.
附图说明DRAWINGS
图1为本发明视频帧率的调节方法第一实施例的流程图;1 is a flowchart of a first embodiment of a method for adjusting a video frame rate according to the present invention;
图2为本发明视频帧率的调节方法第二实施例中调节视频帧率步骤的细化流程图;2 is a detailed flowchart of a step of adjusting a video frame rate in a second embodiment of a method for adjusting a video frame rate according to the present invention;
图3为本发明视频帧率的调节方法第三实施例中获取缓存图片帧中灰色像素点的比例步骤的细化流程示意图;3 is a schematic flowchart of a step of obtaining a proportion of gray pixel points in a cached picture frame in a third embodiment of the method for adjusting a video frame rate according to the present invention;
图4为本发明视频帧率的调节方法第四实施例中伽马校正步骤的细化流程示意图;4 is a schematic flowchart of a gamma correction step in a fourth embodiment of a method for adjusting a video frame rate according to the present invention;
图5为本发明视频帧率的调节装置第一实施例的功能模块示意图;FIG. 5 is a schematic diagram of functional modules of a first embodiment of a video frame rate adjusting apparatus according to the present invention; FIG.
图6为本发明视频帧率的调节装置第二实施例中帧率调节模块的细化功能模块示意图;6 is a schematic diagram of a refinement function module of a frame rate adjustment module in a second embodiment of a video frame rate adjustment apparatus according to the present invention;
图7为本发明视频帧率的调节装置第三实施例中比例获取模块的细化功能模块示意图;7 is a schematic diagram of a refinement function module of a proportional acquisition module in a third embodiment of the apparatus for adjusting a video frame rate according to the present invention;
图8为本发明视频帧率的调节装置第四实施例中伽马校正单元的细化功能模块示意图。FIG. 8 is a schematic diagram of a refinement function module of a gamma correction unit in a fourth embodiment of the apparatus for adjusting a video frame rate according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种视频帧率的调节方法。The invention provides a method for adjusting a video frame rate.
参照图1所示,为本发明视频帧率的调节方法第一实施例的流程图。Referring to FIG. 1, a flowchart of a first embodiment of a method for adjusting a video frame rate according to the present invention is shown.
在第一实施例中,该视频帧率的调节方法包括:In the first embodiment, the method for adjusting the video frame rate includes:
步骤S10,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率。In step S10, the frame rate of the currently played video is detected, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame is obtained, and the ratio value of each gray pixel point corresponds to a preset frame rate.
当在智能电视上播放3D电视节目时,需要佩戴3D眼镜进行收看,现有的智能电视在播放3D电视节目时,一般会以比较高的帧率播放,以增加视频播放的流畅度,在播放视频的当前帧时,电视***会在缓存区域缓存下一帧即将播放的图片帧。当3D视频中的帧画面灰色像素点占的比例比较大的时候,看到的画面清晰度比较低,即便图像本身是灰色的看不清的场景,仍然以高帧率在切换,因此,可以在这些灰色像素点比较多的帧切换时降低帧率。即可以为每一灰色像素点的比例值设置对应的预设帧率,可以将灰色像素点的比例值与预设帧率之间设置一一对应的映射关系,灰色像素点的比例在从0-1的范围内变化,当灰色像素点的比例较大时,可以对应较小的预设帧率,当灰色像素点的比例较小时,可以对应较大的预设帧率,在本实施例中,当灰色像素点的比例在0-1/3的范围内时,设置120Hz的帧率,当灰色像素点的比例在1/3-2/3的范围内时,设置80Hz的帧率,当灰色像素点的比例在2/3-1的范围内时,设置40Hz的帧率,在其他实时例中,可以设置其他的对应数值或者数值区间。When playing 3D TV programs on a smart TV, you need to wear 3D glasses to watch. When the existing smart TVs play 3D TV programs, they will generally play at a higher frame rate to increase the smoothness of video playback. When the current frame of the video is in use, the television system buffers the picture frame to be played in the next frame in the buffer area. When the proportion of gray pixels in the frame of the 3D video is relatively large, the clarity of the picture is relatively low. Even if the image itself is gray and the scene is not clear, it is still switched at a high frame rate. The frame rate is reduced when more of these gray pixel points are switched. That is, a corresponding preset frame rate can be set for each gray pixel point scale value, and a mapping relationship between the gray pixel point scale value and the preset frame rate can be set, and the ratio of the gray pixel points is from 0. In the range of -1, when the proportion of gray pixels is large, it can correspond to a smaller preset frame rate. When the proportion of gray pixels is small, it can correspond to a larger preset frame rate, in this embodiment. In the case where the ratio of the gray pixel points is in the range of 0-1/3, the frame rate of 120 Hz is set, and when the ratio of the gray pixel points is in the range of 1/3-2/3, the frame rate of 80 Hz is set, When the ratio of gray pixels is in the range of 2/3-1, the frame rate of 40 Hz is set. In other real-time examples, other corresponding values or numerical intervals can be set.
本实施例可以在接收到视频帧率调节的指令时,或者检测到电视***开始播放3D节目时,或者检测到电视机与3D眼镜之间为连接状态时,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,其中,每一灰色像素点的比例值对应一预设帧率。In this embodiment, when the instruction of the video frame rate adjustment is received, or when the television system starts to play the 3D program, or when the connection state between the television set and the 3D glasses is detected, the frame rate of the currently played video is detected, and Obtaining a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate.
步骤S20,当所述当前播放视频的帧率大于所述预设帧率时,根据所述灰色像素点的比例对应的调节系数减小所述缓存图片帧的帧率。In step S20, when the frame rate of the currently played video is greater than the preset frame rate, the frame rate of the cached picture frame is reduced according to an adjustment coefficient corresponding to the proportion of the gray pixel points.
当前播放视频的帧率大于下一帧缓存图片帧中灰色像素点的比例值对应的预设帧率时,说明下一帧缓存图片帧的灰色像素点比例较高,可以以较低的帧率进行播放,而当前视频的播放帧率对于下一帧缓存图片帧来说比较大,因此,可以根据灰色像素点的比例对应的调节系数将帧率降低,以适应下一帧缓存图片的播放。When the frame rate of the currently played video is greater than the preset frame rate corresponding to the ratio of the gray pixels in the next frame buffer picture frame, the gray frame point ratio of the next frame buffer picture frame is higher, and the frame rate can be lower. The playback frame rate of the current video is relatively large for the next frame buffer picture frame. Therefore, the frame rate can be reduced according to the adjustment coefficient corresponding to the proportion of the gray pixel points to adapt to the playback of the next frame buffer picture.
步骤S30,按照减小后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Step S30, displaying the cached picture frame according to the reduced frame rate, and sending a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to change the instruction according to the received frequency. Modify the dynamic switching frequency of the lens.
在根据灰色像素点的比例减小缓存图片帧的帧率时,在本实施例中,将灰色像素点占所有像素点的比例值划分为多个不同的区间,为不同的区间设置不同的调节系数,例如,当前播放帧率为120Hz,当灰度像素比例值大于33%小于60%时,调节系数对应的为2/3,此时帧率调节为120Hz*2/3=80Hz,按照80Hz的帧率切换缓存图片帧;在其他的实施例中,可以在灰色像素点比例值大于预设的比例值时,设置一定的调节系数,按照该固定调节系数调节缓存图片帧的帧率,在本实施例中,要适当的设置调节系数,避免调节后的帧率过小,因为人眼所能分辨的最小帧率为24,所以如果帧率减小至过小,会导致画面过渡不连贯,影响用户正常观看电视节目。In the embodiment, the ratio of the gray pixel points to all the pixel points is divided into a plurality of different sections, and different adjustments are set for different sections. The coefficient, for example, the current playback frame rate is 120 Hz. When the grayscale pixel ratio value is greater than 33% and less than 60%, the adjustment coefficient corresponds to 2/3, and the frame rate is adjusted to 120 Hz*2/3=80 Hz, according to 80 Hz. The frame rate switches the buffer picture frame; in other embodiments, when the gray pixel point ratio value is greater than the preset scale value, a certain adjustment coefficient may be set, and the frame rate of the cache picture frame is adjusted according to the fixed adjustment coefficient. In this embodiment, the adjustment coefficient is appropriately set to avoid the frame rate after adjustment is too small, because the minimum frame rate that can be resolved by the human eye is 24, so if the frame rate is reduced to too small, the picture transition may be inconsistent. , affecting users to watch TV programs normally.
在以减小后的帧率切换缓存图片帧的同时,向3D眼镜发送频率更改指令,3D眼镜接收到该指令后,根据上述指令修改左、右镜片的动态切换频率使其与视频的播放帧率同步,以降低3D眼镜的耗电量。Transmitting the frequency change instruction to the 3D glasses while switching the cache picture frame at the reduced frame rate. After receiving the instruction, the 3D glasses modify the dynamic switching frequency of the left and right lenses to play the video frame according to the above instruction. Rate synchronization to reduce the power consumption of 3D glasses.
进一步地,在步骤S10之后,该视频帧率的调节方法还包括:Further, after the step S10, the method for adjusting the video frame rate further includes:
当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;When the frame rate of the currently played video is smaller than the preset frame rate, increasing a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point;
按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Displaying the cached picture frame according to the increased frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to modify the lens according to the received frequency change instruction. Dynamic switching frequency.
当检测到当前播放帧率小于预设帧率时,当前播放帧率对于下一帧缓存图片帧来说比较小,下一帧缓存图片帧的灰色像素点比例比较小,可以以较高帧率播放,当仍然以调节后的较低的帧率播放时,会影响画面的流畅度,此时,需要将帧率增大,以适应下一帧缓存图片帧的切换,在以增大后的帧率切换下一帧缓存图片帧的同时,向3D眼镜发送频率更改指令,以供3D眼镜根据接收到的频率更改指令修改镜片的动态切换频率。When it is detected that the current playback frame rate is less than the preset frame rate, the current playback frame rate is smaller for the next frame buffer picture frame, and the gray frame point ratio of the next frame buffer picture frame is smaller, and the frame rate can be higher. Playback, when still playing at the adjusted lower frame rate, will affect the smoothness of the picture. At this time, the frame rate needs to be increased to accommodate the switching of the next frame buffer picture frame. While the frame rate switches the next frame buffer picture frame, the frequency change command is sent to the 3D glasses for the 3D glasses to modify the dynamic switching frequency of the lens according to the received frequency change command.
对于当前播放帧率等于预设帧率的情况,说明当前的播放帧率适用于下一帧缓存的图片帧的播放,无需调节帧率。For the case where the current playback frame rate is equal to the preset frame rate, it indicates that the current playback frame rate is suitable for the playback of the picture frame of the next frame buffer, and there is no need to adjust the frame rate.
本实施例所提出的方法并不限于在智能电视上播放3D节目,当用户获取到3D片源后在电脑等移动终端上播放时,同样能够通过该方法进行帧率的调节,以降低3D眼镜的功耗。The method proposed in this embodiment is not limited to playing a 3D program on a smart TV. When the user plays a 3D source and plays on a mobile terminal such as a computer, the frame rate can also be adjusted by the method to reduce the 3D glasses. Power consumption.
本实施例提出的视频帧率的调节方法,在智能电视播放当前视频的同时,读取缓存图片帧,并对该缓存图片帧的像素值进行分析,获取该缓存图片帧中的灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率,当前播放视频的帧率大于该缓存图片帧中的灰色像素点的比例值对应的预设帧率时,按照预设的调节系数减小缓存图片帧的帧率,并按照减小后的帧率切换缓存图片帧,同时向3D眼镜发送指令,以使3D眼镜进行频率切换,降低3D眼镜的频率,进而降低3D眼镜的功耗以减小眼镜的耗电速度。In the method for adjusting the video frame rate, the smart frame plays the current video, reads the cached picture frame, and analyzes the pixel value of the cached picture frame to obtain the gray pixel point in the cached picture frame. The ratio value, the ratio of each gray pixel point corresponds to a preset frame rate, and the frame rate of the currently played video is greater than the preset frame rate corresponding to the ratio of the gray pixel points in the cached picture frame, according to preset adjustment The coefficient reduces the frame rate of the cached picture frame, and switches the cache picture frame according to the reduced frame rate, and simultaneously sends instructions to the 3D glasses to make the frequency switching of the 3D glasses, reducing the frequency of the 3D glasses, thereby reducing the work of the 3D glasses. It is used to reduce the power consumption speed of the glasses.
参照图2所示,基于第一实施例提出本发明视频帧率的调节方法的第二实施例。在本实施例中,步骤S20包括以下细化步骤:Referring to Fig. 2, a second embodiment of the method of adjusting the video frame rate of the present invention is proposed based on the first embodiment. In this embodiment, step S20 includes the following refinement steps:
步骤S21,当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧;Step S21, when the frame rate of the played video is greater than the preset frame rate, performing gamma correction on the cached picture frame according to the ratio of the gray pixel points, and storing the gamma corrected after the preset storage space is stored. The cached picture frame;
步骤S22,根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率。Step S22, reducing a frame rate of the gamma-corrected cache picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points.
当所述播放视频的帧率大于预设帧率时,说明下一帧缓存图片帧的灰度值相对于当前播放的图片帧比较高或者场景比较暗,对进行帧率减小的缓存图片帧进行伽马校正,以调节该图片帧的对比度,在进行伽马校正时,仍然按照灰色像素点所占的比例决定伽马校正系数的大小,例如灰色像素点的比例与伽马校正系数之间设置一定的线性关系,或者设置一定的伽马校正系数,只要灰色像素点的比例大于预设比例值,就按照该伽马校正系数进行伽马校正,优选地,伽马校正系数在1.0-2.4之间。在预设的存储空间存储经过伽马校正后的缓存图片帧,该存储空间可以是电视默认的存储空间或者用户预先设置的存储空间。When the frame rate of the played video is greater than the preset frame rate, it indicates that the gray value of the next frame buffer picture frame is higher than the currently played picture frame or the scene is darker, and the cache picture frame with reduced frame rate is performed. Perform gamma correction to adjust the contrast of the picture frame. When performing gamma correction, the gamma correction coefficient is still determined according to the proportion of the gray pixel points, for example, the ratio of the gray pixel point to the gamma correction coefficient. Set a certain linear relationship, or set a certain gamma correction coefficient, as long as the proportion of gray pixel points is greater than the preset ratio value, gamma correction is performed according to the gamma correction coefficient, preferably, the gamma correction coefficient is 1.0-2.4 between. The gamma-corrected cache picture frame is stored in a preset storage space, and the storage space may be a default storage space of the television or a storage space preset by the user.
步骤S30包括:按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Step S30 includes: displaying the gamma-corrected cached picture frame according to the reduced frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to receive according to the frame rate The frequency change command to the modification modifies the dynamic switching frequency of the lens.
按照减小后的帧率切换进行了伽马校正后的缓存图片帧,并向3D眼镜发送频率更改指令,此处参照上述第一实施例,在此不再赘述。The gamma-corrected cached picture frame is switched according to the reduced frame rate, and the frequency change command is sent to the 3D glasses. Reference is made to the above-mentioned first embodiment, and details are not described herein again.
本实施例提出的方法在根据灰色像素点的比例进行帧率调节的同时,根据灰色像素点的比例对缓存图片帧进行伽马校正,以调节缓存图片帧的对比度,使得减小了帧率的缓存图片帧在播放时能够平滑过渡,为用户带来更好的视觉效果。The method proposed in this embodiment performs gamma correction on the buffer picture frame according to the proportion of the gray pixel points while adjusting the frame rate according to the ratio of the gray pixel points, so as to adjust the contrast of the cache picture frame, so that the frame rate is reduced. The cached picture frame can smoothly transition during playback, giving users a better visual effect.
参照图3所示,基于第一实施例提出本发明视频帧率的调节方法的第三实施例。在本实施例中,步骤S10包括以下细化步骤:Referring to Fig. 3, a third embodiment of the method of adjusting the video frame rate of the present invention is proposed based on the first embodiment. In this embodiment, step S10 includes the following refinement steps:
步骤S11,获取当前播放图片帧的下一帧缓存图片帧中各个像素点的像素值;Step S11, acquiring pixel values of each pixel in the next frame buffer picture frame of the currently played picture frame;
步骤S12,根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。Step S12, calculating a scale value of the gray pixel points in the respective pixel points according to pixel values of the respective pixel points.
本实施例中,获取缓存图片帧中各个像素点的RGB(红、绿、蓝)像素值,例如该缓存图片帧的尺寸为X_Leth=1920,Y_Leth=1080,说明该图片帧有1920列像素点,每一列有1080个像素点,将这些像素点的RGB像素值依次按照水平方向和竖直方向排列,进行逐一判断,当该像素点的R、G、B像素值相同时,说明该点为灰色像素点,例如检测到第2行第1个像素点的R、G、B像素值R1GAIN=178,G1GAIN=178,B1GAIN=178,判断该像素点为灰色像素点。计算这些灰色像素点的总数进而计算其在全部像素点中所占的比例。在其他的实施例中,可以先计算每行的灰色像素点比例值,进而计算全部的灰色像素点的比例值。In this embodiment, the RGB (red, green, and blue) pixel values of each pixel in the cached picture frame are obtained. For example, the size of the cached picture frame is X_Leth=1920, Y_Leth=1080, indicating that the picture frame has 1920 columns of pixels. Each column has 1080 pixels, and the RGB pixel values of the pixels are sequentially arranged in the horizontal direction and the vertical direction, and judged one by one. When the R, G, and B pixel values of the pixel are the same, the point is The gray pixel points, for example, the R, G, and B pixel values R1GAIN=178, G1GAIN=178, and B1GAIN=178 of the 1st pixel of the 2nd line are detected, and the pixel point is determined to be a gray pixel point. Calculate the total number of these gray pixels and calculate the proportion of them in all the pixels. In other embodiments, the gray pixel point scale value of each row may be calculated first, and then the scale values of all gray pixel points may be calculated.
本实施例将灰色像素点的比例划分为三个区间:0-1/3,1/3-2/3,2/3-1。当灰色像素点的比例大于1/3时,按照预设的调节系数减小所述缓存图片帧的帧率;当灰色像素点比例位于1/3-2/3区间,按照2/3的调节系数减小帧率,当灰色像素点比例位于2/3-1区间,按照1/3的调节系数减小帧率。In this embodiment, the ratio of gray pixel points is divided into three sections: 0-1/3, 1/3-2/3, 2/3-1. When the ratio of gray pixel points is greater than 1/3, the frame rate of the cached picture frame is reduced according to a preset adjustment coefficient; when the ratio of gray pixel points is in the range of 1/3-2/3, according to the adjustment of 2/3 The coefficient reduces the frame rate. When the gray pixel point ratio is in the 2/3-1 interval, the frame rate is reduced by an adjustment factor of 1/3.
参照图4所示,基于第二实施例提出本发明视频帧率的调节方法的第四实施例。在本实施例中,步骤S21包括以下细化步骤:Referring to Fig. 4, a fourth embodiment of the method of adjusting the video frame rate of the present invention is proposed based on the second embodiment. In this embodiment, step S21 includes the following refinement steps:
步骤S211,按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;Step S211, acquiring a gamma correction coefficient corresponding to the proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a proportional value of the gray pixel point;
步骤S212,按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。Step S212, editing a gamma curve of the cache picture frame according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
本实施例仍然以缓存图片帧的尺寸为X_Leth=1920,Y_Leth=1080为例进行说明,将灰色像素点的比例值划分为三个区间:0-1/3,1/3-2/3,2/3-1。当灰色像素点的比例值小于1/3时,伽马校正系数为1,即不调节缓存图片帧的对比度,当灰色像素点比例值位于1/3-2/3区间,选择伽马校正系数为1.4,当灰色像素点比例值位于2/3-1区间,选择伽马校正系数为2.5,在其他实施例中,为了更加精确的进行伽马校正,可以设置四个或者四个以上的灰色像素点比例值的区间,并且为每个区间设置对应的伽马校正系数,以使得校正后的图片帧具有合适的对比度,为用户带来更好的视觉效果。In this embodiment, the size of the cached picture frame is taken as an example of X_Leth=1920 and Y_Leth=1080, and the ratio of the gray pixel points is divided into three intervals: 0-1/3, 1/3-2/3, 2/3-1. When the ratio of the gray pixel points is less than 1/3, the gamma correction coefficient is 1, that is, the contrast of the buffer picture frame is not adjusted, and the gamma correction coefficient is selected when the gray pixel point ratio value is in the range of 1/3-2/3. 1.4, when the gray pixel point ratio value is in the 2/3-1 interval, the gamma correction coefficient is selected to be 2.5. In other embodiments, four or more grays may be set for more accurate gamma correction. The interval of the pixel point ratio value, and the corresponding gamma correction coefficient is set for each interval, so that the corrected picture frame has an appropriate contrast, which brings a better visual effect to the user.
本实施例提出的方法根据预设伽马校正系数与灰色的像素比例值之间的对应关系,按照灰色像素点的比例值对缓存图片帧进行伽马校正,提高缓存图片帧的对比度,是缓存图片帧在切换时色彩衔接更加流畅,使用户获得良好的观影体验。The method proposed in this embodiment performs gamma correction on the cached picture frame according to the ratio of the gray pixel points according to the correspondence between the preset gamma correction coefficient and the gray pixel ratio value, and improves the contrast of the cached picture frame. The color of the picture frame is more smooth when switching, which gives the user a good viewing experience.
本发明还提出一种视频帧率的调节装置。The invention also proposes a device for adjusting the video frame rate.
参照图5所示,为本发明视频帧率的调节装置第一实施例的功能模块示意图。Referring to FIG. 5, it is a schematic diagram of functional modules of a first embodiment of a video frame rate adjusting apparatus according to the present invention.
在该实施例中,该视频帧率的调节装置包括:In this embodiment, the adjusting device of the video frame rate comprises:
比例获取模块10,用于检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率。The ratio obtaining module 10 is configured to detect a frame rate of the currently played video, and obtain a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate. .
当在智能电视上播放3D电视节目时,需要佩戴3D眼镜进行收看,现有的智能电视在播放3D电视节目时,一般会以比较高的帧率播放,以增加视频播放的流畅度,在播放视频的当前帧时,电视***会在缓存区域缓存下一帧即将播放的图片帧。当3D视频中的帧画面灰色像素点占的比例比较大的时候,看到的画面清晰度比较低,即便图像本身是灰色的看不清的场景,仍然以高帧率在切换,因此,可以在这些灰色像素点比较多的帧切换时降低帧率。即可以为每一灰色像素点的比例值设置对应的预设帧率,可以将灰色像素点的比例值与预设帧率之间设置一一对应的映射关系,灰色像素点的比例在从0-1的范围内变化,当灰色像素点的比例较大时,可以对应较小的预设帧率,当灰色像素点的比例较小时,可以对应较大的预设帧率,在本实施例中,当灰色像素点的比例在0-1/3的范围内时,设置120Hz的帧率,当灰色像素点的比例在1/3-2/3的范围内时,设置80Hz的帧率,当灰色像素点的比例在2/3-1的范围内时,设置40Hz的帧率,在其他实时例中,可以设置其他的对应数值或者数值区间。When playing 3D TV programs on a smart TV, you need to wear 3D glasses to watch. When the existing smart TVs play 3D TV programs, they will generally play at a higher frame rate to increase the smoothness of video playback. When the current frame of the video is in use, the television system buffers the picture frame to be played in the next frame in the buffer area. When the proportion of gray pixels in the frame of the 3D video is relatively large, the clarity of the picture is relatively low. Even if the image itself is gray and the scene is not clear, it is still switched at a high frame rate. The frame rate is reduced when more of these gray pixel points are switched. That is, a corresponding preset frame rate can be set for each gray pixel point scale value, and a mapping relationship between the gray pixel point scale value and the preset frame rate can be set, and the ratio of the gray pixel points is from 0. In the range of -1, when the proportion of gray pixels is large, it can correspond to a smaller preset frame rate. When the proportion of gray pixels is small, it can correspond to a larger preset frame rate, in this embodiment. In the case where the ratio of the gray pixel points is in the range of 0-1/3, the frame rate of 120 Hz is set, and when the ratio of the gray pixel points is in the range of 1/3-2/3, the frame rate of 80 Hz is set, When the ratio of gray pixels is in the range of 2/3-1, the frame rate of 40 Hz is set. In other real-time examples, other corresponding values or numerical intervals can be set.
本实施例中,比例获取模块10可以在接收到视频帧率调节的指令时,或者检测到电视***开始播放3D节目时,或者检测到电视机与3D眼镜之间为连接状态时,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,其中,每一灰色像素点的比例值对应一预设帧率。In this embodiment, the ratio obtaining module 10 may detect the current playing when receiving the instruction of the video frame rate adjustment, or detecting that the television system starts to play the 3D program, or detecting that the television and the 3D glasses are in a connected state. The frame rate of the video, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, wherein the ratio value of each gray pixel point corresponds to a preset frame rate.
帧率调节模块20,用于当所述灰色像素点的比例大于预设比例值时,根据所述灰色像素点的比例对应的调节系数减小所述缓存图片帧的帧率。The frame rate adjustment module 20 is configured to: when the ratio of the gray pixel points is greater than a preset ratio value, reduce a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points.
当前播放视频的帧率大于下一帧缓存图片帧中灰色像素点的比例值对应的预设帧率时,说明下一帧缓存图片帧的灰色像素点比例较高,可以以较低的帧率进行播放,而当前视频的播放帧率对于下一帧缓存图片帧来说比较大,因此,帧率调节模块20可以根据灰色像素点的比例对应的调节系数将帧率降低,以适应下一帧缓存图片的播放。When the frame rate of the currently played video is greater than the preset frame rate corresponding to the ratio of the gray pixels in the next frame buffer picture frame, the gray frame point ratio of the next frame buffer picture frame is higher, and the frame rate can be lower. The playback frame rate of the current video is relatively large for the next frame buffer picture frame. Therefore, the frame rate adjustment module 20 can reduce the frame rate according to the adjustment coefficient corresponding to the proportion of the gray pixel points to adapt to the next frame. Cache the playback of the picture.
视频播放模块30,用于按照减小后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。The video playing module 30 is configured to display the cached picture frame according to the reduced frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to be received according to the received The frequency change command modifies the dynamic switching frequency of the lens.
在帧率调节模块20根据灰色像素点的比例减小缓存图片帧的帧率时,在本实施例中,将灰色像素点占所有像素点的比例值划分为多个不同的区间,为不同的区间设置不同的调节系数,例如,当前播放帧率为120Hz,当灰度像素比例值大于33%小于60%时,调节系数对应的为2/3,此时帧率调节为120Hz*2/3=80Hz,视频播放模块30按照80Hz的帧率切换缓存图片帧;在其他的实施例中,可以在灰色像素点比例值大于预设的比例值时,设置一定的调节系数,按照该固定调节系数调节缓存图片帧的帧率,在本实施例中,要适当的设置调节系数,避免调节后的帧率过小,因为人眼所能分辨的最小帧率为24,所以如果帧率减小至过小,会导致画面过渡不连贯,影响用户正常观看电视节目。When the frame rate adjustment module 20 reduces the frame rate of the cached picture frame according to the proportion of the gray pixel points, in the embodiment, the gray pixel points occupy the ratio of all the pixel points into a plurality of different intervals, which are different. Different adjustment factors are set in the interval. For example, the current playback frame rate is 120 Hz. When the grayscale pixel ratio value is greater than 33% and less than 60%, the adjustment coefficient corresponds to 2/3, and the frame rate is adjusted to 120 Hz*2/3. =80 Hz, the video playback module 30 switches the buffer picture frame according to the frame rate of 80 Hz; in other embodiments, a certain adjustment coefficient may be set when the gray pixel point ratio value is greater than the preset ratio value, according to the fixed adjustment coefficient. Adjusting the frame rate of the cached picture frame. In this embodiment, the adjustment coefficient is appropriately set to prevent the adjusted frame rate from being too small, because the minimum frame rate that can be resolved by the human eye is 24, so if the frame rate is reduced to Too small will lead to inconsistent picture transitions, affecting users to watch TV programs normally.
视频播放模块30在以减小后的帧率切换缓存图片帧的同时,向3D眼镜发送频率更改指令,3D眼镜接收到该指令后,根据上述指令修改左、右镜片的动态切换频率使其与视频的播放帧率同步,以降低3D眼镜的耗电量。The video playing module 30 sends a frequency change command to the 3D glasses while switching the cache picture frame at the reduced frame rate. After receiving the instruction, the 3D glasses modify the dynamic switching frequency of the left and right lenses according to the above instruction. The playback frame rate of the video is synchronized to reduce the power consumption of the 3D glasses.
进一步地,帧率调节模块20,还用于当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;Further, the frame rate adjustment module 20 is further configured to: when the frame rate of the currently played video is less than the preset frame rate, increase the cached picture frame according to an adjustment factor corresponding to a scale value of the gray pixel point Frame rate
视频播放模块30,还用于按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。The video playing module 30 is further configured to display the cached picture frame according to the increased frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, so that the 3D glasses are received according to the received The frequency change command modifies the dynamic switching frequency of the lens.
当帧率调节模块20检测到当前播放帧率小于预设帧率时,当前播放帧率对于下一帧缓存图片帧来说比较小,下一帧缓存图片帧的灰色像素点比例比较小,可以以较高帧率播放,当仍然以调节后的较低的帧率播放时,会影响画面的流畅度,此时,需要将帧率增大,以适应下一帧缓存图片帧的切换,在视频播放模块30以增大后的帧率切换下一帧缓存图片帧的同时,向3D眼镜发送频率更改指令,以供3D眼镜根据接收到的频率更改指令修改镜片的动态切换频率。When the frame rate adjustment module 20 detects that the current frame rate is lower than the preset frame rate, the current frame rate is smaller for the next frame buffer picture frame, and the gray frame point ratio of the next frame buffer picture frame is smaller. Play at a higher frame rate, when still playing at the adjusted lower frame rate, it will affect the smoothness of the picture. At this time, the frame rate needs to be increased to adapt to the switching of the next frame buffer picture frame. The video playing module 30 transmits a frequency change command to the 3D glasses while switching the next frame buffer picture frame at the increased frame rate, so that the 3D glasses modify the dynamic switching frequency of the lens according to the received frequency change command.
对于当前播放帧率等于预设帧率的情况,说明当前的播放帧率适用于下一帧缓存的图片帧的播放,无需调节帧率。For the case where the current playback frame rate is equal to the preset frame rate, it indicates that the current playback frame rate is suitable for the playback of the picture frame of the next frame buffer, and there is no need to adjust the frame rate.
本实施例所提出的装置并不限于在智能电视上播放3D节目,当用户获取到3D片源后在电脑等移动终端上播放时,同样能够通过该装置进行帧率的调节,以降低3D眼镜的功耗。The device proposed in this embodiment is not limited to playing a 3D program on a smart TV. When the user plays a 3D source and plays on a mobile terminal such as a computer, the frame rate can also be adjusted through the device to reduce the 3D glasses. Power consumption.
本实施例提出的视频帧率的调节装置,在智能电视播放当前视频的同时,读取缓存图片帧,并对该缓存图片帧的像素值进行分析,获取该缓存图片帧中的灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率,当前播放视频的帧率大于该缓存图片帧中的灰色像素点的比例值对应的预设帧率时,按照预设的调节系数减小缓存图片帧的帧率,并按照减小后的帧率切换缓存图片帧,同时向3D眼镜发送指令,以使3D眼镜进行频率切换,降低3D眼镜的频率,进而降低3D眼镜的功耗以减小眼镜的耗电速度。The apparatus for adjusting a video frame rate according to the embodiment, reads a cached picture frame while the smart TV plays the current video, and analyzes a pixel value of the cached picture frame to obtain a gray pixel point in the cached picture frame. The ratio value, the ratio of each gray pixel point corresponds to a preset frame rate, and the frame rate of the currently played video is greater than the preset frame rate corresponding to the ratio of the gray pixel points in the cached picture frame, according to preset adjustment The coefficient reduces the frame rate of the cached picture frame, and switches the cache picture frame according to the reduced frame rate, and simultaneously sends instructions to the 3D glasses to make the frequency switching of the 3D glasses, reducing the frequency of the 3D glasses, thereby reducing the work of the 3D glasses. It is used to reduce the power consumption speed of the glasses.
参照图6所示,基于第一实施例提出本发明视频帧率的调节装置的第二实施例。在本实施例中,帧率调节模块20包括以下单元:Referring to Fig. 6, a second embodiment of the apparatus for adjusting the video frame rate of the present invention is proposed based on the first embodiment. In this embodiment, the frame rate adjustment module 20 includes the following units:
伽马校正单元21,当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧。a gamma correction unit 21, when the frame rate of the played video is greater than a preset frame rate, gamma correction is performed on the cached picture frame according to a ratio of the gray pixel points, and stored in a preset storage space The cached picture frame after horse correction.
当所述播放视频的帧率大于预设帧率时,说明下一帧缓存图片帧的灰度值相对于当前播放的图片帧比较高或者场景比较暗,对进行帧率减小的缓存图片帧进行伽马校正,以调节该图片帧的对比度,在伽马校正单元21进行伽马校正时,仍然按照灰色像素点所占的比例决定伽马校正系数的大小,例如灰色像素点的比例与伽马校正系数之间设置一定的线性关系,或者设置一定的伽马校正系数,只要灰色像素点的比例大于预设比例值,伽马校正单元21就按照该伽马校正系数进行伽马校正,优选地,伽马校正系数在1.0-2.4之间。在预设的存储空间存储经过伽马校正后的缓存图片帧,该存储空间可以是电视默认的存储空间或者用户预先设置的存储空间。When the frame rate of the played video is greater than the preset frame rate, it indicates that the gray value of the next frame buffer picture frame is higher than the currently played picture frame or the scene is darker, and the cache picture frame with reduced frame rate is performed. Performing gamma correction to adjust the contrast of the picture frame. When the gamma correction unit 21 performs gamma correction, the gamma correction coefficient is still determined according to the proportion of the gray pixel points, for example, the ratio of the gray pixel points and the gamma A certain linear relationship is set between the horse correction coefficients, or a certain gamma correction coefficient is set. As long as the proportion of the gray pixel points is greater than the preset ratio value, the gamma correction unit 21 performs gamma correction according to the gamma correction coefficient, preferably Ground, the gamma correction factor is between 1.0 and 2.4. The gamma-corrected cache picture frame is stored in a preset storage space, and the storage space may be a default storage space of the television or a storage space preset by the user.
帧率调节单元22,用于根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率。The frame rate adjustment unit 22 is configured to reduce a frame rate of the gamma-corrected cached picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points.
视频播放模块30,还用于按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧。The video playing module 30 is further configured to display the gamma-corrected cached picture frame according to the reduced frame rate.
视频播放模块30按照减小后的帧率切换进行了伽马校正后的缓存图片帧,并向3D眼镜发送频率更改指令,此处参照上述第一实施例,在此不再赘述。The video playback module 30 switches the gamma-corrected cached picture frame according to the reduced frame rate, and sends a frequency change command to the 3D glasses. Reference is made to the above-mentioned first embodiment, and details are not described herein again.
本实施例提出的装置在根据灰色像素点的比例进行帧率调节的同时,根据灰色像素点的比例对缓存图片帧进行伽马校正,以调节缓存图片帧的对比度,使得减小了帧率的缓存图片帧在播放时能够平滑过渡,为用户带来更好的视觉效果。The apparatus proposed in this embodiment performs gamma correction on the buffer picture frame according to the ratio of the gray pixel points while adjusting the frame rate according to the ratio of the gray pixel points, so as to adjust the contrast of the cache picture frame, so that the frame rate is reduced. The cached picture frame can smoothly transition during playback, giving users a better visual effect.
参照图7所示,基于第一实施例提出本发明视频帧率的调节装置的第三实施例。在本实施例中,比例获取模块10包括以下单元:Referring to Fig. 7, a third embodiment of the apparatus for adjusting the video frame rate of the present invention is proposed based on the first embodiment. In this embodiment, the ratio acquisition module 10 includes the following units:
像素获取单元11,用于获取当前播放图片帧的下一帧缓存图片帧中各个像素点的像素值;The pixel obtaining unit 11 is configured to acquire a pixel value of each pixel in the next frame buffer picture frame of the currently played picture frame;
比例计算单元12,用于根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。The ratio calculation unit 12 is configured to calculate a scale value of the gray pixel points in the respective pixel points according to the pixel values of the respective pixel points.
本实施例中,获取缓存图片帧中各个像素点的RGB(红、绿、蓝)像素值,例如该缓存图片帧的尺寸为X_Leth=1920,Y_Leth=1080,说明该图片帧有1920列像素点,每一列有1080个像素点,像素获取单元21将这些像素点的RGB像素值依次按照水平方向和竖直方向排列,进行逐一判断,当该像素点的R、G、B像素值相同时,说明该点为灰色像素点,例如检测到第2行第1个像素点的R、G、B像素值R1GAIN=178,G1GAIN=178,B1GAIN=178,判断该像素点为灰色像素点。比例计算单元22计算这些灰色像素点的总数进而计算其在全部像素点中所占的比例。在其他的实施例中,可以先计算每行的灰色像素点比例值,进而计算全部的灰色像素点的比例值。In this embodiment, the RGB (red, green, and blue) pixel values of each pixel in the cached picture frame are obtained. For example, the size of the cached picture frame is X_Leth=1920, Y_Leth=1080, indicating that the picture frame has 1920 columns of pixels. Each column has 1080 pixels, and the pixel obtaining unit 21 sequentially aligns the RGB pixel values of the pixels in the horizontal direction and the vertical direction, and judges one by one. When the R, G, and B pixel values of the pixel are the same, The point is a gray pixel. For example, the R, G, and B pixel values R1GAIN=178, G1GAIN=178, and B1GAIN=178 of the first pixel of the second row are detected, and the pixel is determined to be a gray pixel. The scale calculation unit 22 calculates the total number of these gray pixel points and calculates the proportion of them in all the pixel points. In other embodiments, the gray pixel point scale value of each row may be calculated first, and then the scale values of all gray pixel points may be calculated.
本实施例将灰色像素点的比例划分为三个区间:0-1/3,1/3-2/3,2/3-1。当灰色像素点的比例大于1/3时,按照预设的调节系数减小所述缓存图片帧的帧率;当灰色像素点比例位于1/3-2/3区间,按照2/3的调节系数减小帧率,当灰色像素点比例位于2/3-1区间,按照1/3的调节系数减小帧率。In this embodiment, the ratio of gray pixel points is divided into three sections: 0-1/3, 1/3-2/3, 2/3-1. When the ratio of gray pixel points is greater than 1/3, the frame rate of the cached picture frame is reduced according to a preset adjustment coefficient; when the ratio of gray pixel points is in the range of 1/3-2/3, according to the adjustment of 2/3 The coefficient reduces the frame rate. When the gray pixel point ratio is in the 2/3-1 interval, the frame rate is reduced by an adjustment factor of 1/3.
参照图8所示,基于第二实施例提出本发明视频帧率的调节装置的第四实施例。在本实施例中,伽马校正单元21包括以下子单元:Referring to Fig. 8, a fourth embodiment of the apparatus for adjusting the video frame rate of the present invention is proposed based on the second embodiment. In the present embodiment, the gamma correction unit 21 includes the following subunits:
系数获取子单元211,用于按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;a coefficient acquisition sub-unit 211, configured to acquire a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a proportional value of the gray pixel point;
伽马校正子单元212,用于按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。The gamma correction sub-unit 212 is configured to edit the gamma curve of the cache picture frame according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
本实施例仍然以缓存图片帧的尺寸为X_Leth=1920,Y_Leth=1080为例进行说明,将灰色像素点的比例值划分为三个区间:0-1/3,1/3-2/3,2/3-1。当灰色像素点的比例值小于1/3时,伽马校正系数为1,即不调节缓存图片帧的对比度,当灰色像素点比例值位于1/3-2/3区间,系数获取子单元211选择伽马校正系数为1.4,当灰色像素点比例值位于2/3-1区间,系数获取子单元211选择伽马校正系数为2.5,在其他实施例中,为了伽马校正子单元212更加精确的进行伽马校正,可以设置四个或者四个以上的灰色像素点比例值的区间,并且为每个区间设置对应的伽马校正系数,以使得校正后的图片帧具有合适的对比度,为用户带来更好的视觉效果。In this embodiment, the size of the cached picture frame is taken as an example of X_Leth=1920 and Y_Leth=1080, and the ratio of the gray pixel points is divided into three intervals: 0-1/3, 1/3-2/3, 2/3-1. When the ratio of the gray pixel points is less than 1/3, the gamma correction coefficient is 1, that is, the contrast of the cache picture frame is not adjusted, and when the gray pixel point ratio value is in the 1/3-2/3 interval, the coefficient acquisition sub-unit 211 The gamma correction coefficient is selected to be 1.4, and when the gray pixel point ratio value is in the 2/3-1 interval, the coefficient acquisition sub-unit 211 selects the gamma correction coefficient to be 2.5, and in other embodiments, the gamma correction sub-unit 212 is more accurate. For gamma correction, you can set the interval of four or more gray pixel point scale values, and set the corresponding gamma correction coefficient for each interval, so that the corrected picture frame has the appropriate contrast for the user. Bring better visual effects.
本实施例提出的装置根据预设伽马校正系数与灰色的像素比例值之间的对应关系,按照灰色像素点的比例值对缓存图片帧进行伽马校正,提高缓存图片帧的对比度,是缓存图片帧在切换时色彩衔接更加流畅,使用户获得良好的观影体验。The device proposed in this embodiment performs gamma correction on the cached picture frame according to the ratio between the preset gamma correction coefficient and the gray pixel ratio value, and improves the contrast of the cached picture frame according to the ratio of the gray pixel points. The color of the picture frame is more smooth when switching, which gives the user a good viewing experience.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (17)

  1. 一种视频帧率的调节方法,其应用于智能电视以及与智能电视配套的3D眼镜中,其特征在于,所述视频帧率的调节方法包括: A method for adjusting a video frame rate, which is applied to a smart TV and a 3D glasses for use with a smart TV, wherein the method for adjusting a video frame rate comprises:
    检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率;Detecting a frame rate of the currently played video, and obtaining a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate;
    当所述当前播放视频的帧率大于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数减小所述缓存图片帧的帧率;When the frame rate of the currently played video is greater than the preset frame rate, the frame rate of the cached picture frame is decreased according to an adjustment coefficient corresponding to the scale value of the gray pixel point;
    按照减小后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Displaying the cached picture frame according to the reduced frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to modify the lens according to the received frequency change instruction Dynamic switching frequency.
  2. 根据权利要求1所述的视频帧率的调节方法,所述检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率的步骤之后,所述视频帧率的调节方法还包括:The method for adjusting a video frame rate according to claim 1, wherein the frame rate of the currently played video is detected, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame is obtained, and each gray pixel point is obtained. After the step of the ratio value corresponding to a predetermined frame rate, the method for adjusting the video frame rate further includes:
    当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;When the frame rate of the currently played video is smaller than the preset frame rate, increasing a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point;
    按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Displaying the cached picture frame according to the increased frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to modify the lens according to the received frequency change instruction. Dynamic switching frequency.
  3. 根据权利要求1所述的视频帧率的调节方法,其特征在于,所述当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值对应的调节系数减小所述缓存图片帧的帧率的步骤包括:The method for adjusting a video frame rate according to claim 1, wherein when the frame rate of the played video is greater than a preset frame rate, the adjustment coefficient corresponding to the proportional value of the gray pixel point is decreased. The step of buffering the frame rate of the picture frame includes:
    当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧;When the frame rate of the played video is greater than the preset frame rate, the cached picture frame is gamma corrected according to the scale value of the gray pixel point, and the gamma corrected position is stored in the preset storage space. Cache picture frame;
    根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率;Decreasing a frame rate of the cached picture frame after gamma correction according to an adjustment coefficient corresponding to a ratio of the gray pixel points;
    所述按照减小后的所述帧率切换所述缓存图片帧的步骤包括:The step of switching the cached picture frame according to the reduced frame rate includes:
    按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧。The gamma-corrected cached picture frame is displayed according to the reduced frame rate.
  4. 根据权利要求1所述的视频帧率的调节方法,其特征在于,所述获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值的步骤包括:The method for adjusting a video frame rate according to claim 1, wherein the step of acquiring a ratio of gray pixel points in a next frame buffer picture frame of the currently played picture frame comprises:
    获取当前播放图片帧的下一帧缓存图片帧中各个像素点的像素值;Obtaining a pixel value of each pixel in the next frame buffer picture frame of the currently played picture frame;
    根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。A scale value of the gray pixel points in the respective pixel points is calculated according to pixel values of the respective pixel points.
  5. 根据权利要求2所述的视频帧率的调节方法,其特征在于,所述获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值的步骤包括:The method for adjusting the video frame rate according to claim 2, wherein the step of acquiring the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame comprises:
    获取当前播放图片帧的下一帧缓存图片帧中各个像素点的像素值;Obtaining a pixel value of each pixel in the next frame buffer picture frame of the currently played picture frame;
    根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。A scale value of the gray pixel points in the respective pixel points is calculated according to pixel values of the respective pixel points.
  6. 根据权利要求1所述的视频帧率的调节方法,其特征在于,所述视频帧率的调节方法还包括:The method for adjusting a video frame rate according to claim 1, wherein the method for adjusting the video frame rate further comprises:
    在接收到视频帧率调节的指令时,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值。When receiving the instruction of the video frame rate adjustment, the frame rate of the currently played video is detected, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame is obtained.
  7. 根据权利要求3所述的视频帧率的调节方法,其特征在于,所述根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正的步骤包括:The method for adjusting a video frame rate according to claim 3, wherein the step of performing gamma correction on the cached picture frame according to a scale value of the gray pixel point comprises:
    按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;Obtaining a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a ratio of the gray pixel points;
    按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。The gamma curve of the cache picture frame is edited according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
  8. 一种视频帧率的调节方法,其应用于智能电视以及与智能电视配套的3D眼镜中,其特征在于,所述视频帧率的调节方法包括:A method for adjusting a video frame rate, which is applied to a smart TV and a 3D glasses for use with a smart TV, wherein the method for adjusting a video frame rate comprises:
    检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率;Detecting a frame rate of the currently played video, and obtaining a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate;
    当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧;When the frame rate of the played video is greater than the preset frame rate, the cached picture frame is gamma corrected according to the scale value of the gray pixel point, and the gamma corrected position is stored in the preset storage space. Cache picture frame;
    根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率;Decreasing a frame rate of the cached picture frame after gamma correction according to an adjustment coefficient corresponding to a ratio of the gray pixel points;
    按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率;Displaying the gamma-corrected cached picture frame according to the reduced frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to be according to the received The frequency change command modifies the dynamic switching frequency of the lens;
    当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;When the frame rate of the currently played video is smaller than the preset frame rate, increasing a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point;
    按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。Displaying the cached picture frame according to the increased frame rate, and transmitting a frequency change instruction to the 3D glasses according to the frame rate, for the 3D glasses to modify the lens according to the received frequency change instruction. Dynamic switching frequency.
  9. 根据权利要求8所述的视频帧率的调节方法,其特征在于,所述根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正的步骤包括:The method for adjusting a video frame rate according to claim 8, wherein the step of performing gamma correction on the cached picture frame according to a scale value of the gray pixel point comprises:
    按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;Obtaining a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a ratio of the gray pixel points;
    按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。The gamma curve of the cache picture frame is edited according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
  10. 根据权利要求8所述的视频帧率的调节方法,其特征在于,所述视频帧率的调节方法还包括:The method for adjusting a video frame rate according to claim 8, wherein the method for adjusting the video frame rate further comprises:
    在接收到视频帧率调节的指令时,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值。When receiving the instruction of the video frame rate adjustment, the frame rate of the currently played video is detected, and the ratio of the gray pixel points in the next frame buffer picture frame of the currently played picture frame is obtained.
  11. 一种视频帧率的调节装置,其特征在于,所述视频帧率的调节装置包括:A device for adjusting a video frame rate, wherein the adjusting device for the video frame rate comprises:
    比例获取模块,用于检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值,每一灰色像素点的比例值对应一预设帧率;The ratio acquisition module is configured to detect a frame rate of the currently played video, and obtain a scale value of the gray pixel points in the next frame buffer picture frame of the currently played picture frame, where the ratio value of each gray pixel point corresponds to a preset frame rate;
    帧率调节模块,用于当所述当前播放视频的帧率大于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数减小所述缓存图片帧的帧率;a frame rate adjustment module, configured to reduce a frame rate of the cached picture frame according to an adjustment coefficient corresponding to a scale value of the gray pixel point when a frame rate of the currently played video is greater than the preset frame rate;
    视频播放模块,用于按照减小后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。a video playing module, configured to display the cached picture frame according to the reduced frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, where the 3D glasses are according to the received The frequency change command modifies the dynamic switching frequency of the lens.
  12. 根据权利要求11所述的视频帧率的调节装置,其特征在于,所述帧率调节模块,还用于当所述当前播放视频的帧率小于所述预设帧率时,根据所述灰色像素点的比例值对应的调节系数增大所述缓存图片帧的帧率;The apparatus for adjusting a video frame rate according to claim 11, wherein the frame rate adjustment module is further configured to: when the frame rate of the currently played video is smaller than the preset frame rate, according to the gray The adjustment coefficient corresponding to the proportional value of the pixel increases the frame rate of the cached picture frame;
    所述视频播放模块,还用于按照增大后的所述帧率显示所述缓存图片帧,并根据所述帧率向所述3D眼镜发送频率更改指令,以供所述3D眼镜根据接收到的所述频率更改指令修改镜片的动态切换频率。The video playing module is further configured to display the cached picture frame according to the increased frame rate, and send a frequency change instruction to the 3D glasses according to the frame rate, where the 3D glasses are received according to the The frequency change command modifies the dynamic switching frequency of the lens.
  13. 根据权利要求11所述的视频帧率的调节装置,其特征在于,所述帧率调节模块包括:The apparatus for adjusting a video frame rate according to claim 11, wherein the frame rate adjustment module comprises:
    伽马校正单元,用于当所述播放视频的帧率大于预设帧率时,根据所述灰色像素点的比例值对所述缓存图片帧进行伽马校正,并在预设的存储空间存储经过伽马校正后的所述缓存图片帧;a gamma correction unit, configured to perform gamma correction on the cached picture frame according to a scale value of the gray pixel point when the frame rate of the played video is greater than a preset frame rate, and store in a preset storage space The cached picture frame after gamma correction;
    帧率调节单元,用于根据所述灰色像素点的比例对应的调节系数减小经过伽马校正后的所述缓存图片帧的帧率;a frame rate adjustment unit, configured to reduce a frame rate of the gamma-corrected cached picture frame according to an adjustment coefficient corresponding to a ratio of the gray pixel points;
    所述视频播放模块,还用于按照减小后的所述帧率显示经过伽马校正后的所述缓存图片帧。The video playing module is further configured to display the gamma-corrected cached picture frame according to the reduced frame rate.
  14. 根据权利要求11所述的视频帧率的调节装置,其特征在于,所述比例获取模块包括:The apparatus for adjusting a video frame rate according to claim 11, wherein the ratio acquisition module comprises:
    像素获取单元,用于获取所述缓存图片帧的各个像素点的像素值;a pixel acquiring unit, configured to acquire a pixel value of each pixel of the cached picture frame;
    比例计算单元,用于根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。And a ratio calculation unit configured to calculate a scale value of the gray pixel points in the respective pixel points according to pixel values of the respective pixel points.
  15. 根据权利要求12所述的视频帧率的调节装置,其特征在于,所述比例获取模块包括:The apparatus for adjusting a video frame rate according to claim 12, wherein the ratio acquisition module comprises:
    像素获取单元,用于获取所述缓存图片帧的各个像素点的像素值;a pixel acquiring unit, configured to acquire a pixel value of each pixel of the cached picture frame;
    比例计算单元,用于根据各个像素点的像素值计算所述各个像素点中灰色像素点的比例值。And a ratio calculation unit configured to calculate a scale value of the gray pixel points in the respective pixel points according to pixel values of the respective pixel points.
  16. 根据权利要求11所述的视频帧率的调节装置,其特征在于,所述比例获取模块,还用于在接收到视频帧率调节的指令时,检测当前播放视频的帧率,并获取当前播放图片帧的下一帧缓存图片帧中灰色像素点的比例值。 The apparatus for adjusting a video frame rate according to claim 11, wherein the ratio acquisition module is further configured to: when receiving an instruction for adjusting a video frame rate, detect a frame rate of the currently played video, and obtain a current play. The next frame of the picture frame caches the scale value of the gray pixels in the picture frame.
  17. 根据权利要求13所述的视频帧率的调节装置,其特征在于,所述伽马校正单元包括:The apparatus for adjusting a video frame rate according to claim 13, wherein the gamma correction unit comprises:
    系数获取子单元,用于按照预设的伽马校正系数与所述灰色像素点的比例值之间的对应关系,获取与所述灰色像素点的比例值对应的伽马校正系数;a coefficient obtaining subunit, configured to acquire a gamma correction coefficient corresponding to a proportional value of the gray pixel point according to a correspondence between a preset gamma correction coefficient and a proportional value of the gray pixel point;
    伽马校正子单元,用于按照所述伽马校正系数对所述缓存图片帧的伽马曲线进行编辑,以实现对所述缓存图片帧的伽马校正。a gamma correction subunit, configured to edit a gamma curve of the cache picture frame according to the gamma correction coefficient to implement gamma correction on the cache picture frame.
PCT/CN2016/084108 2015-09-08 2016-05-31 Video frame rate adjustment method and apparatus WO2017041537A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510568166.8 2015-09-08
CN201510568166.8A CN105141943B (en) 2015-09-08 2015-09-08 The adjusting method and device of video frame rate

Publications (1)

Publication Number Publication Date
WO2017041537A1 true WO2017041537A1 (en) 2017-03-16

Family

ID=54727138

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084108 WO2017041537A1 (en) 2015-09-08 2016-05-31 Video frame rate adjustment method and apparatus

Country Status (2)

Country Link
CN (1) CN105141943B (en)
WO (1) WO2017041537A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672149A (en) * 2020-12-15 2021-04-16 广州博冠信息科技有限公司 Video processing method and device, storage medium and server
CN113347487A (en) * 2021-06-17 2021-09-03 微微科技有限公司 Low-power browser sequence diagram video method and terminal for automatic compatible equipment

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141943B (en) * 2015-09-08 2017-11-03 深圳Tcl数字技术有限公司 The adjusting method and device of video frame rate
CN106028059B (en) * 2016-05-24 2020-01-14 深圳Tcl数字技术有限公司 Method and device for controlling video frame rate of smart television
CN106373516B (en) * 2016-10-31 2019-08-13 北京集创北方科技股份有限公司 LED display and its driving method
CN106657681B (en) 2017-03-10 2019-07-05 Oppo广东移动通信有限公司 A kind of control method, device and the mobile terminal of mobile terminal refresh rate
CN110728964B (en) * 2019-10-25 2021-03-02 京东方科技集团股份有限公司 Display frequency adjusting method and device, driving circuit and display device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079246A (en) * 2006-05-23 2007-11-28 株式会社日立制作所 Image processing apparatus
US20110084971A1 (en) * 2009-10-08 2011-04-14 Chunghwa Picture Tubes, Ltd. Adaptive frame rate modulation system and method thereof
CN102592555A (en) * 2012-02-03 2012-07-18 福州瑞芯微电子有限公司 Regulating circuit and regulating method capable of reducing power consumption of screen
CN104269155A (en) * 2014-09-24 2015-01-07 广东欧珀移动通信有限公司 Method and device for adjusting refreshing rate of screen
CN104835457A (en) * 2014-02-11 2015-08-12 三星显示有限公司 Method of driving display panel and display apparatus for performing same
CN105141943A (en) * 2015-09-08 2015-12-09 深圳Tcl数字技术有限公司 Adjusting method and device for video frame rate

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040252756A1 (en) * 2003-06-10 2004-12-16 David Smith Video signal frame rate modifier and method for 3D video applications
JP4742174B1 (en) * 2010-04-20 2011-08-10 株式会社ソニー・コンピュータエンタテインメント 3D video playback method and 3D video playback device
CN102036093B (en) * 2010-12-27 2013-04-17 Tcl集团股份有限公司 3D video play method and system
CN102185835A (en) * 2011-04-14 2011-09-14 广东威创视讯科技股份有限公司 Real-time network signal playing method and device
CN104639978A (en) * 2015-02-13 2015-05-20 上海小蚁科技有限公司 Multimedia processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079246A (en) * 2006-05-23 2007-11-28 株式会社日立制作所 Image processing apparatus
US20110084971A1 (en) * 2009-10-08 2011-04-14 Chunghwa Picture Tubes, Ltd. Adaptive frame rate modulation system and method thereof
CN102592555A (en) * 2012-02-03 2012-07-18 福州瑞芯微电子有限公司 Regulating circuit and regulating method capable of reducing power consumption of screen
CN104835457A (en) * 2014-02-11 2015-08-12 三星显示有限公司 Method of driving display panel and display apparatus for performing same
CN104269155A (en) * 2014-09-24 2015-01-07 广东欧珀移动通信有限公司 Method and device for adjusting refreshing rate of screen
CN105141943A (en) * 2015-09-08 2015-12-09 深圳Tcl数字技术有限公司 Adjusting method and device for video frame rate

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672149A (en) * 2020-12-15 2021-04-16 广州博冠信息科技有限公司 Video processing method and device, storage medium and server
CN112672149B (en) * 2020-12-15 2022-10-11 广州博冠信息科技有限公司 Video processing method and device, storage medium and server
CN113347487A (en) * 2021-06-17 2021-09-03 微微科技有限公司 Low-power browser sequence diagram video method and terminal for automatic compatible equipment
CN113347487B (en) * 2021-06-17 2022-09-27 微微科技有限公司 Low-power browser sequence diagram video method and terminal for automatic compatible equipment

Also Published As

Publication number Publication date
CN105141943B (en) 2017-11-03
CN105141943A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
WO2017041537A1 (en) Video frame rate adjustment method and apparatus
WO2018192253A1 (en) Video signal transmission method and apparatus
WO2020080665A1 (en) Methods and apparatuses for performing artificial intelligence encoding and artificial intelligence decoding on image
WO2017206368A1 (en) High-dynamic range picture switching method and apparatus
WO2018161685A1 (en) Method for achieving television theater mode, device, equipment and storage medium
WO2015026017A1 (en) Display apparatus and operation method thereof
WO2018103187A1 (en) Monitor image formation method and system for monitoring device
WO2016091011A1 (en) Subtitle switching method and device
WO2017088427A1 (en) Audio output control method and device
WO2020138840A1 (en) Display device for correcting posture and control method therefor
WO2015009107A1 (en) Method and apparatus for generating 3k-resolution display image for mobile terminal screen
WO2018166224A1 (en) Target tracking display method and apparatus for panoramic video, and storage medium
WO2017190452A1 (en) Backlight self-adaptive regulation method and apparatus
WO2017215116A1 (en) Photographing method and system for smart television
WO2019017641A1 (en) Electronic device and image compression method of electronic device
WO2018045682A1 (en) Method and device for testing audio and picture synchronization
WO2015154639A1 (en) Method and apparatus for recording and replaying video of terminal
EP3844962A1 (en) Methods and apparatuses for performing artificial intelligence encoding and artificial intelligence decoding on image
EP3685575A1 (en) Display apparatus, method for controlling the same and image providing apparatus
WO2014048239A1 (en) Smart television playing method and smart television
WO2016101305A1 (en) Video file processing method and display device
WO2018040419A1 (en) Video playing method and apparatus for curved-surface television
WO2019198943A1 (en) Wearable display apparatus and method of displaying three-dimensional images thereon
WO2017201893A1 (en) Video processing method and device
WO2017113600A1 (en) Video playing method and device

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

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 23/07/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16843475

Country of ref document: EP

Kind code of ref document: A1