CN105472255B - Video playing control method and device - Google Patents

Video playing control method and device Download PDF

Info

Publication number
CN105472255B
CN105472255B CN201511026378.XA CN201511026378A CN105472255B CN 105472255 B CN105472255 B CN 105472255B CN 201511026378 A CN201511026378 A CN 201511026378A CN 105472255 B CN105472255 B CN 105472255B
Authority
CN
China
Prior art keywords
pixel
yield value
difference
coordinate
value
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201511026378.XA
Other languages
Chinese (zh)
Other versions
CN105472255A (en
Inventor
郑泽龙
王云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201511026378.XA priority Critical patent/CN105472255B/en
Publication of CN105472255A publication Critical patent/CN105472255A/en
Priority to PCT/CN2016/084539 priority patent/WO2017113599A1/en
Application granted granted Critical
Publication of CN105472255B publication Critical patent/CN105472255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a kind of video playing control methods, comprising: when the image for the video program that TV display interface plays is non-high dynamic range HDR image, obtains the image to be processed of current video program;Determine whether the yield value of image slices vegetarian refreshments to be processed meets preset condition;When the yield value of image slices vegetarian refreshments to be processed meets preset condition, increase transparent figure layer above the show layers of image to be processed;Successively obtain the yield value that yield value meets two neighboring pixel in the pixel of preset condition;When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, yield value, difference and coordinate based on two neighboring pixel add pixel in transparent figure layer.The invention also discloses a kind of video playing control devices.The present invention improves the image quality of non-HDR image and the clarity of color of image details, and then improves the visual effect that user watches non-HDR video program.

Description

Video playing control method and device
Technical field
The present invention relates to technical field of image processing more particularly to a kind of video playing control methods and device.
Background technique
Currently, HDR (High-Dynamic Range, high dynamic range) technology is gradually applied as smart television develops In video program, so that image quality when smart television plays HDR video program is more clear.
Currently, there are still the video programs of a large amount of non-HDR, since the pixel of the video program of non-HDR is more low, When smart television plays the video program of non-HDR, cause the image quality of the video program of non-HDR poor, and then influences viewing program Visual effect.
Summary of the invention
The present invention provides a kind of video playing control method and device, it is intended to solve smart television and play non-HDR video section The technical problem of purpose image quality difference.
To achieve the above object, a kind of video playing control method provided by the invention, the video playing control method The following steps are included:
When the image for the video program that TV display interface plays is non-high dynamic range HDR image, work as described in acquisition The image to be processed of preceding video program;
Determine whether the yield value of the image slices vegetarian refreshments to be processed meets preset condition;
When the yield value of the image slices vegetarian refreshments to be processed meets preset condition, in the display figure of the image to be processed Layer top increases transparent figure layer;
Coordinate based on each pixel in image to be processed successively obtains yield value and meets in the pixel of preset condition The yield value of two neighboring pixel;
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, it is based on adjacent two Yield value, difference and the coordinate of a pixel add pixel in the transparent figure layer.
Preferably, the step of whether yield value of the determination image slices vegetarian refreshments to be processed meets preset condition packet It includes:
Determine whether the pixel number of the yield value within a preset range is greater than preset threshold, wherein in the increasing When the pixel number of benefit value within a preset range is greater than preset threshold, the yield value of the image slices vegetarian refreshments to be processed meets pre- If condition.
Preferably, the coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, described to obtain every time When the difference of the two neighboring pixel yield value arrived is greater than the first preset difference value, yield value based on two neighboring pixel, The step of difference and coordinate add pixel in the transparent figure layer include:
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, adjacent two are obtained The gain fine granularity of a pixel;
Pixel to be added is calculated in yield value and the gain fine granularity based on the first coordinate corresponding pixel points The yield value of point;
The first coordinate and second of yield value and the difference based on the pixel to be added in the transparent figure layer Pixel is uniformly added between coordinate.
Preferably, the difference in the two neighboring pixel yield value got every time is greater than the first preset difference value When, the fine-grained step of gain for obtaining two neighboring pixel includes:
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, it is based on adjacent two The spacing of two neighboring pixel is calculated in the coordinate of a pixel;
When the spacing is less than default spacing, the gain fine granularity of two neighboring pixel is obtained.
Preferably, the coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, described to obtain every time When the difference of the two neighboring pixel yield value arrived is greater than the first preset difference value, yield value based on two neighboring pixel, The step of difference and coordinate add pixel in the transparent figure layer include:
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, the difference is determined Whether value is greater than the second preset difference value;
When the difference is greater than the second preset difference value, the corresponding gain fine granularity of the difference is obtained;
Yield value, the difference and the gain fine granularity based on the first coordinate corresponding pixel points be calculated to Add the yield value of pixel;
The first coordinate and second of yield value and the difference based on the pixel to be added in the transparent figure layer Pixel is uniformly added between coordinate.
In addition, to achieve the above object, the present invention also provides a kind of video playing control device, the video playing control Device includes:
First obtains module, and the image of the video program for playing in TV display interface is non-high dynamic range HDR When image, the image to be processed of the current video program is obtained;
Determining module, for determining whether the yield value of the image slices vegetarian refreshments to be processed meets preset condition;
Increase module, for when the yield value of the image slices vegetarian refreshments to be processed meets preset condition, described wait locate It manages and increases transparent figure layer above the show layers of image;
Second obtains module, successively obtains yield value for the coordinate based on each pixel in image to be processed and meets in advance If the yield value of two neighboring pixel in the pixel of condition;
Adding module is greater than the first preset difference value for the difference in the two neighboring pixel yield value got every time When, yield value, difference and coordinate based on two neighboring pixel add pixel in the transparent figure layer.
Preferably, the determining module is also used to determine whether the pixel number of the yield value within a preset range is big In preset threshold, wherein described to be processed when the pixel number of the yield value within a preset range is greater than preset threshold The yield value of image slices vegetarian refreshments meets preset condition.
Preferably, the coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, the adding module packet It includes:
It is default to be greater than first for the difference in the two neighboring pixel yield value got every time for first acquisition unit When difference, the gain mean value of two neighboring pixel is obtained;
First computing unit, by based on the yield value of the first coordinate corresponding pixel points and the gain fine granularity Calculation obtains the yield value of pixel to be added;
First adding unit, for based on the pixel to be added yield value and the difference in the transparent figure layer The first coordinate and the second coordinate between uniformly add pixel.
Preferably, the first acquisition unit includes:
It is default poor to be greater than first for the difference in the two neighboring pixel yield value got every time for computation subunit When value, the spacing of two neighboring pixel is calculated in the coordinate based on two neighboring pixel;
Subelement is obtained, for obtaining the gain particulate of two neighboring pixel when the spacing is less than default spacing Degree.
Preferably, the adding module includes:
Determination unit is greater than the first preset difference value for the difference in the two neighboring pixel yield value got every time When, determine whether the difference is greater than the second preset difference value;
Second acquisition unit, for obtaining the corresponding gain of the difference when the difference is greater than the second preset difference value Fine granularity;
Second computing unit, by based on the yield value of the first coordinate corresponding pixel points and the gain fine granularity Calculation obtains the yield value of pixel to be added;
Second adding unit, for based on the pixel to be added yield value and the difference in the transparent figure layer The first coordinate and the second coordinate between uniformly add pixel.
When the image that the present invention passes through the video program played in TV display interface is non-HDR image, work as described in acquisition The image to be processed of preceding video program, then determines whether the yield value of the image slices vegetarian refreshments to be processed meets preset condition, Then when the yield value of the image slices vegetarian refreshments to be processed meets preset condition, on the show layers of the image to be processed The transparent figure layer of Fang Zengjia, the coordinate then based on each pixel in image to be processed successively obtain yield value and meet preset condition Pixel in two neighboring pixel yield value, finally in the difference of the two neighboring pixel yield value got every time When greater than the first preset difference value, yield value, difference and coordinate based on two neighboring pixel add in the transparent figure layer Pixel by adding the quantity that pixel increases the pixel of display in the transparent figure layer newly increased, and can be avoided Bright figure layer influences the display of image to be processed, improves the image quality of non-HDR image and the clarity of color of image details, in turn The visual effect that user watches non-HDR video program is improved, user experience is improved.
Detailed description of the invention
Fig. 1 is the flow diagram of video playing control method first embodiment of the present invention;
Fig. 2 is to add the thin of pixel step in video playing control method second embodiment of the present invention in transparent figure layer Change flow diagram;
Fig. 3 is the refinement process signal that gain mean value step is obtained in video playing control method 3rd embodiment of the present invention Figure;
Fig. 4 is to add the thin of pixel step in video playing control method fourth embodiment of the present invention in transparent figure layer Change flow diagram;
Fig. 5 is the functional block diagram of video playing control device first embodiment of the present invention;
Fig. 6 is the refinement the functional block diagram of adding module in video playing control device second embodiment of the present invention;
Fig. 7 is the refinement functional module signal of first acquisition unit in video playing control device 3rd embodiment of the present invention Figure;
Fig. 8 is the refinement the functional block diagram of adding module in video playing control device fourth embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of video playing control method.Referring to Fig.1, Fig. 1 is video playing control method of the present invention the The flow diagram of one embodiment.
In the present embodiment, which includes:
Step S10 is obtained when the image for the video program that TV display interface plays is non-high dynamic range HDR image Take the image to be processed of the current video program;
Wherein, the image for the video program that its display interface of TV detecting real-time plays, and be non-in the image detected When high dynamic range HDR image, the image to be processed of the current video program is obtained.Preferably, in the present embodiment, TV can With the image to be processed of current video program described in timing acquisition, for example, current video program described in timing acquisition is to be processed The time interval of image can be 10ms, 15ms etc., to guarantee to carry out subsequent processing to each frame image, in addition, TV The pictorial information that will be played can be obtained directly in the corresponding video code flow of received video program, or is directly obtained Take the image that display interface is shown, in the present embodiment, TV directly acquires the image that its display interface is shown.
Step S20, determines whether the yield value of the image slices vegetarian refreshments to be processed meets preset condition;
In the present embodiment, each pixel of image to be processed passes through R/G/B (Red/Green/Blue, red green blue) Three Essential colour channels indicate that TV obtains the RGB yield value of image slices vegetarian refreshments to be processed, wherein the gain of each pixel Value is N (such as N=8) bit quantization, i.e. the numberical range of the R/G/B yield value of each pixel is 0~28- 1, so The a certain yield value in RGB yield value is chosen afterwards as yield value to be adjusted, for example, choosing R yield value as gain to be adjusted Value, then judge whether the R yield value of image slices vegetarian refreshments to be processed meets preset condition, it is of course also possible to choose G yield value or Person's B yield value.Wherein, the selection of yield value to be adjusted can increase according to the RGB of image slices vegetarian refreshments to be processed in RGB yield value Beneficial value is selected, and for example, can choose R yield value as yield value to be adjusted for the image to be processed of red partially, for Partially green image to be processed can choose G yield value as yield value to be adjusted, can be with for partially blue image to be processed B yield value is chosen as yield value to be adjusted.
Wherein, preset condition includes that (preset range includes within a preset range for the yield value of pixel in picture to be processed First preset range and the second preset range) pixel number be greater than preset threshold, i.e., in the yield value in preset range When interior pixel number is greater than preset threshold, the yield value of the image slices vegetarian refreshments to be processed meets preset condition.With R gain For value, preset threshold determines that under normal circumstances, preset threshold can be set according to the total number of pixel in image to be processed Numberical range for 1/3, the R yield value of the total number of pixel in image to be processed is 0~255, in the first preset range Pixel is dark pixel point, since 1/3 or less the i.e. pixel yield value for being located at yield value range in pixel yield value is less than When 85, the lesser color of yield value is very dark, cannot achieve sublevel and shows, and then does not embody too strong clearly demarcated sense, therefore, the One preset range can be any range of the gain maximums such as 0~85,0~100 or 85~128 less than 128.Preferably, First preset range is the 1/3~1/2 of yield value range, specifically can be 85~128.Similar, the second preset range can be with It is greater than 128 any range for the gains minimum values such as 170~255,128~255 or 170~240, belongs in the second preset range Pixel be bright pixel point.Preferably, the second preset range is the 2/3~1 of yield value range, such as 170~255.
Step S30, when the yield value of the image slices vegetarian refreshments to be processed meets preset condition, in the image to be processed Show layers above increase transparent figure layer;
Wherein, transparent figure layer position identical with the pixel coordinate of image to be processed is transparent pixel, with Newly-increased transparent figure layer is avoided to influence the display of image to be processed.
Step S40, the coordinate based on each pixel in image to be processed successively obtain yield value and meet preset condition The yield value of two neighboring pixel in pixel;
Wherein, the yield value got is that yield value meets in preset condition coordinate phase in the pixel of same preset range The yield value of two adjacent pixels.
Step S50, when the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, base Pixel is added in the transparent figure layer in the yield value of two neighboring pixel, difference and coordinate.
In the present embodiment, TV corresponding position between two neighboring pixel coordinate of the transparent figure layer with image to be processed Set addition pixel, wherein the yield value of pixel is the gain mean value, and under normal circumstances, the number of pixel is not more than The difference.
When the image that the present embodiment passes through the video program played in TV display interface is non-HDR image, described in acquisition The image to be processed of current video program, then determines whether the yield value of the image slices vegetarian refreshments to be processed meets default item Part, then when the yield value of the image slices vegetarian refreshments to be processed meets preset condition, in the display figure of the image to be processed Layer top increases transparent figure layer, and it is default that the coordinate then based on each pixel in image to be processed successively obtains yield value satisfaction In condition in the pixel of same preset range two neighboring pixel yield value, it is finally two neighboring what is got every time When the difference of pixel yield value is greater than the first preset difference value, yield value, difference and coordinate based on two neighboring pixel exist Pixel is added in the transparent figure layer, by adding the pixel that pixel increases display in the transparent figure layer that newly increases Quantity, and can be avoided transparent figure layer and influence the display of image to be processed, improve the image quality and color of image of non-HDR image The clarity of details, and then the visual effect that user watches non-HDR video program is improved, improve user experience.
The second embodiment that video playing control method of the present invention is proposed based on first embodiment, referring to Fig. 2, in this implementation In example, the coordinate of two neighboring pixel includes the first coordinate and the second coordinate, and step S50 includes:
Step S51 is obtained when the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value Take the gain fine granularity of two neighboring pixel;
In the present embodiment, the first preset difference value can be set to 2,4,10 etc., the difference of two neighboring pixel yield value The absolute value for referring to the result that two neighboring pixel yield value subtracts each other, when the difference is greater than the first preset difference value, electricity Coordinate and gain fine granularity depending on obtaining two neighboring pixel, wherein gain fine granularity adds between two neighboring pixel The gain variation value of the pixel added.
Step S52, yield value and the gain fine granularity based on the first coordinate corresponding pixel points be calculated to Add the yield value of pixel;
Wherein, difference be positive number, the first coordinate corresponding pixel points yield value be greater than the second coordinate corresponding pixel points When yield value, the yield value of pixel to be added is that the yield value of the first coordinate corresponding pixel points successively subtracts gain fine granularity, Difference be negative, the first coordinate corresponding pixel points yield value less than the second coordinate corresponding pixel points yield value when, wait add The yield value of pixel is added to successively increase gain fine granularity for the yield value of the first coordinate corresponding pixel points, it is of course also possible to It is to be added when difference is positive number, the yield value of the first coordinate corresponding pixel points is greater than the yield value of the second coordinate corresponding pixel points The yield value of pixel is that the yield value of the second coordinate corresponding pixel points successively increases gain fine granularity, is negative, the in difference The yield value of one coordinate corresponding pixel points less than the second coordinate corresponding pixel points yield value when, the yield value of pixel to be added Yield value for the second coordinate corresponding pixel points successively reduces gain fine granularity.
Step S53, yield value and the difference based on the pixel to be added are sat the first of the transparent figure layer Pixel is uniformly added between mark and the second coordinate.
Wherein, the number of the pixel of addition is difference divided by gain fine granularity, under normal circumstances, takes difference divided by gain Fine-grained integer is the number of the pixel of addition.It, can be after the first coordinate corresponding pixel points when difference is positive number Pixel is successively increased, the yield value of pixel is added as the yield value of the first coordinate corresponding pixel points and successively subtracts gain particulate Degree adds the increasing of pixel alternatively, successively increasing the gain fine granularity pixel that subtracts one before the second coordinate corresponding pixel points Beneficial value is that the yield value of the second coordinate corresponding pixel points successively increases gain fine granularity;When difference is negative, the first coordinate pair It, can be after the first coordinate corresponding pixel points when answering yield value of the yield value of pixel less than the second coordinate corresponding pixel points The gain fine granularity pixel that subtracts one is successively increased, the yield value for adding pixel is the yield value of the first coordinate corresponding pixel points Gain fine granularity is successively increased, alternatively, successively increasing the gain fine granularity pixel that subtracts one before the second coordinate corresponding pixel points Point adds the yield value of pixel as the yield value of the second coordinate corresponding pixel points and successively reduces gain fine granularity, the present embodiment In, the number of the pixel of addition may be other values, such as addition pixel number be difference half, first When increasing pixel after coordinate corresponding pixel points, if the yield value of a certain pixel reaches the increasing of the second coordinate corresponding pixel points The yield value of pixel between the pixel and the second coordinate, then is disposed as the increasing of the second coordinate corresponding pixel points by benefit value Benefit value, when increasing pixel after the second coordinate corresponding pixel points, if the yield value of a certain pixel reaches the first coordinate pair The yield value of pixel is answered, then the yield value of the pixel and the pixel between the first coordinate is disposed as the first coordinate The yield value of corresponding pixel points.Certainly, in the present embodiment, the first coordinate and the second coordinate in transparent figure layer can also directly be covered Corresponding pixel, the yield value of the pixel of the first coordinate is the pixel of the first coordinate in image to be processed in transparent figure layer Yield value, the corresponding pixel of the second coordinate yield value be image to be processed in the second coordinate pixel yield value.
Further, in other embodiments, the coordinate of the two neighboring pixel includes that the first coordinate and second sit Mark, TV directly uniformly can add pixel between the first coordinate and the second coordinate of the transparent figure layer, wherein addition Pixel number be the difference half, the yield value of the pixel of addition is the gain mean value.
In the present embodiment, TV uniformly adds pixel between the first coordinate and the second coordinate of transparent figure layer, wherein The yield value of the pixel of addition is the gain mean value of two neighboring pixel yield value, the pixel of addition in the first coordinate and Be uniformly distributed between second coordinate, the distribution arrangement of pixel according to the yield value for successively obtaining two neighboring pixel side To, for example, under normal circumstances, the picture that the pixel of image is indicated according to wide * high, in particular to every a line of the picture (width) is included The number for the pixel that vegetarian refreshments number and each column (height) are included, is successively obtaining the yield value of two neighboring pixel Sequence is when obtaining according to capable direction, and the pixel of addition is uniform according to capable direction between the first coordinate and the second coordinate Distribution, when successively obtaining the sequence of yield value of two neighboring pixel is obtained according to the direction of column, the pixel of addition Be uniformly distributed between the first coordinate and the second coordinate according to the direction of column, two neighboring pixel be located at two different rows/ When column, corresponding pixel can be increased behind a wherein row (column) for transparent figure layer and before next row (column), when So, the pixel of the position can not also be increased.It is readily appreciated that, can also be with uneven distribution, under normal circumstances, the pixel of addition The number of point can sets itself according to demand, it is preferable that the number of the pixel of addition can be set to the half of difference, example Such as, when two adjacent pixels are respectively 210,218, the number of the pixel of addition is 4.
Further, in other embodiments, the number of the pixel of addition is that the half of the difference subtracts one, addition The yield value of pixel is that the smaller yield value in two neighboring pixel successively increases preset gain value.
In the present embodiment, the yield value of the pixel of addition is that the smaller yield value in two neighboring pixel successively increases Preset gain value, the number of the pixel of addition are that the half of the difference subtracts 1, in advance preferably, if yield value is 2, for example, When two adjacent pixels are respectively 210,218, the number of the pixel of addition is 3, the yield value of pixel is respectively 212, 214,216, when difference is odd number, for example, when two adjacent pixels are respectively 210,217, of the pixel of addition Number is 3, and the yield value of pixel is respectively 212,214,216.
In the present embodiment, if in image to be processed pixel yield value the first preset range (for example, 0~85) picture Vegetarian refreshments number be greater than preset threshold, and simultaneously in image to be processed the yield value of pixel in the second preset range (for example, 170 ~255) pixel number is greater than preset threshold, then can be based respectively on the yield value of the image slices vegetarian refreshments to be processed the Pixel is added in one transparent figure layer and the second transparent figure layer, specifically, preset threshold includes the first preset threshold and second Preset threshold, the yield value of pixel is greater than preset threshold in the pixel number of the first preset range in image to be processed When, when the difference of the two neighboring pixel yield value got every time is greater than the first preset threshold, obtain two neighboring picture The coordinate and gain mean value of vegetarian refreshments are added in the first transparent figure layer based on two neighboring pixel coordinate, difference and gain mean value Add pixel;The yield value of pixel is greater than preset threshold in the pixel number of the second preset range in image to be processed When, when the difference of the two neighboring pixel yield value got every time is greater than the second preset threshold, obtain two neighboring picture The coordinate and gain mean value of vegetarian refreshments are added in the second transparent figure layer based on two neighboring pixel coordinate, difference and gain mean value Add pixel.
The present embodiment is greater than the first preset difference value by the difference in the two neighboring pixel yield value got every time When, base obtains the gain fine granularity of two neighboring pixel, yield value, institute then based on the first coordinate corresponding pixel points It states difference and the yield value of pixel to be added is calculated in the gain fine granularity, be then based on the pixel to be added Yield value and the difference uniformly add pixel between the first coordinate and the second coordinate of the transparent figure layer;Realize root Pixel is accurately added in transparent figure layer according to two neighboring pixel coordinate, difference and gain mean value, is further improved The image quality of non-HDR image, the clarity of color of image details and user watch the visual effect of non-HDR video program.
The 3rd embodiment of video playing control method of the present invention is proposed based on second embodiment.Referring to Fig. 3, in this implementation In example, step S51 includes:
Step S511, when the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, The spacing of two neighboring pixel is calculated in coordinate based on two neighboring pixel;
In the present embodiment, the first preset difference value can be set to 2,4,10 etc., the difference of two neighboring pixel yield value The absolute value for referring to the result that two neighboring pixel yield value subtracts each other, when the difference is greater than the first preset difference value, electricity Coordinate depending on obtaining two neighboring pixel, and the spacing of two neighboring pixel is calculated according to the coordinate of acquisition, for example, When the coordinate of acquisition is respectively (3,2), (5,2), the spacing of two neighboring pixel is 2.
Step S512 obtains the gain fine granularity of two neighboring pixel when the spacing is less than default spacing.
Wherein, default spacing can be set according to the size of video screen, be calculated according to the coordinate of acquisition When the spacing of two neighboring pixel is greater than or equal to design spacing, two neighboring pixel gathering is too far, such as adjacent two A pixel is in different column or row, or not in adjacent column or row, therefore does not need to increase between two neighboring pixel Pixel.
Further, in other embodiments, the pixel of the available each row or column of image to be processed of TV is total Number does not add pixel then when the half of difference is greater than predetermined number, and predetermined number can be 1/10, the 1/8 of total number It is equivalent.
The present embodiment is greater than the first preset difference value by the difference in the two neighboring pixel yield value got every time When, the spacing of two neighboring pixel is calculated in the coordinate based on two neighboring pixel, is then less than in the spacing pre- If when spacing, obtaining the gain fine granularity of two neighboring pixel, realize when spacing is less than default spacing described transparent Pixel is uniformly added in figure layer, is avoided in spacing more than or equal to addition need not in the transparent figure layer when presetting spacing The pixel wanted and the problem of influence video playing efficiency, improve the efficiency that pixel is added in transparent figure layer, further Improve the visual effect that user watches non-HDR video program.
The fourth embodiment of video playing control method of the present invention is proposed based on second embodiment.Referring to Fig. 4, in this implementation In example, the coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, and step S50 includes:
Step S54, when the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, really Whether the fixed difference is greater than the second preset difference value;
Wherein, the difference of two neighboring pixel yield value refers to the result that two neighboring pixel yield value subtracts each other Absolute value, for the first preset difference value for judging whether to need to increase pixel, the first preset difference value can be set to 2,4,10 Deng will affect using the identical pixel of addition yield value non-when excessive due to the difference in two neighboring pixel yield value The image quality of HDR image and the clarity of color of image details, therefore the second preset difference value is for judging two neighboring pixel Whether the difference of yield value is excessive, and in the present embodiment, the second preset difference value can be set to the biggish increasings of numerical value such as 10,15,20 Benefit value.
Step S55 obtains the corresponding gain fine granularity of the difference when the difference is greater than the second preset difference value;
Wherein, the gain variation value for the pixel that gain fine granularity is added between two neighboring pixel, the present embodiment In, TV is stored with several difference ranges, such as (0,5), (6,10), (30,100) etc., equal for each difference range Equipped with corresponding gain fine granularity, therefore, when difference is greater than the second preset difference value, difference belonging to the available difference of TV It is worth the corresponding gain fine granularity of range.
Step S56, yield value and the gain fine granularity based on the first coordinate corresponding pixel points be calculated to Add the yield value of pixel;
Wherein, difference be positive number, the first coordinate corresponding pixel points yield value be greater than the second coordinate corresponding pixel points When yield value, the yield value of pixel to be added is that the yield value of the first coordinate corresponding pixel points successively subtracts gain fine granularity, Difference be negative, the first coordinate corresponding pixel points yield value less than the second coordinate corresponding pixel points yield value when, wait add The yield value of pixel is added to successively increase gain fine granularity for the yield value of the first coordinate corresponding pixel points, it is of course also possible to It is to be added when difference is positive number, the yield value of the first coordinate corresponding pixel points is greater than the yield value of the second coordinate corresponding pixel points The yield value of pixel is that the yield value of the second coordinate corresponding pixel points successively increases gain fine granularity, is negative, the in difference The yield value of one coordinate corresponding pixel points less than the second coordinate corresponding pixel points yield value when, the yield value of pixel to be added Yield value for the second coordinate corresponding pixel points successively reduces gain fine granularity.
Step S57, yield value and the difference based on the pixel to be added are sat the first of the transparent figure layer Pixel is uniformly added between mark and the second coordinate.
Wherein, the number of the pixel of addition is difference divided by gain fine granularity, under normal circumstances, takes difference divided by gain Fine-grained integer is the number of the pixel of addition.It, can be after the first coordinate corresponding pixel points when difference is positive number Pixel is successively increased, the yield value of pixel is added as the yield value of the first coordinate corresponding pixel points and successively subtracts gain particulate Degree adds the increasing of pixel alternatively, successively increasing the gain fine granularity pixel that subtracts one before the second coordinate corresponding pixel points Beneficial value is that the yield value of the second coordinate corresponding pixel points successively increases gain fine granularity;When difference is negative, the first coordinate pair It, can be after the first coordinate corresponding pixel points when answering yield value of the yield value of pixel less than the second coordinate corresponding pixel points The gain fine granularity pixel that subtracts one is successively increased, the yield value for adding pixel is the yield value of the first coordinate corresponding pixel points Gain fine granularity is successively increased, alternatively, successively increasing the gain fine granularity pixel that subtracts one before the second coordinate corresponding pixel points Point adds the yield value of pixel as the yield value of the second coordinate corresponding pixel points and successively reduces gain fine granularity, the present embodiment In, the number of the pixel of addition may be other values, such as addition pixel number be difference half, first When increasing pixel after coordinate corresponding pixel points, if the yield value of a certain pixel reaches the increasing of the second coordinate corresponding pixel points The yield value of pixel between the pixel and the second coordinate, then is disposed as the increasing of the second coordinate corresponding pixel points by benefit value Benefit value, when increasing pixel after the second coordinate corresponding pixel points, if the yield value of a certain pixel reaches the first coordinate pair The yield value of pixel is answered, then the yield value of the pixel and the pixel between the first coordinate is disposed as the first coordinate The yield value of corresponding pixel points.Certainly, in the present embodiment, the first coordinate and the second coordinate in transparent figure layer can also directly be covered Corresponding pixel, the yield value of the pixel of the first coordinate is the pixel of the first coordinate in image to be processed in transparent figure layer Yield value, the corresponding pixel of the second coordinate yield value be image to be processed in the second coordinate pixel yield value.
In other embodiments, the video playing control method further include: when the difference is greater than the second preset difference value, The gain mean value of two neighboring pixel is obtained, i.e. TV is calculated between two neighboring pixel according to the coordinate of acquisition Away from for example, the spacing of two neighboring pixel is 2 when the coordinate of acquisition is respectively (2,3), (2,5);Based on the spacing And gain increment value is calculated in difference, for example, the yield value in two neighboring pixel is 200,220, two neighboring pixel When the coordinate of point is respectively (3,2), (5,2), the difference of two neighboring pixel yield value is between 20, two neighboring pixel Away from being 2, it is specially by the difference of two neighboring pixel yield value that gain increment value, which is calculated, based on the spacing and difference Obtaining gain increment value divided by the spacing of two neighboring pixel to get the gain increment value arrived is 10;Based on two neighboring picture The yield value of vegetarian refreshments and the gain increment value uniformly add picture between the first coordinate and the second coordinate of the transparent figure layer Vegetarian refreshments, wherein the number of the pixel of addition is that the spacing subtracts one, and the yield value of the pixel of addition is two neighboring pixel Smaller yield value in point successively increases gain increment value, for example, the yield value in two neighboring pixel is 200,220, phase When the coordinate of adjacent two pixels is respectively (3,2), (7,2), the difference of two neighboring pixel yield value is 20, spacing 4, Gain increment value is 5, and the number for adding pixel is 3, and the yield value of the pixel of addition is 205,210,215, the picture of addition The sequence of vegetarian refreshments is once to be incremented by addition from the smaller yield value of two neighboring pixel to larger gain value.
In the present embodiment, it is default poor to be greater than first by the difference in the two neighboring pixel yield value got every time It when value, determines whether the difference is greater than the second preset difference value, then when the difference is greater than the second preset difference value, obtains institute The corresponding gain fine granularity of difference is stated, the yield values of the first coordinate corresponding pixel points, the difference and described are then based on The yield value of pixel to be added is calculated in gain fine granularity, yield value finally based on the pixel to be added and described Difference uniformly adds pixel between the first coordinate and the second coordinate of the transparent figure layer, realizes and is greater than second in difference Pixel is added in transparent figure layer according to spacing when preset difference value, by the incremental pixel of addition yield value, is further mentioned The high image quality of non-HDR image and the clarity of color of image details, improve the vision that user watches non-HDR video program Effect.
The present invention further provides a kind of video playing control devices.It is video playing of the present invention control referring to Fig. 5, Fig. 5 The functional block diagram of device first embodiment.
In the present embodiment, which includes:
First obtains module 10, and the image of the video program for playing in TV display interface is non-high dynamic range When HDR image, the image to be processed of the current video program is obtained;
Wherein, the image for the video program that its display interface of TV detecting real-time plays, and be non-in the image detected When high dynamic range HDR image, the first acquisition module 10 obtains the image to be processed of the current video program.Preferably, originally In embodiment, first obtains module 10 can be with the image to be processed of current video program described in timing acquisition, for example, timing acquisition The time interval of the image to be processed of the current video program can be equal to each frame image to guarantee for 10ms, 15ms etc. Subsequent processing is carried out, in addition, the first acquisition module 10 can be directly in the corresponding video code flow of received video program The pictorial information that middle acquisition will play, or the image that display interface is shown is directly acquired, in the present embodiment, first obtains mould Block 10 directly acquires the image that display interface is shown.
Determining module 20, for determining whether the yield value of the image slices vegetarian refreshments to be processed meets preset condition;
In the present embodiment, each pixel of image to be processed passes through R/G/B (Red/Green/Blue, red green blue) Three Essential colour channels indicate that determining module 20 obtains the RGB yield value of image slices vegetarian refreshments to be processed, wherein each pixel Yield value be N (such as N=8) bit quantization, i.e. the numberical range of the R/G/B yield value of each pixel is 0~ 28- 1, a certain yield value in RGB yield value is then chosen as yield value to be adjusted, is used as example, choosing R yield value wait adjust Whole yield value, then judges whether the R yield value of image slices vegetarian refreshments to be processed meets preset condition, it is of course also possible to choose G increasing Benefit value or B yield value.Wherein, the selection of yield value to be adjusted can be according to image slices vegetarian refreshments to be processed in RGB yield value RGB yield value selected, for example, partially red image to be processed can choose R yield value as yield value to be adjusted, Green image to be processed partially can choose G yield value as yield value to be adjusted, partially blue image to be processed, Ke Yixuan Take B yield value as yield value to be adjusted.
Wherein, preset condition includes that (preset range includes within a preset range for the yield value of pixel in picture to be processed First preset range and the second preset range) pixel number be greater than preset threshold, i.e., in the yield value in preset range When interior pixel number is greater than preset threshold, the yield value of the image slices vegetarian refreshments to be processed meets preset condition.With R gain For value, preset threshold determines that under normal circumstances, preset threshold can be set according to the total number of pixel in image to be processed Numberical range for 1/3, the R yield value of the total number of pixel in image to be processed is 0~255, in the first preset range Pixel is dark pixel point, since 1/3 or less the i.e. pixel yield value for being located at yield value range in pixel yield value is less than When 85, the lesser color of yield value is very dark, cannot achieve sublevel and shows, and then does not embody too strong clearly demarcated sense, therefore, the One preset range can be any range of the gain maximums such as 0~85,0~100 or 85~128 less than 128.Preferably, First preset range is the 1/3~1/2 of yield value range, specifically can be 85~128.Similar, the second preset range can be with It is greater than 128 any range for the gains minimum values such as 170~255,128~255 or 170~240, belongs in the second preset range Pixel be bright pixel point.Preferably, the second preset range is the 2/3~1 of yield value range, such as 170~255.
Increase module 30, for when the yield value of the image slices vegetarian refreshments to be processed meets preset condition, it is described to It handles and increases transparent figure layer above the show layers of image;
Wherein, transparent figure layer position identical with the pixel coordinate of image to be processed is transparent pixel, with Newly-increased transparent figure layer is avoided to influence the display of image to be processed.
Second obtains module 40, and it is default that the coordinate based on each pixel in image to be processed successively obtains yield value satisfaction The yield value of two neighboring pixel in the pixel of condition;
Wherein, the yield value got is that yield value meets in preset condition coordinate phase in the pixel of same preset range The yield value of two adjacent pixels;
It is default poor to be greater than first for the difference in the two neighboring pixel yield value got every time for adding module 50 When value, yield value, difference and coordinate based on two neighboring pixel add pixel in the transparent figure layer.
In the present embodiment, adding module 50 is right between transparent figure layer and the two neighboring pixel coordinate of image to be processed The position addition pixel answered, wherein the yield value of pixel is the gain mean value, under normal circumstances, the number of pixel No more than the difference.
Further, in other embodiments, determining module 20 is also used to determine the yield value within a preset range Whether pixel number is greater than preset threshold, wherein is greater than in the pixel number of the yield value within a preset range default When threshold value, the yield value of the image slices vegetarian refreshments to be processed meets preset condition.
The image that the present embodiment passes through the video program played in TV display interface is non-high dynamic range HDR image When, the image to be processed of current video program described in 10 timing acquisition of module is obtained, then determining module 20 determines described wait locate Whether the yield value of reason image slices vegetarian refreshments meets preset condition, then meets in the yield value of the image slices vegetarian refreshments to be processed pre- If when condition, increase module 30 increase transparent figure layer above the image to be processed, then second obtain module 40 be based on to The coordinate for handling each pixel in image successively obtains yield value and meets two neighboring pixel in the pixel of preset condition Yield value, finally the difference of the two neighboring pixel yield value got every time be greater than the first preset difference value when, addition Yield value, difference and coordinate of the module 50 based on two neighboring pixel add pixel in the transparent figure layer, by The transparent figure layer addition pixel newly increased increases the quantity of the pixel of display, and can be avoided transparent figure layer and influence wait locate The display for managing image, improves the image quality of non-HDR image and the clarity of color of image details, and then improves user's viewing The visual effect of non-HDR video program, improves user experience.
The second embodiment that video playing control device of the present invention is proposed based on first embodiment, referring to Fig. 6, in this implementation In example, the coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, and adding module 50 includes:
It is pre- to be greater than first for the difference in the two neighboring pixel yield value got every time for first acquisition unit 51 If when difference, obtaining the gain fine granularity of two neighboring pixel;
In the present embodiment, the first preset difference value can be set to 2,4,10 etc., the difference of two neighboring pixel yield value The absolute value for referring to the result that two neighboring pixel yield value subtracts each other, when the difference is greater than the first preset difference value, electricity Coordinate and gain fine granularity depending on obtaining two neighboring pixel, wherein gain fine granularity adds between two neighboring pixel The gain variation value of the pixel added.
First computing unit 52, for based on the first coordinate corresponding pixel points yield value and the gain fine granularity The yield value of pixel to be added is calculated;
Wherein, difference be positive number, the first coordinate corresponding pixel points yield value be greater than the second coordinate corresponding pixel points When yield value, the yield value of pixel to be added is that the yield value of the first coordinate corresponding pixel points successively subtracts gain fine granularity, Difference be negative, the first coordinate corresponding pixel points yield value less than the second coordinate corresponding pixel points yield value when, wait add The yield value of pixel is added to successively increase gain fine granularity for the yield value of the first coordinate corresponding pixel points, it is of course also possible to It is to be added when difference is positive number, the yield value of the first coordinate corresponding pixel points is greater than the yield value of the second coordinate corresponding pixel points The yield value of pixel is that the yield value of the second coordinate corresponding pixel points successively increases gain fine granularity, is negative, the in difference The yield value of one coordinate corresponding pixel points less than the second coordinate corresponding pixel points yield value when, the yield value of pixel to be added Yield value for the second coordinate corresponding pixel points successively reduces gain fine granularity.
First adding unit 53, for based on the pixel to be added yield value and the difference in the transparent print Pixel is uniformly added between the first coordinate and the second coordinate of layer.
Wherein, the number of the pixel of addition is difference divided by gain fine granularity, under normal circumstances, takes difference divided by gain Fine-grained integer is the number of the pixel of addition.When difference is positive number, the first adding unit 53 can be in the first coordinate Pixel is successively increased after corresponding pixel points, add pixel yield value be the first coordinate corresponding pixel points yield value according to It is secondary to subtract gain fine granularity, alternatively, the first adding unit 53 successively increases gain particulate before the second coordinate corresponding pixel points The degree pixel that subtracts one, the yield value for adding pixel is that the yield values of the second coordinate corresponding pixel points successively increases gain particulate Degree;When difference is negative, the yield values of the first coordinate corresponding pixel points less than the second coordinate corresponding pixel points yield value when, First adding unit 53 can successively increase the gain fine granularity pixel that subtracts one, addition after the first coordinate corresponding pixel points The yield value of pixel is that the yield value of the first coordinate corresponding pixel points successively increases gain fine granularity, alternatively, the first addition is single Member 53 successively increases the gain fine granularity pixel that subtracts one before the second coordinate corresponding pixel points, adds the yield value of pixel Gain fine granularity is successively reduced for the yield value of the second coordinate corresponding pixel points, in the present embodiment, the number of the pixel of addition May be other values, for example, addition pixel number be difference half, increase after the first coordinate corresponding pixel points When adding pixel, if the yield value of a certain pixel reaches the yield value of the second coordinate corresponding pixel points, by the pixel and The yield value of pixel between second coordinate is disposed as the yield value of the second coordinate corresponding pixel points, answers in the second coordinate pair When increasing pixel after pixel, if the yield value of a certain pixel reaches the yield value of the first coordinate corresponding pixel points, The yield value of the pixel and the pixel between the first coordinate is disposed as to the yield value of the first coordinate corresponding pixel points. Certainly, in the present embodiment, the first coordinate and the corresponding pixel of the second coordinate, transparent print in transparent figure layer can also directly be covered The yield value of the pixel of the first coordinate is the yield value of the pixel of the first coordinate, the second coordinate pair in image to be processed in layer The yield value for the pixel answered is the yield value of the pixel of the second coordinate in image to be processed.
The present embodiment is greater than the first preset difference value by the difference in the two neighboring pixel yield value got every time When, 51 base of first acquisition unit obtains the gain fine granularity of two neighboring pixel, and then the first computing unit 52 is based on described The gain of pixel to be added is calculated in yield value, the difference and the gain fine granularity of first coordinate corresponding pixel points Value, then yield value of first adding unit 53 based on the pixel to be added and the difference in the transparent figure layer the Pixel is uniformly added between one coordinate and the second coordinate;It realizes equal according to two neighboring pixel coordinate, difference and gain Value accurately adds pixel in transparent figure layer, further improve the image quality of non-HDR image, color of image details it is clear Degree and user watch the visual effect of non-HDR video program.
The 3rd embodiment that video playing control device of the present invention is proposed based on first embodiment, referring to Fig. 7, in this implementation In example, first acquisition unit 51 includes:
It is pre- to be greater than first for the difference in the two neighboring pixel yield value got every time for computation subunit 511 If when difference, the spacing of two neighboring pixel is calculated in the coordinate based on two neighboring pixel;
In the present embodiment, the first preset difference value can be set to 2,4,10 etc., the difference of two neighboring pixel yield value The absolute value for referring to the result that two neighboring pixel yield value subtracts each other, when the difference is greater than the first preset difference value, meter Operator unit 511 obtains the coordinate of two neighboring pixel, and two neighboring pixel is calculated according to the coordinate of acquisition Spacing, for example, the spacing of two neighboring pixel is 2 when the coordinate obtained is respectively (3,2), (5,2).
Subelement 512 is obtained, for when the spacing is less than default spacing, the gain for obtaining two neighboring pixel to be thin Granularity.
Wherein, default spacing can be set according to the size of video screen, be calculated according to the coordinate of acquisition When the spacing of two neighboring pixel is greater than or equal to design spacing, two neighboring pixel is met too far for example two neighboring Pixel is in different column or row, or not in adjacent column or row, therefore does not need to increase picture between two neighboring pixel Vegetarian refreshments.
Further, in other embodiments, the pixel of the available each row or column of image to be processed of TV is total Number does not add pixel then when the half of difference is greater than predetermined number, and predetermined number can be 1/10, the 1/8 of total number It is equivalent.
The present embodiment is greater than the first preset difference value by the difference in the two neighboring pixel yield value got every time When, the spacing of two neighboring pixel is calculated based on the coordinate of two neighboring pixel for computation subunit 511, then in institute When stating spacing less than default spacing, the gain fine granularity that subelement 512 obtains two neighboring pixel is obtained, is realized in spacing Pixel is uniformly added in the transparent figure layer when less than default spacing, is avoided when spacing is greater than or equal to default spacing The problem of adding unnecessary pixel in the transparent figure layer and influencing video playing efficiency, improves in transparent figure layer The efficiency for adding pixel, further improves the visual effect that user watches non-HDR video program.
The fourth embodiment that video playing control device of the present invention is proposed based on first embodiment, referring to Fig. 8, in this implementation In example, the coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, and the adding module 50 includes:
It is default poor to be greater than first for the difference in the two neighboring pixel yield value got every time for determination unit 54 When value, determine whether the difference is greater than the second preset difference value;
Wherein, the difference of two neighboring pixel yield value refers to the result that two neighboring pixel yield value subtracts each other Absolute value, for the first preset difference value for judging whether to need to increase pixel, the first preset difference value can be set to 2,4,10 Deng will affect using the identical pixel of addition yield value non-when excessive due to the difference in two neighboring pixel yield value The image quality of HDR image and the clarity of color of image details, therefore the second preset difference value is for judging two neighboring pixel Whether the difference of yield value is excessive, and in the present embodiment, the second preset difference value can be set to the biggish increasings of numerical value such as 10,15,20 Benefit value.
Second acquisition unit 55, for obtaining the corresponding increasing of the difference when the difference is greater than the second preset difference value Beneficial fine granularity;
Wherein, the gain variation value for the pixel that gain fine granularity is added between two neighboring pixel, the present embodiment In, TV is stored with several difference ranges, such as (0,5), (6,10), (30,100) etc., equal for each difference range Equipped with corresponding gain fine granularity, therefore, when difference is greater than the second preset difference value, the available difference of second acquisition unit 55 The corresponding gain fine granularity of difference range belonging to value.
Second computing unit 56, for based on the first coordinate corresponding pixel points yield value and the gain fine granularity The yield value of pixel to be added is calculated;
Wherein, difference be positive number, the first coordinate corresponding pixel points yield value be greater than the second coordinate corresponding pixel points When yield value, the yield value of pixel to be added is that the yield value of the first coordinate corresponding pixel points successively subtracts gain fine granularity, Difference be negative, the first coordinate corresponding pixel points yield value less than the second coordinate corresponding pixel points yield value when, wait add The yield value of pixel is added to successively increase gain fine granularity for the yield value of the first coordinate corresponding pixel points, it is of course also possible to It is to be added when difference is positive number, the yield value of the first coordinate corresponding pixel points is greater than the yield value of the second coordinate corresponding pixel points The yield value of pixel is that the yield value of the second coordinate corresponding pixel points successively increases gain fine granularity, is negative, the in difference The yield value of one coordinate corresponding pixel points less than the second coordinate corresponding pixel points yield value when, the yield value of pixel to be added Yield value for the second coordinate corresponding pixel points successively reduces gain fine granularity.
Second adding unit 57, for based on the pixel to be added yield value and the difference in the transparent print Pixel is uniformly added between the first coordinate and the second coordinate of layer.
Wherein, the number of the pixel of addition is difference divided by gain fine granularity, under normal circumstances, takes difference divided by gain Fine-grained integer is the number of the pixel of addition.It, can be after the first coordinate corresponding pixel points when difference is positive number Pixel is successively increased, the yield value of pixel is added as the yield value of the first coordinate corresponding pixel points and successively subtracts gain particulate Degree adds the increasing of pixel alternatively, successively increasing the gain fine granularity pixel that subtracts one before the second coordinate corresponding pixel points Beneficial value is that the yield value of the second coordinate corresponding pixel points successively increases gain fine granularity;When difference is negative, the first coordinate pair It, can be after the first coordinate corresponding pixel points when answering yield value of the yield value of pixel less than the second coordinate corresponding pixel points The gain fine granularity pixel that subtracts one is successively increased, the yield value for adding pixel is the yield value of the first coordinate corresponding pixel points Gain fine granularity is successively increased, alternatively, successively increasing the gain fine granularity pixel that subtracts one before the second coordinate corresponding pixel points Point adds the yield value of pixel as the yield value of the second coordinate corresponding pixel points and successively reduces gain fine granularity, the present embodiment In, the number of the pixel of addition may be other values, such as addition pixel number be difference half, first When increasing pixel after coordinate corresponding pixel points, if the yield value of a certain pixel reaches the increasing of the second coordinate corresponding pixel points The yield value of pixel between the pixel and the second coordinate, then is disposed as the increasing of the second coordinate corresponding pixel points by benefit value Benefit value, when increasing pixel after the second coordinate corresponding pixel points, if the yield value of a certain pixel reaches the first coordinate pair The yield value of pixel is answered, then the yield value of the pixel and the pixel between the first coordinate is disposed as the first coordinate The yield value of corresponding pixel points.
In the present embodiment, it is default poor to be greater than first by the difference in the two neighboring pixel yield value got every time When value, determination unit 54 determines whether the difference is greater than the second preset difference value, and it is default poor to be then greater than second in the difference When value, second acquisition unit 55 obtains the corresponding gain fine granularity of the difference, and then the second computing unit 56 is based on described the The gain of pixel to be added is calculated in yield value, the difference and the gain fine granularity of one coordinate corresponding pixel points Value, yield value of the second last adding unit 57 based on the pixel to be added and the difference in the transparent figure layer the Pixel is uniformly added between one coordinate and the second coordinate, is realized when difference is greater than the second preset difference value according to spacing saturating Add pixel in bright figure layer, by the incremental pixel of addition yield value, further improve non-HDR image image quality and The clarity of color of image details improves the visual effect that user watches non-HDR video program.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of video playing control method, which is characterized in that the video playing control method the following steps are included:
When the image for the video program that TV display interface plays is non-high dynamic range HDR image, acquisition is described to work as forward sight The image to be processed of frequency program;
Determine whether the yield value of the image slices vegetarian refreshments to be processed meets preset condition;
When the yield value of the image slices vegetarian refreshments to be processed meets preset condition, on the show layers of the image to be processed The transparent figure layer of Fang Zengjia;
Coordinate based on each pixel in image to be processed successively obtain yield value meet it is adjacent in the pixel of preset condition The yield value of two pixels;
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, it is based on two neighboring picture The yield value of vegetarian refreshments, the difference of two neighboring pixel yield value and coordinate add pixel in the transparent figure layer;
The coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, described two neighboring what is got every time When the difference of pixel yield value is greater than the first preset difference value, yield value, difference and coordinate based on two neighboring pixel exist The step of addition pixel, includes: in the transparent figure layer
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, two neighboring picture is obtained The gain fine granularity of vegetarian refreshments;Yield value and the gain fine granularity based on the first coordinate corresponding pixel points be calculated to Add the yield value of pixel;Yield value and the difference based on the pixel to be added are the first of the transparent figure layer Pixel is uniformly added between coordinate and the second coordinate;Alternatively,
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, determine that the difference is It is no to be greater than the second preset difference value;When the difference is greater than the second preset difference value, the corresponding gain fine granularity of the difference is obtained; Pixel to be added is calculated in yield value, the difference and the gain fine granularity based on the first coordinate corresponding pixel points The yield value of point;Yield value and the difference based on the pixel to be added are in the first coordinate of the transparent figure layer and Pixel is uniformly added between two coordinates.
2. video playing control method as described in claim 1, which is characterized in that the determination image pixel to be processed Yield value the step of whether meeting preset condition of point includes:
Determine whether the pixel number of the yield value within a preset range is greater than preset threshold, wherein in the yield value When pixel number within a preset range is greater than preset threshold, the yield value of the image slices vegetarian refreshments to be processed meets default item Part.
3. video playing control method as described in claim 1, which is characterized in that described two neighboring what is got every time When the difference of pixel yield value is greater than the first preset difference value, the fine-grained step packet of gain of two neighboring pixel is obtained It includes:
When the difference of the two neighboring pixel yield value got every time is greater than the first preset difference value, it is based on two neighboring picture The spacing of two neighboring pixel is calculated in the coordinate of vegetarian refreshments;
When the spacing is less than default spacing, the gain fine granularity of two neighboring pixel is obtained.
4. a kind of video playing control device, which is characterized in that the video playing control device includes:
First obtains module, and the image of the video program for playing in TV display interface is non-high dynamic range HDR image When, obtain the image to be processed of the current video program;
Determining module, for determining whether the yield value of the image slices vegetarian refreshments to be processed meets preset condition;
Increase module, for when the yield value of the image slices vegetarian refreshments to be processed meets preset condition, in the figure to be processed Increase transparent figure layer above the show layers of picture;
Second obtains module, successively obtains yield value for the coordinate based on each pixel in image to be processed and meets default item The yield value of two neighboring pixel in the pixel of part;
Adding module, when being greater than the first preset difference value for the difference in the two neighboring pixel yield value got every time, The difference and coordinate of yield value, two neighboring pixel yield value based on two neighboring pixel add in the transparent figure layer Add pixel;
The coordinate of the two neighboring pixel includes the first coordinate and the second coordinate, and the adding module includes:
First acquisition unit is greater than the first preset difference value for the difference in the two neighboring pixel yield value got every time When, obtain the gain mean value of two neighboring pixel;First computing unit, for based on the first coordinate corresponding pixel points The yield value of pixel to be added is calculated in yield value and the gain fine granularity;First adding unit, for based on described The yield value of pixel to be added and the difference are uniformly added between the first coordinate and the second coordinate of the transparent figure layer Pixel;
Alternatively, the adding module comprises determining that unit, for the difference in the two neighboring pixel yield value got every time When value is greater than the first preset difference value, determine whether the difference is greater than the second preset difference value;Second acquisition unit, for described When difference is greater than the second preset difference value, the corresponding gain fine granularity of the difference is obtained;Second computing unit, for based on described The yield value of pixel to be added is calculated in the yield value of first coordinate corresponding pixel points and the gain fine granularity;Second adds Add unit, for based on the pixel to be added yield value and the difference in the first coordinate of the transparent figure layer and Pixel is uniformly added between two coordinates.
5. video playing control device as claimed in claim 4, which is characterized in that described in the determining module is also used to determine Whether the pixel number of yield value within a preset range is greater than preset threshold, wherein the yield value within a preset range Pixel number be greater than preset threshold when, the yield value of the image slices vegetarian refreshments to be processed meets preset condition.
6. video playing control device as claimed in claim 4, which is characterized in that the first acquisition unit includes:
Computation subunit is greater than the first preset difference value for the difference in the two neighboring pixel yield value got every time When, the spacing of two neighboring pixel is calculated in the coordinate based on two neighboring pixel;
Subelement is obtained, for obtaining the gain fine granularity of two neighboring pixel when the spacing is less than default spacing.
CN201511026378.XA 2015-12-30 2015-12-30 Video playing control method and device Active CN105472255B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201511026378.XA CN105472255B (en) 2015-12-30 2015-12-30 Video playing control method and device
PCT/CN2016/084539 WO2017113599A1 (en) 2015-12-30 2016-06-02 Video playback control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511026378.XA CN105472255B (en) 2015-12-30 2015-12-30 Video playing control method and device

Publications (2)

Publication Number Publication Date
CN105472255A CN105472255A (en) 2016-04-06
CN105472255B true CN105472255B (en) 2019-02-26

Family

ID=55609485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511026378.XA Active CN105472255B (en) 2015-12-30 2015-12-30 Video playing control method and device

Country Status (2)

Country Link
CN (1) CN105472255B (en)
WO (1) WO2017113599A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472255B (en) * 2015-12-30 2019-02-26 深圳Tcl数字技术有限公司 Video playing control method and device
CN105959727B (en) * 2016-05-24 2019-12-17 深圳Tcl数字技术有限公司 Video processing method and device
CN113611237A (en) * 2021-07-03 2021-11-05 深圳市南极光电子科技股份有限公司 Method and system for adjusting MINI LED backlight display picture

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841631A (en) * 2009-03-20 2010-09-22 微星科技股份有限公司 Shadow exposure compensation method and image processing device using same
CN104616273A (en) * 2015-01-26 2015-05-13 电子科技大学 Multi-exposure image fusion method based on Laplacian pyramid decomposition

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7728896B2 (en) * 2005-07-12 2010-06-01 Micron Technology, Inc. Dual conversion gain gate and capacitor and HDR combination
US8135230B2 (en) * 2007-07-30 2012-03-13 Dolby Laboratories Licensing Corporation Enhancing dynamic ranges of images
WO2012142285A2 (en) * 2011-04-12 2012-10-18 Dolby Laboratories Licensing Corporation Quality assessment for images that have extended dynamic ranges or wide color gamuts
CN103597812B (en) * 2011-06-14 2017-11-21 皇家飞利浦有限公司 Graphic processing apparatus and method for high dynamic range video
CN104349066B (en) * 2013-07-31 2018-03-06 华为终端(东莞)有限公司 A kind of method, apparatus for generating high dynamic range images
CN105472255B (en) * 2015-12-30 2019-02-26 深圳Tcl数字技术有限公司 Video playing control method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841631A (en) * 2009-03-20 2010-09-22 微星科技股份有限公司 Shadow exposure compensation method and image processing device using same
CN104616273A (en) * 2015-01-26 2015-05-13 电子科技大学 Multi-exposure image fusion method based on Laplacian pyramid decomposition

Also Published As

Publication number Publication date
CN105472255A (en) 2016-04-06
WO2017113599A1 (en) 2017-07-06

Similar Documents

Publication Publication Date Title
JP5091796B2 (en) Image processing device
CN105208376B (en) A kind of digital noise reduction method and apparatus
CN107909553B (en) Image processing method and device
JP5896497B2 (en) Method and wireless handheld device for determining the hue of an image
CN107635103B (en) Image processing method, mobile terminal and medium product
CN110136071A (en) A kind of image processing method, device, electronic equipment and storage medium
CN105472255B (en) Video playing control method and device
CN106530252B (en) Image processing method and device
CN101742338B (en) Sharpness enhancing apparatus and method
US20120020560A1 (en) Method and system arranged for filtering an image
US20120093419A1 (en) Continuous Edge And Detail Mapping Using A Weighted Monotony Measurement
CN111064942B (en) Image processing method and apparatus
CN104360829A (en) Method and device for adjusting color temperature of screen
CN114092360A (en) Image processing method, apparatus and readable storage medium
US8339471B2 (en) Auto white balance algorithm using RGB product measure
US20220044369A1 (en) Image processing method, terminal and non-transitory computer-readable storage medium
US8958640B1 (en) Image color cast correction using groups of pixels
US7375770B2 (en) Method for luminance transition improvement
CN101552866A (en) A video signal interpolating device, a video display device and a video signal interpolating method
JP2015103174A (en) Image processing apparatus, computer program, and image processing method
CN112788251B (en) Image brightness processing method and device, and image processing method and device
US20140314317A1 (en) Method and apparatus for converting gray level of color image
US20120321178A1 (en) Method for stitching image in digital image processing apparatus
CN105959727A (en) Video processing method and device
CN101867700B (en) Method and device for processing image data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant