Motion Adaptive Deinterlacing Filter Implemented in Hardware And

Total Page:16

File Type:pdf, Size:1020Kb

Motion Adaptive Deinterlacing Filter Implemented in Hardware And Motion adaptive deinterlacing filter implemented in hardware and OpenCL Stefan Frid, Gustav Peterz February 8, 2013 During most of television history, CRT-based is still being used in some applications, video fil- displays has been the most common way of dis- ters which improve the appearance of interlaced playing moving images. Consequently, means content on non-CRT displays are used. Such fil- of broadcasting video have been adapted to the ters are called deinterlacing filters. Naive ones characteristics of CRT displays, and interlacing either sacrifice resolution and create flickering, is one example of this. The need to continu- or produce distinct visible artefacts on content ously refresh the image of a CRT results in a with motion as seen in figure 2. Thus, there is requirement of a high refresh rate, and interlac- a need for more complex filters that account for ing was introduced as a means of halving the motion and other dynamic properties in video consumed bandwidth at the cost of vertical res- content. olution, while maintaining a high refresh rate. Interlaced video consists of a sequence of im- ages known as fields, each with half the vertical resolution of the original frames. Every other field is created by discarding all odd rows in a frame, and the remaining fields are created by discarding the even rows (see figure 1). Figure 2 { Example of interlaced Figure 1 { A sequence of four frames video that was processed by the and their corresponding fields after naive deinterlacing filter "weave". converting a video from progressive In content with considerable motion to interlaced. this filter often produce the charac- teristic artefacts known as "comb- Today the CRT display is no longer in com- ing" or "jaggies". mon use, replaced with technologies such as LCD and plasma displays. These display types As the complexity of the filters grow, so does have different characteristics than CRT dis- the computing power needed to run the algo- plays, and are not well suited for the display of rithm. One use case where performance is a interlaced video. However, as interlaced video concern is when the algorithm is performed by 1 a low power device, such as a phone. Once video produced by MEDA is of equal or better relegated to voice calls and messages, modern quality than that produced by other deinterlac- smartphones may be connected to high defini- ing filters suitable for real-time use (figure 3). tion displays for video playback, creating a situ- ation in which deinterlacing might be needed on a phone. The hardware powering such phones is also finding use in digital video players intended to be used with televisions, providing another application for low power deinterlacing. To meet the demands on modern smart- phones and tablets as all-purpose appliances for gaming and media consumption, such de- vices are equipped with powerful coprocessors to offload processor-intensive tasks from the main processor. One such coprocessor is the GPU, the Graphics Processing Unit, which is specifically designed to process and manipulate Figure 3 { Filter image quality, as graphics. Compared to general-purpose CPUs, measured in PSNR, compared to a modern GPUs are very efficient at perform- number of other deinterlacing algo- ing multiple tasks simultaneously, making them rithms over a series of video clips. more effective for algorithms where processing of large blocks of data is done in parallel. In The first main feature of MEDA is its abil- general-purpose applications where the GPU is ity to detect motion in the video, and use this used for non-graphics related tasks, a frame- information to perform video filtering. While work such as OpenCL is often used. OpenCL naive methods of motion detection are suit- is an open standard for running parallel tasks able for some applications, MEDA uses a novel on CPUs, GPUs and hardware accelerators. It method designed to reduce erroneous static is cross-platform and supported on most major area detection in situations where this would operating systems, including various embedded result in noticeable visual artifacts. and handheld devices. Leveraging this functionality, the thesis re- port "Motion adaptive deinterlacing filter im- plemented in hardware and OpenCL" describes the design and implementation of a new dein- terlacing method targeting mobile and low- power devices. The search for a suitable algorithm is de- scribed in the report. Algorithm character- istics such as complexity and data dependen- cies had to be taken into account, in order to Figure 4 { Image showing the dif- enable implementations in OpenCL and hard- ference between simple linear verti- ware. However, the algorithm characteristic cal interpolation (left) and the new most visible to the end user is obviously the edge-detecting interpolation used video produced, and much care was taken to by MEDA (right). find algorithms producing visually pleasing out- put. To avoid artifacts produced by previously The second main feature of the algorithm proposed methods, the Motion adaptive Edge is the image interpolation used after motion detecting Deinterlacing Algorithm, MEDA, was detection has been performed. Instead of us- developed. Quality evaluations show that the ing a simple type of interpolation, which of- 2 ten produce artifacts on diagonal edges, MEDA uses a sophisticated new edge-detecting algo- rithm which maintains hard diagonal edges (il- lustrated in figure 4). Additionally, this im- proved algorithm is not only applied in the tra- ditional 2D-image sense, which is essentially a horizontal-vertical plane, but also a horizontal- temporal plane, producing improved video de- tail for objects in motion. Figure 5 { The hardware implemen- tation of the filter being prototyped on a development platform with an FPGA. The prototype is capable of real time deinterlacing of VGA con- tent at 60 fields per second. To show the feasibility of the MEDA algo- rithm in mobile devices, two versions of the filter were successfully implemented. One ver- sion was a pure hardware implementation (pic- tured in figure 5), which for example could be included in the System on Chip (SoC) solutions which power modern mobile phones, smart TVs and media players. The second implementation was in OpenCL, which could be run on modern low-power GPUs. Both implementations can be used to process 1080i60 video, which is the toughest realistic use-case for a deinterlacing filter. 3.
Recommended publications
  • Cathode-Ray Tube Displays for Medical Imaging
    DIGITAL IMAGING BASICS Cathode-Ray Tube Displays for Medical Imaging Peter A. Keller This paper will discuss the principles of cathode-ray crease the velocity of the electron beam for tube displays in medical imaging and the parameters increased light output from the screen; essential to the selection of displays for specific 4. a focusing section to bring the electron requirements. A discussion of cathode-ray tube fun- beam to a sharp focus at the screen; damentals and medical requirements is included. 9 1990bu W.B. Saunders Company. 5. a deflection system to position the electron beam to a desired location on the screen or KEY WORDS: displays, cathode ray tube, medical scan the beam in a repetitive pattern; and irnaging, high resolution. 6. a phosphor screen to convert the invisible electron beam to visible light. he cathode-ray tube (CRT) is the heart of The assembly of electrodes or elements mounted T almost every medical display and its single within the neck of the CRT is commonly known most costly component. Brightness, resolution, as the "electron gun" (Fig 2). This is a good color, contrast, life, cost, and viewer comfort are analogy, because it is the function of the electron gun to "shoot" a beam of electrons toward the all strongly influenced by the selection of a screen or target. The velocity of the electron particular CRT by the display designer. These beam is a function of the overall accelerating factors are especially important for displays used voltage applied to the tube. For a CRT operating for medical diagnosis in which patient safety and at an accelerating voltage of 20,000 V, the comfort hinge on the ability of the display to electron velocity at the screen is about present easily readable, high-resolution images 250,000,000 mph, or about 37% of the velocity of accurately and rapidly.
    [Show full text]
  • LENOVO LEGION Y27gq-20 the MIGHTY GAME CHANGER
    LENOVO LEGION Y27gq-20 THE MIGHTY GAME CHANGER The Lenovo Legion Y27gq-20 is an ultra-responsive gaming monitor STEP UP YOUR GAME with impressive features to add maximum thrill to your gameplay. Designed to meet the unique requirements of avid gamers, Seamless Gaming this 27-inch monitor with NVIDIA® G-SYNC™ technology, Experience 165 Hz refresh rate, and 1ms response time delivers superior No Ghosting performance every time. The NearEdgeless QHD, or Motion Blur anti-glare display, and optional monitor USB speaker with sound by Harman Kardon provide stunning Brilliant Ergonomic audio-visual quality for an optimized Design gaming experience. INSTANTANEOUS RESPONSE FOR THE ULTIMATE GAMING EXPERIENCE For time-critical games where every millisecond Technology: counts, the winning combination of the 165 Hz NVIDIA® G-SYNC™ refresh rate and 1ms extreme response time eliminates streaking, ghosting, and motion blur to give you Refresh Rate: a competitive edge. The NVIDIA® G-SYNC™ technology* 165 Hz on the Lenovo Legion Y27gq-20 dynamically matches the Response Time: refresh rate of the display to the frame rate output of the GPU. 1ms This helps eliminate screen tearing, prevent display stutter, and minimize input lag, allowing you to enjoy ultra-responsive and distraction-free gaming. *NVIDIA® G-SYNC™ can only work with NVIDIA® GeForce™ series graphics card. Users need to enable the G-SYNC™ function in NVIDIA® Control panel. SUPERIOR AUDIO-VISUAL QUALITY FOR IMMERSIVE GAMING The Y27gq-20 gaming-focused monitor, featuring a NearEdgeless QHD, anti-glare display with 2560 x 1440 resolution produces outstanding Display: visuals with vivid clarity to boost your gaming sessions.
    [Show full text]
  • Flexibility for Alternative Content
    ALTERNATIVE CONTENT DMS SCALERS More flexibility for Alternative Content Kinoton’s Markus Näther explains the technology behind the company’s DMS Scalers -Cinema projectors using Series analog component, composite, S-Video and why high-quality cinema scalers employ very II 2K DLP Cinema® technology VGA inputs for connecting PCs or laptops, DVD complex mathematical algorithms to achieve support not only true 2K content, players, satellite receivers, digital encoders, smooth transitions. Pixels to be added are but also different video formats. cable receivers and many other sources, up to interpolated from the interim values of their If it comes to alternative content, HDMI inputs for Blu-Ray players etc. Premium neighbouring pixels, and if pixels have to be D scalers even offer SDI and HD-SDI inputs for though, they quickly reach their limits – the deleted, the same principle is used to smooth range of different picture resolutions, video professional sources. the transitions between the residual pixels. rendering techniques, frame rates and refresh Perfect Image Adjustment How well a scaler accomplishes this demanding rates used on the video market is simply too The different video sources – like classic TV, task basically depends on its processing power. large. Professional media scalers can convert HDTV, DVD or Blu-Ray, just to name the most Kinoton’s premium scaler model DMS DC2 incompatible video signals into the ideal input common ones – work with different image PRO realises image format changes without signal for D-Cinema projectors, and in addition resolutions. The ideal screen resolution for any loss of sharpness, the base model HD DMS enhance the projector’s capabilities of connect- the projection of alternative content with 2K still provides an acceptable image quality for ing alternate content sources.
    [Show full text]
  • Lc-60Le650u 60" Class 1080P Led Smart Tv
    LC-60LE650U 60" CLASS 1080P LED SMART TV 6 SERIES LED SMART TV AQUOS 1080P LED DISPLAY Breathtaking HD images, greater brightness and contrast SMART TV With Dual-Core Processor and built-in Wi-Fi 120Hz REFRESH RATE Precision clarity during fast-motion scenes SLIM DESIGN Ultra Slim Design POWERFUL 20W AUDIO High fidelity with clear voice Big, bold and brainy - the LC-60LE650U is an LED Smart TV that delivers legendary AQUOS picture quality and unlimited content choices, seamless control, and instant connectivity through SmartCentral™. The AQUOS 1080p LED Display dazzles with advanced pixel structure for the most breathtaking HD images, a 4 million: 1 dynamic contrast ratio, and a 120Hz refresh rate for precision clarity during fast-motion scenes. A Smart TV with Dual-Core processor and built in WiFi, the LC-60LE650U lets you quickly access apps streaming movies, music, games, and websites. Using photo-alignment technology that’s precision Unlimited content, control, and instant See sharper, more electrifying action with the most crafted to let more light through in bright scenes and connectivity. AQUOS® TVs with advanced panel refresh rates available today. The shut more light out in dark scenes, the AQUOS SmartCentral™ give you more of what you 120Hz technology delivers crystal-clear images 1080p LED Display with a 4 million: 1 contrast ratio crave. From the best streaming apps, to the even during fast-motion scenes. creates a picture so real you can see the difference. easiest way to channel surf and connect your devices, it’s that easy.
    [Show full text]
  • BA(Prog)III Yr 14/04/2020 Displays Interlacing and Progressive Scan
    BA(prog)III yr 14/04/2020 Displays • Colored phosphors on a cathode ray tube (CRT) screen glow red, green, or blue when they are energized by an electron beam. • The intensity of the beam varies as it moves across the screen, some colors glow brighter than others. • Finely tuned magnets around the picture tube aim the electrons onto the phosphor screen, while the intensity of the beamis varied according to the video signal. This is why you needed to keep speakers (which have strong magnets in them) away from a CRT screen. • A strong external magnetic field can skew the electron beam to one area of the screen and sometimes caused a permanent blotch that cannot be fixed by degaussing—an electronic process that readjusts the magnets that guide the electrons. • If a computer displays a still image or words onto a CRT for a long time without changing, the phosphors will permanently change, and the image or words can become visible, even when the CRT is powered down. Screen savers were invented to prevent this from happening. • Flat screen displays are all-digital, using either liquid crystal display (LCD) or plasma technologies, and have replaced CRTs for computer use. • Some professional video producers and studios prefer CRTs to flat screen displays, claiming colors are brighter and more accurately reproduced. • Full integration of digital video in cameras and on computers eliminates the analog television form of video, from both the multimedia production and the delivery platform. • If your video camera generates a digital output signal, you can record your video direct-to-disk, where it is ready for editing.
    [Show full text]
  • Experience DTV Using LCD TV
    Experiencing DTV on the LCD TV What is DTV? DTV stands for Digital Television, the latest standard and the future of television broadcasting. Unlike analog TV, DTV is broadcast digitally to transmit an audio and video signal for movie-like picture quality and surround sound. HDTV, your ticket to movie theater experiences on your home TV set, is a Digital TV (DTV) format. There are many benefits to DTV, as we will explain below. In addition, on February 1st, 2006, Congress passed a law mandating that all analog TV broadcasts must cease on February 17, 2009. At present, many television stations have begun broadcasting programs digitally. Benefits of Digital Television Improved image and sound quality Digital signals are not prone to interference during transmission, resulting in high fidelity signals all the way to the TV set for immaculate colors, incredible image sharpness and great sound. With DTV we can say goodbye to “ghosting” and “snow” on the TV screen and noise from the speakers. In addition, DTV supports high quality picture formats such as HDTV, meaning you will be able to enjoy movie-like programming right in the comfort of your own living room! Interactive programming With analog TV, we could do very little else with our TV programs other than change the channel. DTV provides us with an interactive viewing experience, a good example of which is the ability to order whichever program we please directly through the TV. That was impossible in the analog TV age. DTV Picture Quality Levels There is more than one DTV picture quality level or format.
    [Show full text]
  • Plasmasync Range 42VM5 / 42VP5 / 42VR5 42XM3 / 42XR3 50XM4
    PlasmaSync Range 42VM5 / 42VP5 / 42VR5 42” Wide VGA Multimedia Display 42XM3 / 42XR3 42” XGA Multimedia Display 50XM4 / 50XR4 50” Wide XGA Multimedia Display 61XM3 / 61XR3 61” Wide XGA Multimedia Display OPTION PlasmaSync and OSM are trademarks of NEC Corporation. The plasma display panel consists of fine picture elements (cells). Although NEC produces these plasma display panels with more than 99.99 percent of their cells active, there may be some cells that do not produce light or remain lit after they should have turned off. Light output of a PDP module gradually decreases over long- term use. Do not display static images for prolonged periods; otherwise a phosphor burn may appear on a part of the panel. Phosphor burns are not covered by the warranty. Status August 2004. Specifications may change without notice. PlasmaSync and OSM are trademarks of NEC Corporation. For further information, please contact: www.plasmasync.com 61 61 42 50 42 50 PX-42VM5 / PX-42VP5 / PX-42XM3 PX-50XM4 PX-61XM3 PX-42VR5 / PX-42XR3 PX-50XR4 PX-61XR3 Fully digitized high-quality images Vivid, breathtaking colours All image signals are fully digitized using NEC's unique new The CCF (Capsulated Colour Filter) method and the AccuCrimson The New PlasmaSync integrates the most advanced signal-processing circuit, Digital AccuDevice. High-definition filter reproduce accurate, vivid colours and pure whites. The progressive conversion produces comprehensive, high-quality colour tuning function adjusts any single colour to enhance the technologies into multimedia presentation displays images, and resolution conversion generates images with overall display into a world of colours. unmatched accuracy.
    [Show full text]
  • Video Over USB Frequently Asked Questions This Section Describes Some Common Questions and Answers About the Installation and Operation of the USB Display Adapter
    Video Over USB Frequently Asked Questions This section describes some common questions and answers about the installation and operation of the USB Display Adapter. Q1 Why does my computer occur blue screen when the USB Display Adapter is installed? A1 Please make sure you have updated the latest driver of graphics card, and re-install j5 driver. If you still experience the same problem, please contact j5 customer services soon. Q2 Why can't I choose the Primary Mode of the USB Display Adapter? A2 Some video or graphics card manufacturers ship their product with a utility that prevents other video cards from being set as the primary card. Check the toolbar in the lower right corner of your desktop. If the program of another video card is already running (usually the utility icon will be shown together with USB Display Adapter’s icon in the lower right corner toolbar), disable its utility before you use the Primary mode of the USB Display Adapter. Q3 Why doesn‘t my DVD-player software run on the second (or third) extended desktop? A3 Some DVD-player software does not support playing on the second or third extended desktop. You may hear sounds but no images appear. Media Player Classic player is recommended for playing on the extended desktop. You can get a free download of Media Player Classic at: http://mpc-hc.sourceforge.net/download-media-player-classic-hc.html Q4 Why doesn’t my DVD player work when I move it over to the extended display? A4 Some DVD-player software packages do not support playing on a second or third extended desktop.
    [Show full text]
  • Screen Tearing
    Screen tearing Screen tearing is a visual artifact in video display where a display device shows information from multiple frames in a single screen draw.[1] The artifact occurs when the video feed to the device is not in sync with the display's refresh rate. This can be due to non-matching refresh rates—in which case the tear line moves as the phase difference changes (with speed proportional to difference of frame rates). It can also occur simply from lack of sync between two equal frame rates, in which case the tear line is at a fixed location that corresponds to the phase difference. During video motion, screen tearing creates a torn look as edges of objects (such as a wall or a tree) fail to line up. Tearing can occur with most common display technologies and video cards, and is most noticeable in horizontally-moving visuals, such as in slow camera pans in a movie, or classic side-scrolling video games. Screen tearing is less noticeable when more than two frames finish rendering during the same refresh interval, since this means the screen has several narrower tears instead of a single wider one. A typical video tearing artifact (simulated image) Contents Prevention V-sync Other techniques References Prevention Ways to prevent video tearing depend on the display device and video card technology, software in use, and the nature of the video material. The most common solution is to use multiple buffering. Most systems use multiple buffering and some means of synchronization of display and video memory refresh cycles.
    [Show full text]
  • Alchemist File - Understanding Cadence
    GV File Understanding Cadence Alchemist File - Understanding Cadence Version History Date Version Release by Reason for changes 27/08/2015 1.0 J Metcalf Document originated (1st proposal) 09/09/2015 1.1 J Metcalf Rebranding to Alchemist File 19/01/2016 1.2 G Emerson Completion of rebrand 07/10/2016 1.3 J Metcalf Updated for additional cadence controls added in V2.2.3.2 12/10/2016 1.4 J Metcalf Added Table of Terminology 11/12/2018 1.5 J Metcalf Rebrand for GV and update for V4.*** 16/07/2019 1.6 J Metcalf Minor additions & corrections 05/03/2021 1.7 J Metcalf Rebrand 06/09/2021 1.8 J Metcalf Add User Case (case 9) Version Number: 1.8 © 2021 GV Page 2 of 53 Alchemist File - Understanding Cadence Table of Contents 1. Introduction ............................................................................................................................................... 6 2. Alchemist File Input Cadence controls ................................................................................................... 7 2.1 Input / Source Scan - Scan Type: ............................................................................................................ 7 2.1.1 Incorrect Metadata ............................................................................................................................ 8 2.1.2 Psf Video sources ............................................................................................................................. 9 2.2 Input / Source Scan - Field order ..........................................................................................................
    [Show full text]
  • Hdtv (High Definition Television)
    WHITE PAPER HDTV (High DefinitionT elevision) and video surveillance Table of contents Introduction 3 1. HDTV impact on video surveillance market 3 2. Development of HDTV 3 3. How HDTV works 4 4. HDTV standardization 6 5. HDTV formats 6 6. Benefits ofH DTV in video surveillance 6 7. Conclusion 7 Introduction The TV market is moving rapidly towards high-definition television, HDTV. This change brings truly re- markable improvements in image quality and color fidelity. HDTV provides up to five times higher resolu- tion and twice the linear resolution compared with traditional, analog TV. Furthermore, HDTV comes with wide screen format and DVD-quality audio. Growth in the consumer market for HDTV is impressive. In 2007 the HDTV household penetration in the U.S. was approximately 35%. According to estimates, 85% of all viewers will have an HDTV set at home by 2012. Already today, virtually all major television productions are HD. The two most important HDTV standards today are SMPTE 296M and SMPTE 274M, which are defined by the Society of Motion Picture and Television Engineers, SMPTE. 1. HDTV impact on video surveillance market This development is now starting to have an impact on the video surveillance market, as customers ask for higher image quality standard. The possibility of clearer, sharper images is a long sought quality in the surveillance industry, i.e. in applications where objects are moving or accurate identification is vital. It can be argued that some of these requirements can be met with megapixel network cameras. How- ever the notion of “megapixel” is not a recognized standard but rather an adaptation of the industry’s best practices and it refers specifically to the number of image sensor elements of the digital camera.
    [Show full text]
  • Motion Compensated Deinterlacer Analysis and Implementation
    2008:126 CIV MASTER'S THESIS Motion Compensated Deinterlacer Analysis and Implementation Johan Helander Luleå University of Technology MSc Programmes in Engineering Arena, Media, Music and Technology Department of Computer Science and Electrical Engineering Division of Signal Processing 2008:126 CIV - ISSN: 1402-1617 - ISRN: LTU-EX--08/126--SE Master’s Thesis Supervisor: Magnus Hoem Examiner: Magnus Lundberg Nordenvaad Telestream AB & Department of Computer Science and Electrical Engineering, Signal Processing Group, Luleå University of Technology Preface This Master’s Thesis was carried out by me during the autumn term 2007 and beginning of 2008 at Telestream AB’s office at Rådmansgatan 49, Stockholm. It is part of the Master of Science program Arena Media, Music and Technology at Luleå University of Technology (LTU). Because of my education and interest in signal processing in media applications, the proposed topic was very well suited. The reader is assumed having basic knowledge about signal processing, such as sampling, quantization, aliasing and so on. I would like to thank Telestream AB for their warm welcome and comfortable treatment during this period. I would especially like to thank Magnus Hoem, CEO Telestream AB, for the opportunity to carry this thesis through, Nils Andgren, Telestream AB, for help and support through important thoughts and discussions, Kennet Eriksson, Telestream AB, for supplying test video sequences. Finally, I would like to thank Maria Andersson, for great support by illustration of the majority of the figures contained in this Master’s Thesis. i ii Abstract In the early days of television as Cathode Ray Tube (CRT) screens became brighter, the level of flicker caused by progressive scanning became more noticeable.
    [Show full text]