WO2017201893A1 - 视频处理方法和装置 - Google Patents

视频处理方法和装置 Download PDF

Info

Publication number
WO2017201893A1
WO2017201893A1 PCT/CN2016/095796 CN2016095796W WO2017201893A1 WO 2017201893 A1 WO2017201893 A1 WO 2017201893A1 CN 2016095796 W CN2016095796 W CN 2016095796W WO 2017201893 A1 WO2017201893 A1 WO 2017201893A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
displayed
value
gain value
gain
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.)
Ceased
Application number
PCT/CN2016/095796
Other languages
English (en)
French (fr)
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 Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital 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 Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Publication of WO2017201893A1 publication Critical patent/WO2017201893A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA

Definitions

  • the present invention relates to the field of television technologies, and in particular, to a video processing method and apparatus.
  • HDR High-Dynamic. Range, high dynamic range
  • the dark and bright details of the display technology are very good, resulting in very good display.
  • the HDR picture has been enlarged for the picture itself, when the picture ratio is switched, with the traditional VESA (Video Electronics Standards Association, Video Electronics Standards Association) screens are very different.
  • the current physical resolution of traditional VESA displays is usually 1920x1080, which is suitable for 16:9 aspect ratio, while HDR video tends to have a ratio of 4:3, in physics.
  • the resolution of the 1920x1080 display screen is 4:3, the screen will be abnormally stretched due to the mismatch between the physical resolution of the display and the video frame to be played.
  • the main purpose of the present invention is to provide a video processing method and apparatus, which aims to solve the technical problem that the physical resolution of the display screen does not match the ratio of the video image to be played in the prior art, which may result in abnormal stretching of the screen and poor playback performance.
  • the present invention provides a video processing method, where the video processing method includes:
  • the step of acquiring the first pixel to be deleted in the first pixel includes:
  • the step of obtaining the first pixel point that the difference between the gain values in the picture frame to be displayed and the horizontally adjacent pixel points in the to-be-displayed video is less than a preset threshold includes:
  • each of the pixel points is a pixel point whose gain value is greater than a preset gain value.
  • the preset gain value is half of a maximum value of the gain.
  • the step of determining a gain value of the screen area outside the current display area in the display screen according to the gain value of the second pixel point includes:
  • the gain value at the corresponding position in the screen area outside the current display area in the display screen is determined according to the average value of the gain value of the second pixel point of each line.
  • the video processing method further includes the following steps:
  • the first pixel that obtains a difference between the gain value of the image frame to be displayed and the pixel adjacent to the horizontal direction in the to-be-displayed video is less than a preset threshold. Point the steps.
  • the present invention further provides a video processing apparatus, where the video processing apparatus includes:
  • An acquiring module configured to acquire a first pixel point that has a difference between a gain value in a picture frame to be displayed and a pixel in a horizontal direction that is smaller than a preset threshold, and obtain a to-be-deleted in the first pixel First pixel point;
  • a deleting module configured to delete the first pixel to be deleted in the picture frame to be displayed, so that the width of the picture frame to be displayed is equal to the width of the current display area
  • the obtaining module is further configured to obtain a gain value of the second pixel in the vertical direction and the current display area in the picture frame to be displayed;
  • a determining module configured to determine, according to a gain value of the second pixel, a gain value of a screen area outside the current display area in the display screen, according to a gain value of the second pixel point when displaying the picture frame to be displayed Adjusting a gain value of an edge pixel in the current display area.
  • the obtaining module includes:
  • a first acquiring unit configured to acquire a quantity value of a pixel point in a horizontal direction beyond the current display area in the picture frame to be displayed, and obtain a difference value of a gain value between adjacent pixel points in the horizontal direction is smaller than a preset The number of thresholds;
  • a determining unit configured to determine, according to the obtained quantity value and the number of times, the number of first pixel points in the first pixel point group in which the set of gain value differences is less than a preset threshold, wherein the first pixel point Each of the first pixels in the group is adjacent to each other, and the first pixel to be deleted is determined according to the number of the first pixel points in the first pixel group that are smaller than the preset threshold.
  • the obtaining module is further configured to:
  • each of the pixel points is a pixel point whose gain value is greater than a preset gain value.
  • the preset gain value is half of a maximum value of the gain.
  • the determining module comprises:
  • a second acquiring unit configured to acquire a gain value mean value of the second pixel point of each row
  • the determining unit determines a gain value at a corresponding position in the screen area outside the current display area in the display screen according to the average value of the gain value of the second pixel point of each line.
  • the acquiring module is further configured to: acquire a proportional mode of the to-be-displayed video screen, and obtain a picture frame to be displayed in the to-be-displayed video that is adjacent to the horizontal direction when the obtained proportional mode does not match the physical resolution of the display screen.
  • the difference between the gain values between the pixels is less than the first pixel of the preset threshold.
  • the video processing method and apparatus provided by the present invention in which the resolution of the horizontal direction and the physical resolution are deleted by deleting the first pixel point whose difference value of the gain values between adjacent pixel points in the horizontal direction is smaller than a preset threshold value. Rate matching, and adjust the gain of the edge of the current display area in the display area by the gain value in the vertical direction, thereby ensuring a smooth transition of the edge area of the picture frame to be displayed during display; meanwhile, the adjustment scheme only deletes the gain value.
  • the close pixels ensure the display of the video to be displayed.
  • FIG. 1 is a schematic flow chart of an embodiment of a video processing method according to the present invention.
  • FIG. 2 is a schematic diagram showing a comparison of display effects of videos to be played in different scale modes in the video processing method of the present invention
  • FIG. 3 is a schematic diagram of functional modules of an embodiment of a video processing device according to the present invention.
  • the invention provides a video processing method.
  • FIG. 1 is a schematic flowchart of a video processing method according to an embodiment of the present invention.
  • This embodiment provides a thermal video processing method, where the video processing method includes:
  • Step S10 Obtain a first pixel point that is smaller than a preset threshold value, and obtain a first pixel to be deleted in the first pixel point. pixel;
  • the step of “acquiring the first pixel point that the difference between the gain values in the picture frame to be displayed and the horizontally adjacent pixel points in the picture to be displayed is smaller than a preset threshold” includes:
  • the gain value of each pixel in the image frame to be displayed is first obtained, and the difference between the gain values of the adjacent pixels in the horizontal direction and the horizontal direction is calculated according to the preset direction, and the preset direction may be
  • the coordinate value of the X-axis in the coordinate information of the pixel gradually becomes larger or the coordinate value of the X-axis in the coordinate information of the pixel gradually becomes smaller, and if the difference between the gain values of two adjacent pixels in the horizontal direction is smaller than the pre-pre
  • two adjacent pixels are taken as the first pixel.
  • the gain value difference between each of the first pixel points and the first pixel point and the adjacent pixel point may be recorded, and the difference in the gain value may be obtained when the first pixel point to be deleted in the first pixel point is acquired.
  • the video to be played in this embodiment may be an HDR video, and there are many pixels with similar gain values. Since the HDR picture is relatively bright and the highlight area is relatively large, the pixel point whose gain value is greater than the preset gain value may be obtained first, and the pixel point whose gain value is greater than the preset gain value is obtained from the adjacent pixel point in the horizontal direction. A pixel point whose gain value difference is less than a preset threshold is used as the first pixel point, and the preset gain value may be half of the gain maximum value, such as 128.
  • the quantity value of the first pixel to be deleted may be first obtained, and the first pixel to be deleted is selected in the first pixel according to the quantity.
  • the pixel, that is, the step of “acquiring the first pixel to be deleted in the first pixel” includes:
  • the physical resolution of the screen is 1920 ⁇ 1080, and the proportion mode of the video to be played is 4:3.
  • the picture frame to be played is out of the current display area in the horizontal direction, that is, the current display area is exceeded in the horizontal direction.
  • the gain value between adjacent pixel points is calculated to be less than the preset threshold, the number of times the difference of the gain values is less than the preset threshold is added, for example, setting a preset.
  • the threshold is 10, and the initial value of the number of times less than the preset value is 0, then:
  • the color gain value between each adjacent pixel point is continuously calculated according to the increasing coordinate order of the X-axis, and the number of times the adjacent pixel point gain value difference is less than the preset threshold value is updated until all adjacent pixel points are calculated.
  • the difference value of the gain value is obtained, and the final value of the number of times the difference value of the adjacent pixel point gain value is less than the preset threshold value is obtained. It can be understood that, when the gain value difference between the pixel point and the adjacent pixel point is calculated each time in order, if the difference between the gain value of the pixel point and the adjacent pixel point is less than a preset threshold, then The number of times the difference between the adjacent pixel point gain values is less than the preset threshold is increased by one.
  • the pixel points are sequentially traversed to coordinate values of 50, 51, and 52, and the gain values of the respective pixel points are 121, respectively.
  • the difference between the gain value of the pixel 50 and the pixel 51 is 2 is less than the preset threshold 10
  • the number of times the difference value of the adjacent pixel point gain value is less than the preset threshold is increased by 1, if the pixel point 51
  • the difference between the gain value and the pixel point 52 is less than the preset threshold value 10
  • the number of times the adjacent pixel point gain value difference is less than the preset threshold value is incremented by one.
  • the difference between the gain values between consecutive multiple adjacent pixel points is less than the preset threshold
  • the number of times the adjacent pixel point gain value difference is less than the preset threshold is directly added, for example, When traversing each pixel point, traversing to pixel points whose coordinate values are sequentially 50, 51, and 52, and the gain values of the respective pixel points are 121, 123, and 120, respectively, due to the difference in gain value between the pixel point 50 and the pixel point 51.
  • the value of 2 is less than the preset threshold 10
  • the difference between the gain value of the pixel 51 and the pixel 52 is less than the preset threshold 10
  • the difference between the adjacent pixel gain value and the preset threshold is directly added. 1.
  • the gain of each group is obtained when the difference of the gain values of the adjacent pixel points is less than the preset value.
  • the number of pixels to be deleted in the adjacent pixel group whose value difference is less than the preset threshold is 19/10 ⁇ 2, that is, each time the difference of the gain values of adjacent pixels is less than the preset value, The two adjacent pixels need to be deleted.
  • each set of adjacent pixel points whose difference value is smaller than a preset threshold The number of pixels that need to be deleted in the group is 1, and can be deleted from small to large in the order of coordinates until 19 pixels are deleted.
  • the first pixel point may be divided into two sub-sets from the middle coordinate of one line, and half of the number is deleted in the set of the left and right sides respectively.
  • the coordinates of the pixel points deleted on the left and right sides are approximately symmetric with respect to the intermediate coordinate point. .
  • the present invention may also obtain the first pixel to be deleted by other means, and is not limited to the above manner.
  • the first pixel to be deleted is determined directly according to the number of pixels that are exceeded.
  • Step S20 deleting the first pixel to be deleted in the picture frame to be displayed, so that the width of the picture frame to be displayed is equal to the width of the current display area;
  • the number of pixel points in the picture frame to be displayed is equal to the number of pixel points of the current display area, even if the width of the picture frame to be displayed is equal to the width of the current display area.
  • Step S30 Acquire a gain value of a second pixel point in a vertical direction and a current display area in the picture frame to be displayed;
  • the display ratio corresponding to the 1920 ⁇ 1080 resolution is 16:9
  • the display effect of the 16:9 video is as shown in the left diagram of FIG. 2
  • the display effect of the 4:3 video is shown in FIG. 2.
  • the display area of the display screen of 1920 ⁇ 1080 resolution is exceeded, and the second pixel point beyond the current display area can be determined by the coordinate values of the respective pixel points.
  • the pixel gain value can be obtained by averaging the three primary color gain values.
  • BGain 30
  • Step S40 determining a gain value of the screen area outside the current display area in the display screen according to the gain value of the second pixel point, to adjust the edge pixel point in the current display area according to the gain value of the second pixel point when displaying the picture frame to be displayed.
  • Gain value determining a gain value of the screen area outside the current display area in the display screen according to the gain value of the second pixel point, to adjust the edge pixel point in the current display area according to the gain value of the second pixel point when displaying the picture frame to be displayed.
  • the edge pixel points in the current display area are the upper and lower edges of the current display area, for example, the pixel point of the top row of the current display area and the pixel point of the bottom row, and of course, the top two rows of the current display area.
  • the pixel points and the pixels of the bottom two rows, the number of rows of pixels can be set by the user according to the display needs.
  • step S40 includes:
  • the gain value at the corresponding position in the screen area outside the current display area in the display screen is determined according to the average value of the gain value of the second pixel point of each line.
  • the screen area outside the current display area is the black pixel point area at the edge of the display screen, and the screen area outside the current display area can be determined by determining the black pixel point area.
  • the gain value of each line of the screen area outside the current display area in the scheme can be directly obtained from the mean value of the gain value at the corresponding position in the video frame to be displayed.
  • the to-be-displayed picture frame of the first pixel to be deleted may be directly displayed, and the gain value of the screen area outside the current display area in the current display area may be adjusted according to the gain value of the second pixel to implement the image to be displayed.
  • the display of the frame that is, the display of the picture frame to be displayed in each frame is processed and displayed separately; or, after step S40, the gain value of the screen area outside the current display area in the determined display screen and the deletion of the first pixel to be deleted are deleted.
  • the picture frame association is displayed, and when all the picture frames to be displayed are processed, the picture frames to be displayed for deleting the first pixel to be deleted are displayed according to the gain values associated with the picture frames to be displayed.
  • step S10 when the ratio mode of the video to be played matches the physical resolution of the display screen, no processing is performed, that is, before step S10, the following:
  • step S10 is performed.
  • the resolution of the display screen may be 1920 ⁇ 1080, and the ratio mode is 16:9.
  • the ratio mode of the video to be played is 4:3
  • the ratio mode of the to-be-played video and the display screen are The resolution does not match.
  • the video processing method in this embodiment is configured to remove the first pixel point whose difference value between the adjacent pixel points in the horizontal direction is smaller than a preset threshold, so that the resolution in the horizontal direction matches the physical resolution, and
  • the gain of the edge of the current display area in the display area is adjusted by the gain value in the vertical direction, thereby ensuring a smooth transition of the edge area of the picture frame to be displayed during display; at the same time, the adjustment scheme only deletes pixels with similar gain values. , to ensure the display of the video to be displayed.
  • the invention also proposes a video processing device.
  • FIG. 3 is a schematic diagram of functional modules of an embodiment of a video processing device according to the present invention.
  • the functional module diagram shown in FIG. 3 is merely an exemplary diagram of a preferred embodiment, and those skilled in the art can surround the functional modules of the video processing apparatus shown in FIG. It is easy to add a new function module; the name of each function module is a custom name, which is only used to assist in understanding various program function blocks of the video processing device, and is not used to limit the technical solution of the present invention.
  • the core of the technical solution of the present invention is The functions to be achieved by the function modules that each define the name.
  • This embodiment provides a video processing device, where the video processing device includes:
  • the obtaining module 10 is configured to obtain a first pixel point where a difference between a gain value in a picture frame to be displayed and a horizontally adjacent pixel point in the to-be-displayed video is less than a preset threshold, and obtain a to-be-preserved in the first pixel Delete the first pixel;
  • the obtaining module is further configured to:
  • the gain value of each pixel in the image frame to be displayed is first obtained, and the difference between the gain values of the adjacent pixels in the horizontal direction and the horizontal direction is calculated according to the preset direction, and the preset direction may be
  • the coordinate value of the X-axis in the coordinate information of the pixel gradually becomes larger or the coordinate value of the X-axis in the coordinate information of the pixel gradually becomes smaller, and if the difference between the gain values of two adjacent pixels in the horizontal direction is smaller than the pre-pre
  • two adjacent pixels are taken as the first pixel.
  • the gain value difference between each of the first pixel points and the first pixel point and the adjacent pixel point may be recorded, and the difference in the gain value may be obtained when the first pixel point to be deleted in the first pixel point is acquired.
  • the video to be played in this embodiment may be an HDR video, and there are many pixels with similar gain values. Since the HDR picture is relatively bright and the highlight area is relatively large, the pixel point whose gain value is greater than the preset gain value may be obtained first, and the pixel point whose gain value is greater than the preset gain value is obtained from the adjacent pixel point in the horizontal direction. A pixel point whose gain value difference is less than a preset threshold is used as the first pixel point, and the preset gain value may be half of the gain maximum value, such as 128.
  • the acquisition module 10 includes:
  • a first acquiring unit configured to acquire a quantity value of a pixel point in a picture frame to be displayed that exceeds a current display area in a horizontal direction, and obtain a number of times that a difference value of a gain value between adjacent pixel points in a horizontal direction is less than a preset threshold;
  • a determining unit configured to determine, according to the obtained quantity value and the number of times, the number of first pixel points in the first pixel point group in which the set of gain value differences is less than a preset threshold, wherein the first pixel point
  • a preset threshold configured to determine, according to the obtained quantity value and the number of times, the number of first pixel points in the first pixel point group in which the set of gain value differences is less than a preset threshold, wherein the first pixel point
  • Each of the first pixels in the group is adjacent to each other, and the first pixel to be deleted is determined according to the number of first pixels to be deleted in the first pixel group in which each set of gain value difference is less than a preset threshold.
  • the physical resolution of the screen is 1920 ⁇ 1080, and the proportion mode of the video to be played is 4:3.
  • the picture frame to be played is out of the current display area in the horizontal direction, that is, the current display area is exceeded in the horizontal direction.
  • the gain value between adjacent pixel points is calculated to be less than the preset threshold, the number of times the difference of the gain values is less than the preset threshold is added, for example, setting a preset.
  • the threshold is 10, and the initial value of the number of times less than the preset value is 0, then:
  • the color gain value between each adjacent pixel point is continuously calculated according to the increasing coordinate order of the X-axis, and the number of times the adjacent pixel point gain value difference is less than the preset threshold value is updated until all adjacent pixel points are calculated.
  • the difference value of the gain value is obtained, and the final value of the number of times the difference value of the adjacent pixel point gain value is less than the preset threshold value is obtained. It can be understood that, when the gain value difference between the pixel point and the adjacent pixel point is calculated each time in order, if the difference between the gain value of the pixel point and the adjacent pixel point is less than a preset threshold, then The number of times the difference between the adjacent pixel point gain values is less than the preset threshold is increased by one.
  • the pixel points are sequentially traversed to coordinate values of 50, 51, and 52, and the gain values of the respective pixel points are 121, respectively.
  • the difference between the gain value of the pixel 50 and the pixel 51 is 2 is less than the preset threshold 10
  • the number of times the difference value of the adjacent pixel point gain value is less than the preset threshold is increased by 1, if the pixel point 51
  • the difference between the gain value and the pixel point 52 is less than the preset threshold value 10
  • the number of times the adjacent pixel point gain value difference is less than the preset threshold value is incremented by one.
  • the difference between the gain values between consecutive multiple adjacent pixel points is less than the preset threshold
  • the number of times the adjacent pixel point gain value difference is less than the preset threshold is directly added, for example, When traversing each pixel point, traversing to pixel points whose coordinate values are sequentially 50, 51, and 52, and the gain values of the respective pixel points are 121, 123, and 120, respectively, due to the difference in gain value between the pixel point 50 and the pixel point 51.
  • the value of 2 is less than the preset threshold 10
  • the difference between the gain value of the pixel 51 and the pixel 52 is less than the preset threshold 10
  • the difference between the adjacent pixel gain value and the preset threshold is directly added. 1.
  • the gain of each group is obtained when the difference of the gain values of the adjacent pixel points is less than the preset value.
  • the number of pixels to be deleted in the adjacent pixel group whose value difference is less than the preset threshold is 19/10 ⁇ 2, that is, each time the difference of the gain values of adjacent pixels is less than the preset value, The two adjacent pixels need to be deleted.
  • the number of the first pixel to be deleted is 20
  • the number of times the difference between the gain values of the adjacent pixels is less than the preset threshold is, for example, 100
  • the number of deletions is 1 each time, and the number of the pixels to be deleted is small. Delete to large, until you delete 19 pixels.
  • the first pixel point may be divided into two sub-sets from the middle coordinate of one line, and half of the number is deleted in the set of the left and right sides respectively.
  • the coordinates of the pixel points deleted on the left and right sides are approximately symmetric with respect to the intermediate coordinate point. .
  • the present invention may also obtain the first pixel to be deleted by other means, and is not limited to the above manner.
  • the first pixel to be deleted is determined directly according to the number of pixels that are exceeded.
  • the deleting module 20 is configured to delete the first pixel to be deleted in the picture frame to be displayed, so that the width of the picture frame to be displayed is equal to the width of the current display area;
  • the number of pixel points in the picture frame to be displayed is equal to the number of pixel points of the current display area, even if the width of the picture frame to be displayed is equal to the width of the current display area.
  • the obtaining module 10 is further configured to obtain a gain value of the second pixel in the vertical direction and the current display area in the picture frame to be displayed;
  • the display ratio corresponding to the 1920 ⁇ 1080 resolution is 16:9
  • the display effect of the 16:9 video is as shown in the left diagram of FIG. 2
  • the display effect of the 4:3 video is shown in FIG. 2.
  • the display area of the display screen of 1920 ⁇ 1080 resolution is exceeded, and the second pixel point beyond the current display area can be determined by the coordinate values of the respective pixel points.
  • the pixel gain value can be obtained by averaging the three primary color gain values.
  • BGain 30
  • the determining module 30 is configured to determine, according to the gain value of the second pixel point, a gain value of the screen area outside the current display area in the display screen, to adjust the current display area according to the gain value of the second pixel point when displaying the picture frame to be displayed The gain value of the edge pixel.
  • the edge pixel points in the current display area are the upper and lower edges of the current display area, for example, the pixel point of the top row of the current display area and the pixel point of the bottom row, and of course, the top two rows of the current display area.
  • the pixel points and the pixels of the bottom two rows, the number of rows of pixels can be set by the user according to the display needs.
  • the method of adjusting the gain value of the screen area outside the current display area according to the acquired gain value may be The adjustment is based on the average gain, ie the determination module 30 comprises:
  • a second acquiring unit configured to acquire a gain value mean value of the second pixel point of each row
  • the determining unit determines a gain value at a corresponding position in the screen area outside the current display area in the display screen according to the average value of the gain value of the second pixel point of each line.
  • the screen area outside the current display area is the black pixel point area at the edge of the display screen, and the screen area outside the current display area can be determined by determining the black pixel point area.
  • the gain value of each line of the screen area outside the current display area in the scheme can be directly obtained from the mean value of the gain value at the corresponding position in the video frame to be displayed.
  • the picture frame to be displayed for deleting the first pixel to be deleted may be directly displayed, and according to the gain value of the second pixel Adjusting the gain value of the screen area outside the current display area in the current display area to realize the display of the picture frame to be displayed, that is, displaying the picture frame to be displayed in each frame separately processed and displayed; or, in the gain value according to the second pixel point
  • the gain value of the screen area outside the current display area in the determined display screen is associated with the to-be-displayed picture frame to delete the first pixel to be deleted, and at all When the processing of the picture frame to be displayed is completed, the picture frames to be displayed for deleting the first pixel to be deleted are displayed according to the gain values associated with the picture frames to be displayed.
  • the obtaining module 10 is further configured to obtain a proportional mode of the to-be-displayed video screen, and When the acquired ratio mode does not match the physical resolution of the display screen, the first pixel point whose difference between the gain values in the image frame to be displayed and the horizontally adjacent pixel points in the to-be-displayed video is less than a preset threshold is obtained.
  • the resolution of the display screen may be 1920 ⁇ 1080, and the ratio mode is 16:9.
  • the ratio mode of the video to be played is 4:3
  • the ratio mode of the to-be-played video and the display screen are The resolution does not match.
  • the video processing device of the embodiment is configured to remove the first pixel point whose difference value between the adjacent pixel points in the horizontal direction is smaller than a preset threshold, so that the resolution in the horizontal direction matches the physical resolution, and The gain of the edge of the current display area in the display area is adjusted by the gain value in the vertical direction, thereby ensuring a smooth transition of the edge area of the picture frame to be displayed during display; at the same time, the adjustment scheme only deletes pixels with similar gain values. , to ensure the display of the video to be displayed.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a cloud server, an air conditioner, or a network device, etc.) to perform the methods of various embodiments of the present invention.

