CN110166798B - Down-conversion method and device based on 4K HDR editing - Google Patents

Down-conversion method and device based on 4K HDR editing Download PDF

Info

Publication number
CN110166798B
CN110166798B CN201910469194.2A CN201910469194A CN110166798B CN 110166798 B CN110166798 B CN 110166798B CN 201910469194 A CN201910469194 A CN 201910469194A CN 110166798 B CN110166798 B CN 110166798B
Authority
CN
China
Prior art keywords
pixel point
target pixel
target
point
order
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
CN201910469194.2A
Other languages
Chinese (zh)
Other versions
CN110166798A (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.)
Chengdu Dongfangshengxing Electronics Co ltd
Original Assignee
Chengdu Dongfangshengxing Electronics 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 Chengdu Dongfangshengxing Electronics Co ltd filed Critical Chengdu Dongfangshengxing Electronics Co ltd
Priority to CN201910469194.2A priority Critical patent/CN110166798B/en
Publication of CN110166798A publication Critical patent/CN110166798A/en
Application granted granted Critical
Publication of CN110166798B publication Critical patent/CN110166798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • 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, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 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, manipulating MPEG-4 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 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, rendering scenes according to MPEG-4 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

Abstract

The invention discloses a down-conversion method and a down-conversion device based on 4K HDR editing, which are used for decoding a video to be processed to obtain a video source format, and respectively executing down-conversion operation on Y, U, V components of each frame, wherein the down-conversion operation comprises the following steps: s1: mapping the target pixel position to a source frame to obtain a virtual pixel point; s2: selecting a pixel point matrix around the virtual pixel point as a reference point of a target pixel; s3: and performing horizontal first-order lanczos interpolation and vertical first-order lanczos interpolation on the reference point to obtain the value of the target pixel point. The high quality and the image fluency when the 4K data is down-converted to the high-definition data are ensured, and good user experience is provided.

Description

