Академический Документы
Профессиональный Документы
Культура Документы
Agenda
Video standards and concepts
Brief overview of video signal formats
Video Processing
Resizing, Color conversion, Range mapping, Edge Padding Video compression
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Resolution
Perceived resolution is a function of: Actual resolution Distance Size of display (i.e. size of pixels)
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Application(s)
Full Analog Television Resolution Resolution VHS VCR is capable of Digital Television
NTSC
720 x 480 352 x 240
PAL
720 x 576 352 x 288
18 different resolutions/rates
(three most common are shown)
ATSC
720 x 480 1280 x 720 1920 x 1080 704 x 576 352 x 288 176 x 144
5
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Resolution
720 x 480 352 x 240
Frame Rate
59.94 fields/sec
I/P
I
Data Rate
10M pix/sec 2.5M pix/sec
PAL
D1 SIF
Resolution
720 x 576 352 x 288
Frame Rate
50 fields/sec
I/P
I
Data Rate
10M pix/sec 2.5M pix/sec
CIF
4CIF CIF QCIF OMAP
Resolution
704 x 576 352 x 288 176 x 144
Frame Rate
30 frames/sec 30 frames/sec 30 frames/sec
I/P
P P P
Data Rate
12M pix/sec 3M pix/sec 760K pix/sec
6
ATSC Formats
ATSC
SDTV
Name
480i 480p 720p 1080i 1080p
Resolution
720 x 480 720 x 480 1280 x 720 1920 x 1080 1920 x 1080
Frame Rate
(per second) 60 fields 60 frames 60 frames 60 fields 60 frames
I/P
I P P I P
Data Rate
(pixels/sec) 10 M 20 M 55 M 62 M 124 M
HDTV
Key
SDTV = Standard Definition Television HDTV = High Definition Television I = Interlaced P = Progressive
Standard supports both NTSC rates and integer rates: i.e. 60.00, 59.94, 30.00, 29.97, 24.00, and 23.98
7
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Summary: Pixel's in 4D
width
3. Frame rate determines how long the pixel exists, 4. Color Depth of the pixel
How many bits are used to represent the color of each pixel? i.e. how it moves
1 bit
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
8 bits
or YCbCr 4:4:4
RGB Color
8-bits Red
8-bits
Green
8-bits
Blue
255
0 All color can be composed by adding specific amounts of R, G, & B 8-bits (28) specifies the amount of each color This is the scheme used by most electronic displays to generate color; e.g. we often call our computer monitors, "RGB displays"
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Color Reduction
Human eye is not as sensitive to color as it is to Luminance
dark vs light To this end, to save costs the various standards decided to: Maintain luminance information in our images, but Reduce color information
Using RBG, though, how do we easily reduce color information without removing luminance? For this, and other technical reasons, a separate color space was chosen by most video standards
10
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
What is YCbCr?
Video Source Y Cb Cr
Y Cb Cr R G B
Even though most displays actually use RGB to create the image, YCbCr is used most often in consumer electronics for transmission of the image Historically, B/W televisions transmitted only luminance (Y) The color signals were added later
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
11
Transmitter
Processor or Video Decoder SAV
Synchronization Codes
EAV EAV SAV Line of Data Blanking Line of Data Etc
Receiver
Processor or Video Encoder
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Digital Video Overview - RAW Uses external synchronization signals Primarily for video, but also useful for general data More complex to implement as it can use separate hardware synchronization signals
14
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Transmitter
Processor or Video Decoder
Raw Stream There can also be a Vertical Sync Edge if at the start of a 8-16 bit data bus field/frame
Clock (up to ~80Mhz Typ) Horizontal Sync Vertical Sync Horizontal Sync Edge
Receiver
Processor or Video Encoder
Blanking
Line of Data
Etc
15
Benefits Provides a direct digital connection to Video Encoders, Decoders, ADCs, DACs, and ATSC Tuners Features 16-bit Digital Interface to capture/display High-Definition Video Content from/to Video ADCs/Decoders/DACs/Encoders Dual 8-bit BT.656 interfaces for Multi-Channel Standard Definition Video Capture/Display 8/10/12-bit RAW Capture Interface to CMOS Sensors MPEG2 Transport Stream Interface
Synchronous/Asynchronous Modes Stream Parser, PID Filtering, ATS Detection/Correction Bypass Mode allows RAW Data, not just Transport Streams
Display
16b BT.1120 or 8b BT.656 8b BT.656
TSIF
Serial/Parallel I/O Serial I/O
16
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
A/D
CCD (Analog Out)
Timing Gen
8/16 bit BT.656 CCD or CMOS Sensors (Digital Out)
CCDC
17
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Image-Pipe:
Preview Engine Resizer Module
18
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
SYNC Mode : Supports 8, 10 and 12-bit data Provides horizontal and vertical synchronization signal (to identify the active pixel)
OMAP3530
Cam_hs
19
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
OMAP3530
Cam_pclk
Cam_d[9:0]
20
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Video Processing
Features
Pre- and Post-Processing Engine for Video Compression and Capture/Display Downscale from 1x (1/8)x; 256/n, where 256 < n < 2048 YUV420) for Video Chroma Conversion (YUV422 Processing algorithms
http://focus.ti.com/lit/ug/sprueq9/sprueq9.pdf
22
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
VPSS Front End Previewer (Image Pipe) DM644x, DM643x, DM3xx, OMAP35x
Converts raw Bayer pattern output of image sensors to format suitable for image processing or display Other features:
Can capture and subtract dark frames for better image quality Lens shading compensation A-law Decompression (8-bit A-law to 10-bit Linear) 3x3 Noise Filter Digital gain and white balance Gamma Correction
G R G R B G B G
Raw Bayer Pattern From CCDC or External Memory
Previewer (IPIPE)
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Downscaling
Resizer
Horizontal 1/4X to 4X Vertical 1/4X to 4X
Upscaling
Resizer
Horizontal 1/4X to 4X Vertical 1/4X to 4X
24
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
H3A
Auto Focus Auto White Balance Auto Exposure
25
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
26
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
v v v v
v v v v
v v v v
v v v v
w w w w
x x x x
y y y y
z z z z
v v v v v
v v v v v
v v v v v
v v v v v
w w w w w
x x x x x
y y y y y
z z z z z
Bottom field 0 0 0 0 a p 5 i 0 0 0 0 a p 5 i 0 0 0 0 a p 5 i 0 0 0 0 a p 5 i 1 1 1 1 b q 6 j 2 2 2 2 c r 7 k 3 3 3 3 d s 8 l 4 4 4 4 e t 9 m
v v v v
v v v v
v v v v
v v v v
w w w w
x x x x
y y y y
z z z z
27
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
28
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
29
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Resizer
Central Resource
Imager Input
3A
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Consequential I/F Input TS Stream (PCI or HPI) Output TS stream Parallel or Serial I/F Transmit I/F
Format Conv.
ATS checker
DDR2
31
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
3 different mode to determine Gain Factor from the Look-up table, and 3 tables for R, G and B.
33
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Why compression?
Video Capture Device Driver Compression Store Transmit Decompression Video Display Device Driver
Without it
Format
30 frames/s, 4:2:0
A movie wont fit on a CD (800 MBytes) or a DVD (4.7 GBytes) and it cant be streamed over ADSL (384 Kbits/s 1.5Mbits/s) or common ethernet (10-100 Mbits/s)
34
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Image Compression
JPEG (Joint Photographic Experts Group)
Best known standard is IS 10918-1 (ITU-T T.81) JPEG committee reported to 3 international standards organizations (ISO/ITU/IEC)
Typically 10:1 compression Still Image coding technique to remove spatial redundancy Block-based DCT, Huffman Coding, Perceptual Quantization Extensions for lossless, progressive coding Initially aimed at Monochrome
Separate compression of components in color image
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Motion JPEG
M-JPEG or Motion JPEG
Commonly used term for application of JPEG to motion video sequences Not really covered by JPEG time standard, but useful tool for compressing motion sequences (prior to arrival of MPEG)
Frames Transmitted / Stored Sequentially Used when each individual frame needs to be independently decoded
Security Applications Basis of most Non-Linear Editors
Non-Standardized
MPEG can be used in JPEG style in controlled environment Interchange etc.
36
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
37
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Temporal Redundancy
x y
time
High correlation between regions A, B and C produces high degree of temporal redundancy
38
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
MPEG-2
The standard for Digital TV (HDTV, DVD) Most successful of the MPEG standards Typical output rate 2-6 Mbps (40:1 compression) To MPEG-1 it adds support for: BT.601 format (720 x 480), YUV, 30 frames/sec Interlaced video Multi-Channel Audio Motion Film (Pan/Scan, 3:2 Pulldown) Encoder is more complex than the decoder
39
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
High
B pictures: several prediction modes Context Adaptive Binary Arithmetic Coding (CABAC) Weighted Prediction Adaptive Frame/Field Coding
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Emerging standards offer further improvements (e.g., JPEG2000 at 40:1 generally looks much better than JPEG at 40:1, and H.264 / MPEG-4 AVC produces excellent quality at 60:1 for some types of video content) Application-specific conditions can enable much higher compression ratios (e.g., 1000s:1 when nothing is moving) Event-based methods that selectively identify certain important images to keep while discarding others
42
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
Over 2x Performance of ARMv6 SIMD Supports Both Integer and Floating Point SIMD
Jazelle RCT Execution Environment Architecture Dynamic Branch Prediction with Branch Target Address Cache (95% accurate across industry benchmarks), Global History Buffer, and 8-Entry Return Stack Embedded Trace Macrocell (ETM) Support for Non-Invasive Debug ARM Cortex-A8 Memory Architecture:
16K-Byte Instruction Cache (4-WaySetAssociative) 16K-Byte Data Cache (4-Way Set-Associative) 256K-Byte L2 Cache
Big Endian
43
OMAP
TEXAS INSTRUMENTS TECHNOLOGY
ARM
Video Accelerator
N/A
N/A
Graphics Accelerator
N/A
N/A
N/A
N/A
VPIF, VDCE
N/A
44
OMAP
TEXAS INSTRUMENTS TECHNOLOGY