Landscapes

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

Abstract

公开了一种视频处理方法,该视频处理方法包括:获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点,并获取第一像素点中的待删除第一像素点;在待显示图片帧中删除待删除第一像素点,以使待显示图片帧的宽度等于当前显示区域的宽度;获取待显示图片帧中在竖直方向与超出当前显示区域的第二像素点的增益值;根据第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值,以在显示待显示图片帧时根据第二像素点的增益值调整当前显示区域中边缘像素点的增益值。还公开了一种视频处理装置。其保证了待显示视频的显示效果。

Description

视频处理方法和装置
技术领域
本发明涉及电视机技术领域,尤其涉及一种视频处理方法和装置。
背景技术
智能电视系统越来越流行,电视机的显示效果也做的越来越好,例如当前的 HDR(High-Dynamic Range,高动态范围)显示技术的暗、亮部分细节做的非常好,导致显示效果非常好,然而HDR画面对画面本身已经做了放大处理,当画面比例出现切换时,与传统VESA(Video Electronics Standards Association,视频电子标准协会)画面有很大不同,目前的传统VESA显示屏的物理分辨率通常为1920x1080,适用于16:9的画面比例,而HDR视频往往画面比例为4:3,则在物理分辨率为1920x1080的显示屏播放画面比例为4:3的视频时,由于显示屏的物理分辨率与待播放视频画面比例不匹配会导致画面拉伸异常,显示效果差。
发明内容
本发明的主要目的在于提出一种视频处理方法和装置,旨在解决现有技术中显示屏的物理分辨率与待播放视频画面比例不匹配会导致画面拉伸异常,播放效果差的技术问题。
为实现上述目的,本发明提供一种视频处理方法,该视频处理方法包括:
获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点,并获取第一像素点中的待删除第一像素点;
在待显示图片帧中删除待删除第一像素点,以使待显示图片帧的宽度等于当前显示区域的宽度;
获取待显示图片帧中在竖直方向与超出当前显示区域的第二像素点的增益值;
根据所述第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值,以在显示所述待显示图片帧时根据所述第二像素点的增益值调整所述当前显示区域中边缘像素点的增益值。
可选地,所述获取所述第一像素点中的待删除第一像素点的步骤包括:
获取所述待显示图片帧中在水平方向超出所述当前显示区域的像素点的数量值;
获取水平方向相邻像素点之间的增益值的差值小于预设阈值的次数,根据获取的所述数量值以及次数确定每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量,其中,所述第一像素点组中的各个第一像素点相邻;
根据每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量确定所述待删除第一像素点。
可选地,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤包括:
获取待显示图片帧中各个像素点的增益值;
计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点。
可选地,所述各个像素点为增益值大于预设增益值的像素点。
可选地,所述预设增益值为增益最大值的一半。
可选地,根据第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值的步骤包括:
获取每一行第二像素点的增益值均值;
根据每一行第二像素点的增益值均值确定显示屏中当前显示区域之外屏幕区域中对应位置处的增益值。
可选地,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤之前,视频处理方法还包括步骤:
获取待显示视屏的比例模式;
在获取的比例模式与显示屏的物理分辨率不匹配时,执行获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤。
此外,为实现上述目的,本发明还提出一种视频处理装置,该视频处理装置包括:
获取模块,用于获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点,并获取第一像素点中的待删除第一像素点;
删除模块,用于在待显示图片帧中删除待删除第一像素点,以使待显示图片帧的宽度等于当前显示区域的宽度;
获取模块,还用于获取待显示图片帧中在竖直方向与超出当前显示区域的第二像素点的增益值;
确定模块,用于根据所述第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值,以在显示所述待显示图片帧时根据所述第二像素点的增益值调整所述当前显示区域中边缘像素点的增益值。
可选地,所述获取模块包括:
第一获取单元,用于获取所述待显示图片帧中在水平方向超出所述当前显示区域的像素点的数量值,以及获取水平方向相邻像素点之间的增益值的差值小于预设阈值的次数;
确定单元,用于根据获取的所述数量值以及次数确定每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量,其中,所述第一像素点组中的各个第一像素点相邻,并根据每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量确定所述待删除第一像素点。
可选地,获取模块还用于:
获取待显示图片帧中各个像素点的增益值;
计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点。
可选地,所述各个像素点为增益值大于预设增益值的像素点。
可选地,所述预设增益值为增益最大值的一半。
可选地,确定模块包括:
第二获取单元,用于获取每一行第二像素点的增益值均值;
确定单元,根据每一行第二像素点的增益值均值确定显示屏中当前显示区域之外屏幕区域中对应位置处的增益值。
可选地,获取模块还用于,获取待显示视屏的比例模式,并在获取的比例模式与显示屏的物理分辨率不匹配时,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点。
本发明提出的视频处理方法和装置,该方法中通过删除水平方向上相邻像素点之间的增益值的差值小于预设阈值的第一像素点,以使水平方向的分辨率与物理分辨率匹配,并通过竖直方向上的增益值调整显示区域中当前显示区域边缘像素点的增益,从而保证待显示图片帧在显示时边缘区域的平滑过渡;同时,该调整方案仅仅删除增益值较接近的像素点,保证了待显示视频的显示效果。
附图说明
图1为本发明视频处理方法一实施例的流程示意图;
图2为本发明视频处理方法中不同比例模式的待播放视频的显示效果对比示意图;
图3为本发明视频处理装置一实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种视频处理方法。
参照图1,图1为本发明视频处理方法一实施例的流程示意图。
本实施例提出一种热视频处理方法,该视频处理方法包括:
步骤S10,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点,并获取第一像素点中的待删除第一像素点;
“获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点”的步骤包括:
获取待显示图片帧中各个像素点的增益值;
计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点
在获取第一像素点时,首先获取待显示图片帧中各个像素点的增益值,按照预设方向计算各个像素点与水平方向的相邻像素点的增益值的差值,该预设方向可为像素点坐标信息中的X轴的坐标值逐渐变大或者像素点坐标信息中X轴的坐标值逐渐变小,若有两个在水平方向上的相邻像素点的增益值差值小于预设阈值,则将两个相邻像素点均作为第一像素点。可记录各个第一像素点以及第一像素点与其相邻像素点之间的增益值差值,则在获取第一像素点中的待删除第一像素点时,可获取增益值差值较小的第一像素点。
本实施例中的待播放视频可为HDR视频,增益值相似的像素点较多。由于HDR图片比较明亮,高亮区域比较多,则可先获取增益值大于预设增益值的像素点,获取增益值大于预设增益值的像素点中与其在水平方向上的相邻像素点的增益值差值小于预设阈值的像素点作为第一像素点,该预设增益值可为增益最大值的一半如128。
可以理解的是,在获取第一像素点中的待删除第一像素点时,可先获取待删除第一像素点的数量值,并根据该数量值在第一像素点中选择待删除第一像素点,即步骤“获取第一像素点中的待删除第一像素点”包括:
获取待显示图片帧中在水平方向超出当前显示区域的像素点的数量值;
获取水平方向相邻像素点之间的增益值的差值小于预设阈值的次数,根据获取的所述数量值以及次数确定每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量,其中,所述第一像素点组中的各个第一像素点相邻;
根据每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量确定所述待删除第一像素点。
以屏幕物理分辨率为1920×1080,待播放视频的比例模式为4:3进行说明,当待播放图片帧在水平方向超出当前显示区域的百分之一,即在水平方向上超出当前显示区域的像素点的数量为1920×1%=19,只要计算到相邻像素点之间的增益值小于预设阈值,则对增益值的差值小于预设阈值的次数加一,例如设置预设阈值为10,小于预设值的次数的初始值为0,则:
在Temp(x1) = RGain(x50)- RGain(x51)=50-48 =2时,即X轴坐标为50与X轴坐标为51的相邻像素点之间颜色增益差值2,小于预设阈值10,则对相邻像素点增益值差值小于预设阈值的次数加一得到1次;
在Temp(x2) = RGain(x120)- RGain(x121)=121-120 =1时,即X轴坐标为120与X轴坐标为121的相邻像素点之间颜色增益差值1,小于预设阈值10,则对相邻像素点增益值差值小于预设阈值的次数加一得到2次;
按照X轴的坐标值不断增大的顺序继续计算各个相邻像素点之间的颜色增益值,并更新相邻像素点增益值差值小于预设阈值的次数,直至计算完所有相邻像素点的增益值差值,获取相邻像素点增益值差值小于预设阈值的次数的最终值。可以理解的是,在按照顺序每次计算得到像素点与相邻像素点的增益值差值时,若该像素点与相邻像素点之间的增益值的差值小于预设阈值,则对相邻像素点增益值差值小于预设阈值的次数加1,例如,在遍历各个像素点时遍历至坐标值依次为50、51、52的像素点,各个像素点的增益值分别为121、123、120,则由于像素点50和像素点51之间的增益值差值为2小于预设阈值10,对相邻像素点增益值差值小于预设阈值的次数加1,若像素点51与像素点52之间的增益值差值为3小于预设阈值10,则继续对相邻像素点增益值差值小于预设阈值的次数加1。可以理解的是,也可在出现连续多个相邻像素点之间的增益值的差值小于预设阈值时,直接对相邻像素点增益值差值小于预设阈值的次数加1,例如在遍历各个像素点时遍历至坐标值依次为50、51、52的像素点,各个像素点的增益值分别为121、123、120,则由于像素点50和像素点51之间的增益值差值为2小于预设阈值10,且像素点51与像素点52之间的增益值差值为3小于预设阈值10,则直接对相邻像素点增益值差值小于预设阈值的次数加1。
例如,最终得到的相邻像素点增益值差值小于预设阈值的次数的最终值为10,则在出现相邻像素点的增益值的差值小于预设值的情况时,则每组增益值差值小于预设阈值的相邻像素点组中需要删除的像素点的数量为19/10≈2,即每次出现相邻像素点的增益值的差值小于预设值的情况时,该相邻的两个像素点均需要删除。当待删除第一像素点的数量为20,在相邻像素点增益值差值小于预设阈值的次数较大例如为100时,则每组增益值差值小于预设阈值的相邻像素点组需要删除的像素点的数量为1,可按照坐标顺序由小到大删除,直至删除19个像素点。
为避免在一侧删除像素点引起图片内容向某一侧移动,也可在整行内的第一像素点内均匀删除,比如相邻像素点增益值差值小于预设阈值的次数为100,待删除数量为19,则按照坐标值由小到达或者由大到小的顺序删除第一像素点中第1、5、11…96个像素点。或者,也可将第一像素点从一行的中间坐标处分割为两个子集合,在分别在左右两边的集合中删除一半数量,优选,左右两侧删除的像素点坐标近似于相对中间坐标点对称。
可以理解的是,上述仅为通过具体实例对本发明进行说明,本发明还可通过其它方式获取待删除第一像素点,并不局限于上述方式。例如直接按照超出的像素点的数量确定待删除第一像素点。
步骤S20,在待显示图片帧中删除待删除第一像素点,以使待显示图片帧的宽度等于当前显示区域的宽度;
通过删除对应数量的像素点,使得待显示图片帧中的像素点的数量等于当前显示区域的像素点的数量,即使待显示图片帧的宽度等于当前显示区域的宽度。
步骤S30,获取待显示图片帧中在竖直方向与超出当前显示区域的第二像素点的增益值;
如图2所示,1920×1080分辨率对应的显示比例为16:9,而16:9的视频的显示效果如图2中的左图所示,4:3的视频的显示效果如图2右图所示,在水平方向以及竖直方向均会超出1920×1080分辨率的显示屏的显示区域,则超出当前显示区域的第二像素点可由各个像素点的坐标值确定。该像素点增益值可由三原色增益值求平均值得到,例如R、G以及B分别对应的增益值为RGain=10、GGain=20 以及BGain=30,则增益值为(RGain+ GGain+BGain)/3=10。
步骤S40,根据第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值,以在显示待显示图片帧时根据第二像素点的增益值调整当前显示区域中边缘像素点的增益值。
本实施例所述的当前显示区域中边缘像素点为当前显示区域的上下边缘,例如当前显示区域最上边一行的像素点以及最下边一行的像素点,当然也可为当前显示区域最上边两行的像素点以及最下边两行的像素点,像素点的行数可由用户根据显示需要进行设定。
在本实施例中,由于视频中每帧图片的边缘往往为黑色幕框或者字幕信息,有效像素比较分散,则根据获取到的增益值调整当前显示区域之外屏幕区域的增益值的方式可为根据平均增益进行调整,即步骤S40包括:
获取每一行第二像素点的增益值均值;
根据每一行第二像素点的增益值均值确定显示屏中当前显示区域之外屏幕区域中对应位置处的增益值。
如图2左图所示,当前显示区域之外屏幕区域为显示屏边缘的黑色像素点区域,即可通过确定黑色像素点区域来确定当前显示区域之外屏幕区域。该方案中当前显示区域之外屏幕区域的每一行的增益值可直接由待显示视频帧中对应位置处增益值均值得到。
步骤S40之后,可直接显示删除待删除第一像素点的待显示图片帧,并根据第二像素点的增益值调整当前显示区域中当前显示区域之外屏幕区域的增益值,以实现待显示图片帧的显示,即显示每帧待显示图片帧分别处理并显示;或者,在步骤S40之后,将确定的显示屏中当前显示区域之外屏幕区域的增益值与删除待删除第一像素点的待显示图片帧关联,并在所有待显示图片帧处理完成时,依次根据各个待显示图片帧关联的增益值显示各个删除待删除第一像素点的待显示图片帧。
可以理解的是,为节省系统能耗,在待播放视频的比例模式与显示屏的物理分辨率匹配时,不进行处理,即步骤S10之前包括:
获取待显示视屏的比例模式;
在获取的比例模式与显示屏的物理分辨率不匹配时,执行步骤S10。
在本实施例中,显示屏的分辨率可为1920×1080对应的比例模式为16:9,则在待播放视频的比例模式为4:3时,该待播放视频的比例模式与显示屏的分辨率不匹配。
本实施例提出的视频处理方法,通过删除水平方向上相邻像素点之间的增益值的差值小于预设阈值的第一像素点,以使水平方向的分辨率与物理分辨率匹配,并通过竖直方向上的增益值调整显示区域中当前显示区域边缘像素点的增益,从而保证待显示图片帧在显示时边缘区域的平滑过渡;同时,该调整方案仅仅删除增益值较接近的像素点,保证了待显示视频的显示效果。
本发明还提出一种视频处理装置。
参照图3,图3为本发明视频处理装置一实施例的功能模块示意图。
需要强调的是,对本领域的技术人员来说,图3所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图3所示的视频处理装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解视频处理装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。
本实施例提出一种视频处理装置,视频处理装置包括:
获取模块10,用于获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点,并获取第一像素点中的待删除第一像素点;
在本实施例中,获取模块还用于:
获取待显示图片帧中各个像素点的增益值;
计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点。
在获取第一像素点时,首先获取待显示图片帧中各个像素点的增益值,按照预设方向计算各个像素点与水平方向的相邻像素点的增益值的差值,该预设方向可为像素点坐标信息中的X轴的坐标值逐渐变大或者像素点坐标信息中X轴的坐标值逐渐变小,若有两个在水平方向上的相邻像素点的增益值差值小于预设阈值,则将两个相邻像素点均作为第一像素点。可记录各个第一像素点以及第一像素点与其相邻像素点之间的增益值差值,则在获取第一像素点中的待删除第一像素点时,可获取增益值差值较小的第一像素点。
本实施例中的待播放视频可为HDR视频,增益值相似的像素点较多。由于HDR图片比较明亮,高亮区域比较多,则可先获取增益值大于预设增益值的像素点,获取增益值大于预设增益值的像素点中与其在水平方向上的相邻像素点的增益值差值小于预设阈值的像素点作为第一像素点,该预设增益值可为增益最大值的一半如128。
可以理解的是,在获取第一像素点中的待删除第一像素点时,可先获取待删除第一像素点的数量值,并根据该数量值在第一像素点中选择待删除第一像素点,即获取模块10包括:
第一获取单元,用于获取待显示图片帧中在水平方向超出当前显示区域的像素点的数量值,以及获取水平方向相邻像素点之间的增益值的差值小于预设阈值的次数;
确定单元,用于根据获取的所述数量值以及次数确定每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量,其中,所述第一像素点组中的各个第一像素点相邻,以及根据每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量确定所述待删除第一像素点。
以屏幕物理分辨率为1920×1080,待播放视频的比例模式为4:3进行说明,当待播放图片帧在水平方向超出当前显示区域的百分之一,即在水平方向上超出当前显示区域的像素点的数量为1920×1%=19,只要计算到相邻像素点之间的增益值小于预设阈值,则对增益值的差值小于预设阈值的次数加一,例如设置预设阈值为10,小于预设值的次数的初始值为0,则:
在Temp(x1) = RGain(x50)- RGain(x51)=50-48 =2时,即X轴坐标为50与X轴坐标为51的相邻像素点之间颜色增益差值2,小于预设阈值10,则对相邻像素点增益值差值小于预设阈值的次数加一得到1次;
在Temp(x2) = RGain(x120)- RGain(x121)=121-120 =1时,即X轴坐标为120与X轴坐标为121的相邻像素点之间颜色增益差值1,小于预设阈值10,则对相邻像素点增益值差值小于预设阈值的次数加一得到2次;
按照X轴的坐标值不断增大的顺序继续计算各个相邻像素点之间的颜色增益值,并更新相邻像素点增益值差值小于预设阈值的次数,直至计算完所有相邻像素点的增益值差值,获取相邻像素点增益值差值小于预设阈值的次数的最终值。可以理解的是,在按照顺序每次计算得到像素点与相邻像素点的增益值差值时,若该像素点与相邻像素点之间的增益值的差值小于预设阈值,则对相邻像素点增益值差值小于预设阈值的次数加1,例如,在遍历各个像素点时遍历至坐标值依次为50、51、52的像素点,各个像素点的增益值分别为121、123、120,则由于像素点50和像素点51之间的增益值差值为2小于预设阈值10,对相邻像素点增益值差值小于预设阈值的次数加1,若像素点51与像素点52之间的增益值差值为3小于预设阈值10,则继续对相邻像素点增益值差值小于预设阈值的次数加1。可以理解的是,也可在出现连续多个相邻像素点之间的增益值的差值小于预设阈值时,直接对相邻像素点增益值差值小于预设阈值的次数加1,例如在遍历各个像素点时遍历至坐标值依次为50、51、52的像素点,各个像素点的增益值分别为121、123、120,则由于像素点50和像素点51之间的增益值差值为2小于预设阈值10,且像素点51与像素点52之间的增益值差值为3小于预设阈值10,则直接对相邻像素点增益值差值小于预设阈值的次数加1。
例如,最终得到的相邻像素点增益值差值小于预设阈值的次数的最终值为10,则在出现相邻像素点的增益值的差值小于预设值的情况时,则每组增益值差值小于预设阈值的相邻像素点组中需要删除的像素点的数量为19/10≈2,即每次出现相邻像素点的增益值的差值小于预设值的情况时,该相邻的两个像素点均需要删除。当待删除第一像素点的数量为20,在相邻像素点增益值差值小于预设阈值的次数较大例如为100时,则每次需要删除的数量为1,可按照坐标顺序由小到大删除,直至删除19个像素点。
为避免在一侧删除像素点引起图片内容向某一侧移动,也可在整行内的第一像素点内均匀删除,比如相邻像素点增益值差值小于预设阈值的次数为100,待删除数量为19,则按照坐标值由小到达或者由大到小的顺序删除第一像素点中第1、5、11…96个像素点。或者,也可将第一像素点从一行的中间坐标处分割为两个子集合,在分别在左右两边的集合中删除一半数量,优选,左右两侧删除的像素点坐标近似于相对中间坐标点对称。
可以理解的是,上述仅为通过具体实例对本发明进行说明,本发明还可通过其它方式获取待删除第一像素点,并不局限于上述方式。例如直接按照超出的像素点的数量确定待删除第一像素点。
删除模块20,用于在待显示图片帧中删除待删除第一像素点,以使待显示图片帧的宽度等于当前显示区域的宽度;
通过删除对应数量的像素点,使得待显示图片帧中的像素点的数量等于当前显示区域的像素点的数量,即使待显示图片帧的宽度等于当前显示区域的宽度。
获取模块10,还用于获取待显示图片帧中在竖直方向与超出当前显示区域的第二像素点的增益值;
如图2所示,1920×1080分辨率对应的显示比例为16:9,而16:9的视频的显示效果如图2中的左图所示,4:3的视频的显示效果如图2右图所示,在水平方向以及竖直方向均会超出1920×1080分辨率的显示屏的显示区域,则超出当前显示区域的第二像素点可由各个像素点的坐标值确定。该像素点增益值可由三原色增益值求平均值得到,例如R、G以及B分别对应的增益值为RGain=10、GGain=20 以及BGain=30,则增益值为(RGain+ GGain+BGain)/3=10。
确定模块30,用于根据第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值,以在显示待显示图片帧时根据第二像素点的增益值调整当前显示区域中边缘像素点的增益值。
本实施例所述的当前显示区域中边缘像素点为当前显示区域的上下边缘,例如当前显示区域最上边一行的像素点以及最下边一行的像素点,当然也可为当前显示区域最上边两行的像素点以及最下边两行的像素点,像素点的行数可由用户根据显示需要进行设定。
在本实施例中,由于视频中每帧图片的边缘往往为黑色幕框或者字幕信息,有效像素比较分散,则根据获取到的增益值调整当前显示区域之外屏幕区域的增益值的方式可为根据平均增益进行调整,即确定模块30包括:
第二获取单元,用于获取每一行第二像素点的增益值均值;
确定单元,根据每一行第二像素点的增益值均值确定显示屏中当前显示区域之外屏幕区域中对应位置处的增益值。
如图2左图所示,当前显示区域之外屏幕区域为显示屏边缘的黑色像素点区域,即可通过确定黑色像素点区域来确定当前显示区域之外屏幕区域。该方案中当前显示区域之外屏幕区域的每一行的增益值可直接由待显示视频帧中对应位置处增益值均值得到。
在根据第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值后,可直接显示删除待删除第一像素点的待显示图片帧,并根据第二像素点的增益值调整当前显示区域中当前显示区域之外屏幕区域的增益值,以实现待显示图片帧的显示,即显示每帧待显示图片帧分别处理并显示;或者,在在根据第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值后,将确定的显示屏中当前显示区域之外屏幕区域的增益值与删除待删除第一像素点的待显示图片帧关联,并在所有待显示图片帧处理完成时,依次根据各个待显示图片帧关联的增益值显示各个删除待删除第一像素点的待显示图片帧。
可以理解的是,为节省系统能耗,在待播放视频的比例模式与显示屏的物理分辨率匹配时,不进行处理,即获取模块10还用于,获取待显示视屏的比例模式,并在获取的比例模式与显示屏的物理分辨率不匹配时,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点。
在本实施例中,显示屏的分辨率可为1920×1080对应的比例模式为16:9,则在待播放视频的比例模式为4:3时,该待播放视频的比例模式与显示屏的分辨率不匹配。
本实施例提出的视频处理装置,通过删除水平方向上相邻像素点之间的增益值的差值小于预设阈值的第一像素点,以使水平方向的分辨率与物理分辨率匹配,并通过竖直方向上的增益值调整显示区域中当前显示区域边缘像素点的增益,从而保证待显示图片帧在显示时边缘区域的平滑过渡;同时,该调整方案仅仅删除增益值较接近的像素点,保证了待显示视频的显示效果。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵该非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,云端服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种视频处理方法,其特征在于,该视频处理方法包括:
    获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点,并获取所述第一像素点中的待删除第一像素点;
    在所述待显示图片帧中删除待删除第一像素点,以使所述待显示图片帧的宽度等于当前显示区域的宽度;
    获取所述待显示图片帧中在竖直方向与超出当前显示区域的第二像素点的增益值;
    根据所述第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值,以在显示所述待显示图片帧时根据所述第二像素点的增益值调整所述当前显示区域中边缘像素点的增益值。
  2. 如权利要求1所述的视频处理方法,其特征在于,所述获取所述第一像素点中的待删除第一像素点的步骤包括:
    获取所述待显示图片帧中在水平方向超出所述当前显示区域的像素点的数量值;
    获取水平方向相邻像素点之间的增益值的差值小于预设阈值的次数,根据获取的所述数量值以及次数确定每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量,其中,所述第一像素点组中的各个第一像素点相邻;
    根据每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量确定所述待删除第一像素点。
  3. 如权利要求1所述的视频处理方法,其特征在于,所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤包括:
    获取待显示图片帧中各个像素点的增益值;
    计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点。
  4. 如权利要求2所述的视频处理方法,其特征在于,所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤包括:
    获取待显示图片帧中各个像素点的增益值;
    计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点。
  5. 如权利要求4所述的视频处理方法,其特征在于,所述各个像素点为增益值大于预设增益值的像素点。
  6. 如权利要求5所述的视频处理方法,其特征在于,所述预设增益值为增益最大值的一半。
  7. 如权利要求1所述的视频处理方法,其特征在于,所述根据所述第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值的步骤包括:
    获取每一行所述第二像素点的增益值均值;
    根据每一行所述第二像素点的所述增益值均值确定显示屏中当前显示区域之外屏幕区域中对应位置处的增益值。
  8. 如权利要求1所述的视频处理方法,其特征在于,所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤之前,所述视频处理方法还包括步骤:
    获取所述待显示视屏的比例模式;
    在获取的所述比例模式与显示屏的物理分辨率不匹配时,执行所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤。
  9. 如权利要求2所述的视频处理方法,其特征在于,所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤之前,所述视频处理方法还包括步骤:
    获取所述待显示视屏的比例模式;
    在获取的所述比例模式与显示屏的物理分辨率不匹配时,执行所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤。
  10. 如权利要求7所述的视频处理方法,其特征在于,所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤之前,所述视频处理方法还包括步骤:
    获取所述待显示视屏的比例模式;
    在获取的所述比例模式与显示屏的物理分辨率不匹配时,执行所述获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点的步骤。
  11. 一种视频处理装置,其特征在于,该视频处理装置包括:
    获取模块,用于获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点,并获取所述第一像素点中的待删除第一像素点;
    删除模块,用于在所述待显示图片帧中删除待删除第一像素点,以使所述待显示图片帧的宽度等于当前显示区域的宽度;
    所述获取模块,还用于获取所述待显示图片帧中在竖直方向与超出当前显示区域的第二像素点的增益值;
    确定模块,用于根据所述第二像素点的增益值确定显示屏中当前显示区域之外屏幕区域的增益值,以在显示所述待显示图片帧时根据所述第二像素点的增益值调整所述当前显示区域中边缘像素点的增益值。
  12. 如权利要求11所述的视频处理装置,其特征在于,所述获取模块包括:
    第一获取单元,用于获取所述待显示图片帧中在水平方向超出所述当前显示区域的像素点的数量值,以及获取水平方向相邻像素点之间的增益值的差值小于预设阈值的次数;
    确定单元,用于根据获取的所述数量值以及次数确定每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量,其中,所述第一像素点组中的各个第一像素点相邻,并根据每组增益值差值小于预设阈值的第一像素点组中需要删除的第一像素点的数量确定所述待删除第一像素点。
  13. 如权利要求11所述的视频处理装置,其特征在于,所述获取模块还用于:
    获取待显示图片帧中各个像素点的增益值;
    计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点。
  14. 如权利要求12所述的视频处理装置,其特征在于,所述获取模块还用于:
    获取待显示图片帧中各个像素点的增益值;
    计算各个像素点与水平方向相邻像素点之间的增益值的差值,获取差值小于预设阈值的第一像素点。
  15. 如权利要求14所述的视频处理装置,其特征在于,所述各个像素点为增益值大于预设增益值的像素点。
  16. 如权利要求15所述的视频处理装置,其特征在于,所述预设增益值为增益最大值的一半。
  17. 如权利要求11所述的视频处理装置,其特征在于,所述确定模块包括:
    第二获取单元,用于获取每一行所述第二像素点的增益值均值;
    确定单元,根据每一行所述第二像素点的所述增益值均值确定显示屏中当前显示区域之外屏幕区域中对应位置处的增益值。
  18. 如权利要求11所述的视频处理装置,其特征在于,所述获取模块还用于,获取所述待显示视屏的比例模式,并在获取的所述比例模式与显示屏的物理分辨率不匹配时,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点。
  19. 如权利要求12所述的视频处理装置,其特征在于,所述获取模块还用于,获取所述待显示视屏的比例模式,并在获取的所述比例模式与显示屏的物理分辨率不匹配时,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点。
  20. 如权利要求17所述的视频处理装置,其特征在于,所述获取模块还用于,获取所述待显示视屏的比例模式,并在获取的所述比例模式与显示屏的物理分辨率不匹配时,获取待显示视频中待显示图片帧中与水平方向相邻像素点之间的增益值的差值小于预设阈值的第一像素点。