Down-conversion method and device based on 4K HDR editing
Technical Field
The invention relates to the field of video editing, in particular to a down-conversion method and device based on 4K HDR editing.
Background
At present, a large number of unmanned aerial vehicles, mobile phones and camera images support 4K shooting, 4K is used for editing in application of television stations, and files are packaged and output and then converted to high definition for broadcasting. The existing editing mode can not ensure the quality and the image fluency of 4K data down-conversion to high-definition data.
Disclosure of Invention
In order to solve the above problem, the present invention provides a down-conversion method based on 4K HDR editing, which decodes a video to be processed to obtain a video source format, and performs down-conversion operations on Y, U, V components of each frame respectively, where the down-conversion operations include the following steps:
s1: mapping the target pixel position to a source frame to obtain a virtual pixel point;
s2: selecting a pixel point matrix around the virtual pixel point as a reference point of a target pixel;
s3: and performing horizontal first-order lanczos interpolation and vertical first-order lanczos interpolation on the reference point to obtain the value of the target pixel point.
Repeating the steps S1-S3 to obtain all target pixel points; and encoding the processed Y, U, V components to obtain the target video.
Further, the step S1 includes the following sub-steps:
s11: the scaling is determined as follows:
W_ratio=srcWidth/dstWidth;
H_ratio=srcHeight/dstHeight;
wherein W _ ratio is the width scaling, H _ ratio is the length scaling, srcWidth is the source frame width, srcHeight is the source frame height, dstWidth is the target frame width, and srcHeight is the target frame height;
s12: the position of the target pixel in the source frame is calculated as follows:
srcX=dstX×H_ratio;
srcY=dstY×W_ratio;
in the formula, dstX and dstY are target pixel positions, and srCx and srCY are virtual positions of the target pixels in the source frame.
Further, in step S2, when the radius of the lanczos interpolation is 2, 4 × 4 points around the virtual pixel point are selected as reference points for calculating the target pixel value.
Further, in step S3, 4 points are obtained by performing four horizontal first-order lanczos interpolation, and then the value of the target pixel point is obtained by performing one vertical first-order lanczos interpolation.
Further, the weight of 4 points participating in the first-order lanczos operation each time is determined by the following expression, and the interpolation result is a weighted average value of 4 pixel points:
Figure BDA0002080310740000021
in the formula, x represents the distance from the pixel point to the point to be interpolated of the original frame, and a represents the radius of the lanczos interpolation.
A down-conversion apparatus includes a decoding unit, a down-converter, and an encoding unit; the decoding unit is used for decoding a video to be processed and extracting Y, U, V components, the down converter is used for mapping the position of a target pixel to a source frame to obtain a virtual pixel point, a pixel point matrix is selected around the virtual pixel point to serve as a reference point of the target pixel, and then horizontal first-order lanczos interpolation and vertical first-order lanczos interpolation are carried out on the reference point to obtain the value of the target pixel point; and the coding unit codes the processed Y, U, V components to obtain the target video.
The invention has the beneficial effects that: by the method and the device, high quality and image fluency when the 4K data is down-converted to the high-definition data are ensured, and good user experience is provided.
Drawings
FIG. 1 is a flow chart of a method of downconversion;
fig. 2 is a schematic diagram of an embodiment.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
A method of down-conversion based on 4K HDR editing decodes the video to be processed to obtain a video source format, i.e. yuv file, and performs down-conversion operations on Y, U, V components of each frame, respectively, as shown in fig. 1:
s1: mapping the target pixel position to a source frame to obtain a virtual pixel point;
s2: selecting a pixel point matrix around the virtual pixel point as a reference point of a target pixel;
s3: and performing horizontal first-order lanczos interpolation and vertical first-order lanczos interpolation on the reference point to obtain the value of the target pixel point.
Repeating the steps S1-S3 to obtain all target pixel points; and encoding the processed Y, U, V components to obtain the target video.
One embodiment of the invention converts 4K video to high definition video by down-sampling the original frame, down-converting the video frame using lanczos interpolation,
the step S1 includes the following sub-steps:
s11: the scaling is determined as follows:
W_ratio=srcWidth/dstWidth;
H_ratio=srcHeight/dstHeight;
wherein W _ ratio is the width scaling, H _ ratio is the length scaling, srcWidth is the source frame width, srcHeight is the source frame height, dstWidth is the target frame width, and srcHeight is the target frame height;
s12: the position of the target pixel in the source frame is calculated as follows:
srcX=dstX×H_ratio;
srcY=dstY×W_ratio;
in the formula, dstX and dstY are target pixel positions, and srCx and srCY are virtual positions of the target pixels in the source frame. Both srcX and srcX are typically floating point numbers, and a pixel O (srcX, srcY) is virtually present in a source frame.
Further, in step S2, when the radius of the lanczos interpolation is 2, 4 × 4 points around the virtual pixel point are selected as reference points for calculating the target pixel value. Such as the point shown in fig. 2 at the intersection of the lines.
Further, in step S3, 4 points are obtained by performing four horizontal first-order lanczos interpolation, and then the value of the target pixel point is obtained by performing one vertical first-order lanczos interpolation.
In fig. 2, to calculate the value of the target pixel, four times of first-order lanczos interpolation is performed in the horizontal direction to obtain A, B, C, D four points, and then another lanczos interpolation in the vertical direction is performed, so that the value of the pixel point O, that is, the value of the target pixel point, can be obtained by using A, B, C, D points.
Further, the weight of 4 points participating in the first-order lanczos operation each time is determined by the following expression, and the interpolation result is a weighted average value of 4 pixel points:
Figure BDA0002080310740000031
in the formula, x represents the distance from the pixel point to the point to be interpolated of the original frame, and a represents the radius of the lanczos interpolation. It is preferable that the value of a is 2 in the down-conversion.
And finally, writing the processed Y, U, V component into a yuv file, and then coding to obtain the video subjected to down-conversion finally.
A down-conversion apparatus includes a decoding unit, a down-converter, and an encoding unit; the decoding unit is used for decoding a video to be processed and extracting Y, U, V components, the down converter is used for mapping the position of a target pixel to a source frame to obtain a virtual pixel point, a pixel point matrix is selected around the virtual pixel point to serve as a reference point of the target pixel, and then horizontal first-order lanczos interpolation and vertical first-order lanczos interpolation are carried out on the reference point to obtain the value of the target pixel point; and the coding unit codes the processed Y, U, V components to obtain the target video.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and elements referred to are not necessarily required in this application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a ROM, a RAM, etc.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (7)

