TWAIN Open industry standard interface for the input devices to capture multimedia objects More and more sophisticated devies are developed to cater to.

Slides:



Advertisements
Similar presentations
Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
Advertisements

Sampled Audio. We store digitised audio samples. This is the main audio data. In a file (e.g..wav format) we also need some header information. We will.
UPnP AV WC Status Update (UPnP Summit 2003) John Ritchie – Intel Geert Knapen – Philips UPnP AV Co-chairs.
CS335 Principles of Multimedia Systems Audio Hao Jiang Computer Science Department Boston College Oct. 11, 2007.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0.
Audio 2 Subject:T0934 / Multimedia Programming Foundation Session:9 Tahun:2009 Versi:1/0.
1 Audio input and output Speaker: Ching Chen Chang Date:
WaveIO Speaker: Paul Date: Outline Wave File Format Multi-Media API (Output) Damo Multi-Media API (Input) Damo Reference 2.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (2)
Audio Basic Concepts. Audio in Multimedia Digital Audio: Sound that has been captured or created electronically by a computer In a multimedia production,
UNDERSTANDING JAVA APIS FOR MOBILE DEVICES v0.01.
Movies Play on Some Computers, Not Others. PowerPoint 2000 Movie Troubleshooter 2Fsupport%2Fpowerpoint%2Fppt2000%2Fmmed.
1 Digital Audio Storage Formats. 2 Formats  There are many different formats for storing and communicating digital audio:  CD audio  Wav  Aiff  Au.
Conversion Between Video Compression Protocols Performed by: Dmitry Sezganov, Vitaly Spector Instructor: Stas Lapchev, Artyom Borzin Cooperated with:
DCS Architecture Bob Krzaczek. Key Design Requirement Distilled from the DCS Mission statement and the results of the Conceptual Design Review (June 1999):
OSI Model MIS 416 – Module II Spring 2002 Networking and Computer Security.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
Asper School of Business University of Manitoba Systems Analysis & Design Instructor: Bob Travica System interfaces Updated: November 2014.
Speech Detection Project 1. Outline Motivation Problem Statement Details Hints.
Mahesh Wagh Intel Corporation Member, PCIe Protocol Workgroup.
May 8, The EASY Way to Create I/O Devices John Hyde Intel Corporation intel.com.
Sem 1 v2 Chapter 14: Layer 6 - The Presentation layer.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Characteristics of Communication Systems
Protocol Architectures. Simple Protocol Architecture Not an actual architecture, but a model for how they work Similar to “pseudocode,” used for teaching.
Digital Music to Sheet Music Hugh Smith. Abstract Electronic music has been steadily expand- ing over the past years. Many file formats have come into.
Intro to Architecture – Page 1 of 22CSCI 4717 – Computer Architecture CSCI 4717/5717 Computer Architecture Topic: Introduction Reading: Chapter 1.
Chapter 7 Low-Level Protocols
IP Forwarding.
Signal Digitization Analog vs Digital Signals An Analog Signal A Digital Signal What type of signal do we encounter in nature?
PPT Slides by Dr. Craig Tyran & Kraig Pencil Information Systems Software MIS 320 Kraig Pencil Summer 2013.
CHAPTER TEN AUTHORING.
Firmware Storage : Technical Overview Copyright © Intel Corporation Intel Corporation Software and Services Group.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Windows XP. History Windows XP is based on the NT kernel developed in 1988 Windows XP is based on the NT kernel developed in 1988 XP was originally sold.
Anatomy of a Sound File v © Allan C. Milne Abertay University.
CMSCDHN1114/CMSCD1011 Introduction to Computer Audio
Multimedia File Format Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2011 Last updated
QuickTime The Joy of Streaming!. QuickTime Streaming Server Allows for real time delivery of media over a network. intranet internet Content can be prerecorded.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
2003 Dominic Swayne1 Microsoft Disk Operating System and PC DOS CS-550-1: Operating Systems Fall 2003 Dominic Swayne.
2015/11/141 Audio I/O Speaker : Wei-Shin Pan DATE :
Digital Music to Sheet Music Hugh Smith. Abstract Electronic music has been steadily expand- ing over the past years. Many file formats have come into.
Glencoe Introduction to Multimedia Chapter 8 Audio 1 sound effect An artificially created or enhanced sound used to achieve an effect (without speech or.
IST 222 Day 3. Homework for Today Take up homework and go over Go to Microsoft website and check out their hardware compatibility list.
1 Audio input and output Speaker: Ching Chen Chang Date:
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
CSCI-100 Introduction to Computing Hardware Part II.
Application Software System Software.
NS Training Hardware Traffic Flow Note: Traffic direction in the 1284 is classified as either forward or reverse. The forward direction is.
Music files in PowerPoint 2007? By Ashley Wiger.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Functions  A Function is a self contained block of one or more statements or a sub program which is designed for a particular task is called functions.
Sound (analogue signal). time Sound (analogue signal) time.
OSI ARCHITECTURE IN OSI, ACTUAL INFORMATION IS OVERHEADED BY PROTOCOL LAYERS IF ALL SEVEN LAYERS ARE OVERHEADED, THEN AS LITTLE AS 15% OF THE TRANSMITTED.
Layer 6 Presentation Layer. Overview Now that you have learned about Layer 5 of the OSI model, it is time to look at Layer 6, the presentation layer.
Business-logic Layer Presentation Layer Network Layer Digital Signal Processing Layer SmartHome API SmartHome Software Architecture SH mobile application.
Music and Audio Computing I A Prof. Marcelo M. Wanderley Week 8.
Garage Band For MAC. What is it? A digital audio workstation that can record and play back multiple tracks of audio. Is a software application for OS.
Software and Communication Driver, for Multimedia analyzing tools on the CEVA-X Platform. June 2007 Arik Caspi Eyal Gabay.
Lecture 1-Part 2: Operating-System Structures
Chapter 11: File System Implementation
Chapter 12: File System Implementation
Multimedia: Digitised Sound Data
Chapter 2: The Linux System Part 2
CSE 451: Operating Systems Spring 2006 Module 12
FTP AND COMMAND PROCESSING IN FTP
Presentation transcript:

TWAIN Open industry standard interface for the input devices to capture multimedia objects More and more sophisticated devies are developed to cater to the needs of various applications

HOW THESE DEVICES ARE USED? Applications were initially written for a single device Eg. OCR reads a text and imports the file as ASCII file to the application. Less flexible and so used different appl. Program for different devices. Time consuming

Contd. Later, device drivers were provided with all devices to provide an interface between program and the devices Appl. program became more complex. Complicated code for supporting multiple interfaces.

USAGE OF TWAIN TWAIN working group created an open industry standard interface for input devices Single TWAIN interface can be used to interface different devices.

BENEFITS OF TWAIN Application developers can code a single TWAIN interface Device manufacturers can write device drivers with TWAIN spec. Multiple devices can be used in appl. Using “Acquire” & “Select Source”

OBJECTIVES Supports multiple platform Supports multiple devices Widespread acceptance with std. interface Extendibility & backward compatibility Multidata format Easy to use

TWAIN ARCHITECTURE

APPLICATION LAYER Sets up a logical connection with device No rules on the design User interface guideline to select sources Select source helps to select multiple sources Acquire helps to import data from the selected device.

PROTOCOL LAYER Provides interface for appl. Layer Comm. between appl. and acquisition layer Specifies services provided by a source Does not specify physical connection, control & devices info. Source Manager – heart of protocol layer

SOURCE MANAGER Provide std. API for all sources Selection of sources Establish logical sessions b/w appl. and sources. Regulates traffic and validate transactions Load or unload sources Maintain default source Keep track of sessions and session identities

ACQUISTION LAYER Contains virtual device driver Acts directly with device driver Local Remote SOURCE

Functions of source Control of device Acquisition of data from device Transfer of data in agreed format Control of devices by user DEVICE LAYER Receives the s/w commands and controls the device hardware accordingly

New WAVE RIFF file format Two mandatory subchunks fmt data Four optional subchunks fact cue points playlist associated data list RIFF STRUCTURE RIFF(‘WAVE’ [ ] )

FACT,CUE POINT & Playlist Fact chunk ->fact( ) Cue–point chunk struct{ DWORD dwName; DWORD dwposition; FOURCC fccChunk; DWORD dwChunkStart; DWORD dwBlockStart; DWORD dwSampleOffset; Playlist chunk Struct { DWORD dwName; DWORD dwLength; DWORD dwLoops; }

Associated &Inst Chunk Associated data chunk: ->LIST( ‘adtl’ ) Inst chunk: -> inst( )

Setting up new WAVE types Mandatory chunks fact fmt Extended waveform structure typedef struct waveformat_extended_tag { WORDwFormatTag; WORD wChannels; DWORDnSamplesPerSec; DWORD nAvgBytesPerSec; WORD nBlockAlign; WORDwBitsPerSample; WORD cbSize; }

Table ITEMWAVE TYPE WAVE DEFINITION 1Microsoft: unknown wave type WAVE_FORMAT_UNKNOWN 2Microsoft ADPCM wave typ WAVE_FORMAT_ADPCM 3Digispeech: CVSD wave type WAVE_FORMAT_IBM_CVSD 4Microsoft, digispeech:CCITT std. WAVE_FORMAT_ALAW 5Digispeech:OKI ADPCM wave type WAVE_FORMAT_OKI_ADPCM 6Intel: ADPCM wave type DVI_ADPCM 7digispeech wave type WAVE_FORMAT_DIGISTD 8Yamaha ADPCM wave type WAVE_FORMAT_YAMAHA_ADPCM 9Sound compreesion Sonarc type WAVE_FORMAT_SONARC 10Creative labs ADPCM WAVE_FORMAT_CREATIVE_ADPCM 11Dsp GROUP wave type WAVE_FORMAT_DSPGROUP 12Echo Speech wave type WAVE_FORMAT_ECHOSCI 13Audio File AF36 & AF10 WAVE_FORMAT_AUDIO_FILE_AF36 14Audio Processing Tech.WAVE_FORMAT_APTX 15Dolby Labs: Dolby-AC2 typeWAVE_FORMAT_DOLBY_AC2

Microsoft ADPCMWAVE file Typedef struct adpcmoef_tag { int iCoef1; int iCoef2; } typedef struct adpcmwaveformat_tag { EXTWAVEFORMATEXTewf; WORDnSamplesPerBlock; WORDnNumberCoef; ADPCMCOEFSETaCoeff[nNumCoef]; }ADPCMWAVEFORMAT;

WAVEFORMATEXT wFormatTagWAVE_FORMAT_ADPCM nChannelsNo. of channels in wave nSamplesPerSecFrequency of the sample rate nAvgBytesPerSecAvg. data rate nBlockAlignblock alignment of data in wbitsPerSampleNo. of bits per sample of ADPCM cbExtraSizesize in bytes of WAVE format chunk nSamplesPerBlockno. of samples per block nNumCoefNo. of coefficient sets in aCoef aCoefcoefficients used by wave

BLOCK It has 3 parts Header,data& padding typedef struct adpcmblockheader_tag { BYTEbpredictor[nChannels]; Int iDelta[nChannels]; Int iSamp1[nChannels]; Int iSamp2[nChannels]; }ADPBLOKHEADER; CCITT Standard Companded WAVE types Stores file-dependent info about the contents of Wave data Two types OF wFormatTag WAVE_FORMAT_ALAM (0X0006)USED IN U.S WAVE_FORMAT_MULAW(OX0007)USED IN EUROPE Note: Rest as in previous slide

DVI ADPCM WAVE DEFINED AS WAVE_FORMAT_DVI_ADPCM(OXOO11) STRUCTURE typedef struct dvi_adpcmwaveformat_tag{ WAVEFORMATEXT ewf; WORD wSamplesPerBlock; }DVIADPCMWAVEFORMAT; wFormatTag is WAVE_FORMAT_DVI_ADPCM.

BLOCK Block has 2 parts –Header –Data Header Typedef struct dvi_adpcmblockheader_tag{ Int iSamp0; BYTEbStepTableIndex; BYTE bReserved; }.DVI_ADPCMBLOCKHEADER;

Creative LabsADPCM Supports compression & decompression in real time Fact Chunk : wFormatTag is WAVE_FORMAT_CREATIVE_ADPCM(0X0200) Typedef struct creative_adpcmwaveformat_tag { WAVEFORMATEXT ewf; WORDwRevision; }CREATIVEHEADPCMWAVEFORMAT; wRevision-Revision of the algorithm

Dolby Labs AC-2 Wave Type Primarily used for music compression The wFormatType of the fact chunk is WAVE_FORMAT_DOLBY_AC2(0X0030) WAVEFORMATEXT STRUCTURE: nAuxBitsCode – Auxillary bits code indicating no. of aux bits per block codeno. of bits/block

THANK YOU