PCT/CN2016/095796 2016-05-24 2016-08-18 视频处理方法和装置 Ceased WO2017201893A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610350067.7A CN105959727B (zh) 2016-05-24 2016-05-24 视频处理方法和装置
CN201610350067.7 2016-05-24

Publications (1)

Publication Number Publication Date
WO2017201893A1 true WO2017201893A1 (zh) 2017-11-30

Family

ID=56909691

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095796 Ceased WO2017201893A1 (zh) 2016-05-24 2016-08-18 视频处理方法和装置

Country Status (2)

Country Link
CN (1) CN105959727B (zh)
WO (1) WO2017201893A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053372A (zh) * 2019-06-05 2020-12-08 腾讯科技(深圳)有限公司 一种屏幕显示类型的识别方法以及相关装置
CN113176961A (zh) * 2021-05-14 2021-07-27 深圳前海微众银行股份有限公司 桌面帧处理方法、装置、设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502613B (zh) * 2016-10-25 2019-08-23 武汉斗鱼网络科技有限公司 一种加载图片的方法及装置
CN111710309B (zh) * 2020-06-30 2022-07-29 深圳Tcl数字技术有限公司 液晶显示屏驱动方法、装置、液晶显示系统及存储介质
CN116504174A (zh) * 2021-11-23 2023-07-28 深圳市时代华影科技股份有限公司 一种led显示设备、图像显示处理方法及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5706369A (en) * 1995-05-31 1998-01-06 Rockwell International Corporation Base-n resolution converter
US20050093886A1 (en) * 2003-11-04 2005-05-05 Olympus Corporation Image processing device
CN102165778A (zh) * 2009-02-10 2011-08-24 松下电器产业株式会社 图像处理装置、图像处理方法、程序及集成电路
CN102289784A (zh) * 2011-07-29 2011-12-21 中山大学 一种基于点云模型的数字几何图像简化方法
CN102685555A (zh) * 2011-03-18 2012-09-19 巴比禄股份有限公司 图像传输装置及图像传输方法
CN103618943A (zh) * 2013-11-27 2014-03-05 深圳创维-Rgb电子有限公司 一种显示终端的视频数据显示方法及显示终端
CN105472255A (zh) * 2015-12-30 2016-04-06 深圳Tcl数字技术有限公司 视频播放控制方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609662B (zh) * 2009-05-15 2011-05-25 奇诺光瑞电子(深圳)有限公司 数码终端及使其输入图像与其显示屏匹配的方法
CN104202646A (zh) * 2014-08-07 2014-12-10 天津三星电子有限公司 一种电视画面显示方法及装置、一种电视
CN105488758B (zh) * 2015-11-30 2018-07-20 河北工业大学 一种基于内容感知的图像缩放方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5706369A (en) * 1995-05-31 1998-01-06 Rockwell International Corporation Base-n resolution converter
US20050093886A1 (en) * 2003-11-04 2005-05-05 Olympus Corporation Image processing device
CN102165778A (zh) * 2009-02-10 2011-08-24 松下电器产业株式会社 图像处理装置、图像处理方法、程序及集成电路
CN102685555A (zh) * 2011-03-18 2012-09-19 巴比禄股份有限公司 图像传输装置及图像传输方法
CN102289784A (zh) * 2011-07-29 2011-12-21 中山大学 一种基于点云模型的数字几何图像简化方法
CN103618943A (zh) * 2013-11-27 2014-03-05 深圳创维-Rgb电子有限公司 一种显示终端的视频数据显示方法及显示终端
CN105472255A (zh) * 2015-12-30 2016-04-06 深圳Tcl数字技术有限公司 视频播放控制方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053372A (zh) * 2019-06-05 2020-12-08 腾讯科技(深圳)有限公司 一种屏幕显示类型的识别方法以及相关装置
CN112053372B (zh) * 2019-06-05 2024-07-19 腾讯科技(深圳)有限公司 一种屏幕显示类型的识别方法以及相关装置
CN113176961A (zh) * 2021-05-14 2021-07-27 深圳前海微众银行股份有限公司 桌面帧处理方法、装置、设备及存储介质
CN113176961B (zh) * 2021-05-14 2024-05-31 深圳前海微众银行股份有限公司 桌面帧处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN105959727B (zh) 2019-12-17
CN105959727A (zh) 2016-09-21