1. A down-conversion method based on 4K HDR editing decodes a video to be processed to obtain a video source format, and is characterized in that: separately performing a down-conversion operation on Y, U, V components of each frame, the down-conversion operation comprising the steps of:
s1: mapping the position of the target pixel to a source frame, and calculating in a zooming mode to obtain a virtual pixel point;
s2: selecting a pixel point matrix around the virtual pixel point as a reference point of a target pixel;
s3: and performing horizontal first-order lanczos interpolation and vertical first-order lanczos interpolation on the reference point to obtain the value of the target pixel point.
2. The method of down-conversion based on 4K HDR editing as claimed in claim 1, wherein: repeating the steps S1-S3 to obtain all target pixel points; and encoding the processed Y, U, V components to obtain the target video.
3. The method of down-conversion based on 4K HDR editing as claimed in claim 1, wherein: the step S1 includes the following sub-steps:
s11: the scaling is determined as follows:
W_ratio=srcWidth/dstWidth;
H_ratio=srcHeight/dstHeight;
wherein W _ ratio is the width scaling, H _ ratio is the length scaling, srcWidth is the source frame width, srcHeight is the source frame height, dstWidth is the target frame width, and srcHeight is the target frame height;
s12: the position of the target pixel in the source frame is calculated as follows:
srcX=dstX×H_ratio;
srcY=dstY×W_ratio;
in the formula, dstX and dstY are target pixel positions, and srCx and srCY are virtual positions of the target pixels in the source frame.
4. The method of down-conversion based on 4K HDR editing as claimed in claim 1, wherein: in step S2, when the radius of the lanczos interpolation is 2, 4 × 4 points around the virtual pixel point are selected as reference points for calculating the target pixel value.
5. The method of claim 4, wherein the method comprises: in step S3, 4 points are obtained by performing four horizontal first-order lanczos interpolation, and then the value of the target pixel point is obtained by performing one vertical first-order lanczos interpolation.
6. The method of down-conversion based on 4K HDR editing as claimed in claim 5, wherein: the weight of 4 points participating in the first-order lanczos operation each time is determined by the following expression, and the interpolation result is the weighted average value of 4 pixel points:
Figure FDA0003000315040000011
in the formula, x represents the distance from the pixel point to the point to be interpolated of the original frame, and a represents the radius of the lanczos interpolation.
7. A down-conversion apparatus based on 4K HDR editing, characterized by performing the steps of the method of any one of claims 1 to 6, comprising a decoding unit, a down-converter and an encoding unit; the decoding unit is used for decoding a video to be processed and extracting Y, U, V components, the down converter is used for mapping the position of a target pixel to a source frame to obtain a virtual pixel point, a pixel point matrix is selected around the virtual pixel point to serve as a reference point of the target pixel, and then horizontal first-order lanczos interpolation and vertical first-order lanczos interpolation are carried out on the reference point to obtain the value of the target pixel point; and the coding unit codes the processed Y, U, V components to obtain the target video.
CN201910469194.2A 2019-05-31 2019-05-31 Down-conversion method and device based on 4K HDR editing Active CN110166798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910469194.2A CN110166798B (en) 2019-05-31 2019-05-31 Down-conversion method and device based on 4K HDR editing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910469194.2A CN110166798B (en) 2019-05-31 2019-05-31 Down-conversion method and device based on 4K HDR editing

Publications (2)

Publication Number Publication Date
CN110166798A CN110166798A (en) 2019-08-23
CN110166798B true CN110166798B (en) 2021-08-10

Family

ID=67630465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910469194.2A Active CN110166798B (en) 2019-05-31 2019-05-31 Down-conversion method and device based on 4K HDR editing

Country Status (1)

Country Link
CN (1) CN110166798B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7232160B2 (en) * 2019-09-19 2023-03-02 Tvs Regza株式会社 IMAGE QUALITY CIRCUIT, VIDEO PROCESSING DEVICE, AND SIGNAL FEATURE DETECTION METHOD
CN111885335B (en) * 2020-06-19 2022-03-29 成都东方盛行电子有限责任公司 Ultrahigh-definition down-conversion rendering method
CN111901551A (en) * 2020-06-19 2020-11-06 成都东方盛行电子有限责任公司 Ultrahigh-definition small-resolution rendering editing method, system, terminal device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1688166A (en) * 2005-04-28 2005-10-26 天津大学 HDTV-SDTV converting coder
CN1750636A (en) * 2005-09-29 2006-03-22 西安交通大学 Method for input high resolution TV and computer signals by digital high resolution TV chip
CN102016971A (en) * 2008-06-27 2011-04-13 夏普株式会社 Device for controlling liquid crystal display device, liquid crystal display device, method for controlling liquid crystal display device, program, and recording medium for program
CN102438135A (en) * 2011-01-14 2012-05-02 展讯通信(上海)有限公司 Down-sampling decoding method and device for high-resolution video on small-size display equipment
CN103714512A (en) * 2013-12-25 2014-04-09 中国船舶重工集团公司第七0九研究所 Real-time color image scaling method based on Lanczos core
WO2015124754A1 (en) * 2014-02-21 2015-08-27 Koninklijke Philips N.V. High definition and high dynamic range capable video decoder
CN108681992A (en) * 2018-04-23 2018-10-19 南京理工大学 The image interpolation algorithm of laser facula is measured for detector array method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011216948A (en) * 2010-03-31 2011-10-27 Sony Corp Camera system, video processing apparatus, and camera apparatus
US8508621B2 (en) * 2010-09-30 2013-08-13 Apple Inc. Image sensor data formats and memory addressing techniques for image signal processing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1688166A (en) * 2005-04-28 2005-10-26 天津大学 HDTV-SDTV converting coder
CN1750636A (en) * 2005-09-29 2006-03-22 西安交通大学 Method for input high resolution TV and computer signals by digital high resolution TV chip
CN102016971A (en) * 2008-06-27 2011-04-13 夏普株式会社 Device for controlling liquid crystal display device, liquid crystal display device, method for controlling liquid crystal display device, program, and recording medium for program
CN102438135A (en) * 2011-01-14 2012-05-02 展讯通信(上海)有限公司 Down-sampling decoding method and device for high-resolution video on small-size display equipment
CN103714512A (en) * 2013-12-25 2014-04-09 中国船舶重工集团公司第七0九研究所 Real-time color image scaling method based on Lanczos core
WO2015124754A1 (en) * 2014-02-21 2015-08-27 Koninklijke Philips N.V. High definition and high dynamic range capable video decoder
CN108681992A (en) * 2018-04-23 2018-10-19 南京理工大学 The image interpolation algorithm of laser facula is measured for detector array method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
4K超高清节目制播中HDR与SDR的兼容与转换;成六祥 邢卫东;《广播与电视技术》;20190415;全文 *
下变换设备在播出系统中的使用和分析;陈登耀;《西部广播电视》;20161225;全文 *
关于下变换的思考;蒋光华;《现代电视技术》;20170215;全文 *

Also Published As

Publication number Publication date
CN110166798A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
US11354785B2 (en) Image processing method and device, storage medium and electronic device
US9501818B2 (en) Local multiscale tone-mapping operator
CN110166798B (en) Down-conversion method and device based on 4K HDR editing
JP5182957B2 (en) Variable scaling of image data for aspect ratio conversion
US9652829B2 (en) Video super-resolution by fast video segmentation for boundary accuracy control
US9001274B2 (en) Image processing method
US9471958B2 (en) Image processing method and apparatus
US10306210B2 (en) Image processing apparatus and image capturing apparatus
JP6039657B2 (en) Method and device for retargeting 3D content
JP2014522596A5 (en)
JP2002185776A (en) Petite size image processing engine
CN111986601B (en) Screen display method, device, terminal equipment and storage medium
CN110572713B (en) Transcoding method and processing terminal for adaptive video bandwidth ratio
US10026013B2 (en) Clustering method with a two-stage local binary pattern and an iterative image testing system thereof
CN114245027B (en) Video data hybrid processing method, system, electronic equipment and storage medium
CN110121032B (en) Method, device and equipment for displaying animation special effect and storage medium
KR102411911B1 (en) Apparatus and method for frame rate conversion
KR101028449B1 (en) Method and apparatus for resizing image
US20220138906A1 (en) Image Processing Method, Apparatus, and Device
CN115019225A (en) Panoramic video behavior identification method, device, equipment and medium
JP2016095667A (en) Image processing device and electronics apparatus
MX2014002635A (en) Pixel-based directional prediction patterns for digital coding of images.
CN113068029A (en) Video decoding method and system for mobile terminal, storage medium and electronic equipment
CN115249207A (en) Video super-resolution method and device, video super-resolution model, medium and terminal equipment
CN113298705A (en) Image super-resolution processing method and device

Legal Events

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