Similar Documents

Publication Publication Date Title
WO2017190452A1 (zh) 背光自适应调节方法及装置
WO2019076087A1 (zh) 电视机及其显示图效控制方法、计算机可读存储介质
WO2017148035A1 (zh) 图像处理方法及装置
WO2016091011A1 (zh) 字幕切换方法及装置
WO2017206368A1 (zh) 高动态范围画面切换方法及装置
WO2018103187A1 (zh) 监控装置的监控画面形成方法和系统
WO2018018681A1 (zh) 视频节目预览方法及装置
WO2018192253A1 (zh) 视频信号的传输方法及装置
WO2018223602A1 (zh) 显示终端、画面对比度提高方法及计算机可读存储介质
WO2017005066A1 (zh) 录制音视频同步时间戳的方法和装置
WO2017088427A1 (zh) 音频输出控制方法及装置
WO2017113600A1 (zh) 视频播放方法及装置
WO2017005062A1 (zh) 图片帧播放方法和装置
WO2017041537A1 (zh) 视频帧率的调节方法及装置
WO2017215116A1 (zh) 智能电视的拍照方法及系统
WO2018023926A1 (zh) 电视与移动终端的互动方法及系统
WO2018126888A1 (zh) 电视功能的快捷启动设置方法及装置
WO2016101305A1 (zh) 视频文件处理方法及显示装置
WO2017190445A1 (zh) Rgb图像处理方法及系统
WO2017121066A1 (zh) 应用程序显示方法和系统
WO2018028124A1 (zh) 电视机及其信号源的切换方法
WO2017107384A1 (zh) 液晶显示器的图像显示方法及液晶显示器
WO2017101259A1 (zh) 图片显示方法及装置
WO2016101252A1 (zh) 智能电视的频道信息显示方法及装置
US8334932B2 (en) Image processing device, image display device, and image processing method

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16902879

Country of ref document: EP

Kind code of ref document: A1

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 1205N DATED 17/04/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16902879

Country of ref document: EP

Kind code of ref document: A1