• QM-Coder
(JBIG Standard Arithmetic Coding System)
(2) Context
(i) Built-in Context Mode
a) Template Model
• 2 or 3 line 10 pixel template (See Fig9. 1)
(This agrees with the template used with the minimum resolution of JBIG)
NOTE:The coding efficiency of the 3-line template is better than that of the 2-line template by several %.
b) Adaptive Template (AT)
• It is possible to move up to 127pixcels on the coding line.
(The position of ATgiven instruction by the MPU)
Note:It is possible to improve the coding effeciency against the dither image
by the use of AT.
• It is posible to change the position of AT line by line in the middle of coding
and decoding.
Note:It is not possible to change the template at the time when change the
position of the AT pixels.
(ii) Extenal Context Mode
• It is possible to input any context up to 12 bits.
(It is possible to interface with JBIG Progressive Coding and the Arithmatic Coding of JPEG Option Function)
X
A
A
MITSUBISHI ICs (LSI)
M65761FP
QM-CODER
XXX
XXXX?A
XX
XXXXX?A
XXX
Fig. 9. 1 Template (X, A)
(Top : 3line, Bottom : 2line)
XXX
XXXX
X?X
MAX127
X
X
X
MAX127
Fig. 9. 2 Adaptive template (A)
XXX
X?X
X
(3) Typical Prediction
• Agreement with the Typical Prediction of the lowest resolution of JBIG.
The pseudo-pixcel (SLNTP) is geneated by the symbol LNTPwhich shows whether the coding/decoding process agree with the directly
before line.If they agree, the line is not coding/decoding .
This makes it possible to shorten the time of process and rejection of the code data.
SLNTPy =! ( LNTPy + LNTPy-1 ) (y:line number, LNTPy=1; LNTPy-1=1)
(4) Deterministic Prediction
• This LSI is not equipped with the Typical Prediction.However,the DP function is realized when the DP pixels are identified and
eliminated by the extenal circuits during the external context mode.
(5) Coding Data Format
• The Stripe Data Entity (SDE)
(=Stripe coded data with byte stuffing (PSCD) + end marker (SDNORM/ SDRST)) Coding/decoding of one stripe portion os
perfformed.In case of the multi-striped (construct the multi stripes) stripes are activated one at a time.
(6) Marker Code
• The SDE end marker is supported.(SDNORM=02h, SDRST=03h, ABORT=04h)
(During coding the marker code previously set in the register is outputted.During decoding ,the marker code detected by requesting an
interrupt to MPU when the marker is detected is read out od register.)
(7) Rough Estimate of Coding and Decoding Time(T1:M65761FP as a whole,T2;Processing Time of the arithmetic coding section alone)
• The total number of clocks needed for coding and decoding 1 page (stripe)is calculates roughly using the following equations.
T1= (p ∗ Lp) + (9/8 ∗ C) + (α∗Lp)
- S ∗ ((1 - β) ∗ p ∗ Ltp - Lp) [clock]
T2= (p ∗ Lp) + (9/8 ∗ C)
- S ∗ ((p ∗ Ltp) - Lp)) [clock]
p : Number of pixcels/line β : about 0.3
Lp : Number of lines/page
Ltp : Number of TP line /page
C : Number of coded data bits/page
S= 1: TP exists 0: No TP α : about 10
10. FUNCTIONAL DESCRIPTION OF PINS
MITSUBISHI ICs (LSI)
M65761FP
QM-CODER
ClassificationPin nameI/OFunction
RESET
CS
A0-3
BHE
Host Bus I/F
Parallel
Image data
I/F
Serial
Context I/F
WR
RD
D0-15
DMARQ
DMAAK
INTR
BUS16
PD0-31
PDRQ
PDAK
PDRD
PDWR
PRDY
PTIM
PXCK
PXCKO
SVID
RVID
CX0-11
PEUPE
SPIX
RPIX
XCLK
XWAIT
XRDY
XTIM
I
I
I
I
I
I
IO
O
I
O
I
IO
O
I
I
I
O
I
I
O
I
O
I
I
I
O
O
I
O
I
BUF
S
H/W reset signal
Chip select signal
Internal register address select signal
High-order(D8-15)access signal
S
Write strobe signal
S
Read strobe signal
8
I/O data signal (D0-7 used on 8-bit bus)
2
Code data DMA request signal
US
Code data DMA acknowledge signal
2
Interrupt request signal
U
8-bit bus (D0-7)and 16-bit bus(D0-15)function select bus.
U2
Parallel image I/O bus (PD0-15 used on 16-bit bus)
2
Image data DMA request signal
US
Image data DMA acknowledge signal
US
Image data read strobe signal
US
Image data write strobe signal
2
Image data 1-line I/O start ready signal
US
Image data 1-line transfer section signal
US
Image data transfer clock signal
4
Image data transfer sync clock signal
U
Image data input signal
2
Image data output signal
U
Context input (CX0 can be fed back inside LSI) (=PD0-11)
U
PE RAM update enable (learning function ON/OFF) (=PD15)
U
Coded image data input signal (=SVID)
2
Decoded image data output signal (=RVID)
4
Context data transfer clock signal
US
Context data transfer wait signal
2
Context data 1-stripe I/O start ready signal (=PRDY)
US
Context data 1-stripe transfer section signal (=PTIM)
MCLK
Others
Notes:Most of the context I/F signals are used in conjunction with the image data I/F signals.
∗ The input buffers of the input terminals (I and IO) are at TTL level.
• Interrupt enable setting correspondence to each of bits positions of
status register
• Setting the number of pixels on one line (in multiples of 16or32,up to
10240 pixels)
• Setting the number of lines to be coded/decoded(up to 65535 lines)
• Setting the number of coded/decoded lines (up to 65535 lines)
• Buffer for writing coded data/image data/context table RAM data from
MPU into LSI (DMA transferable)(RAM address is automatically
incremented each time data is written.)
• Buffer for reading coded data/image data/context table RAM data from
LSI into MPU (DMA transferable)(RAM address is automatically
incremented each time data is read).
• Setting a terminal marker code in coding (SDNORM/SDRST)
• Reading a marker code in decoding (SDNORM,SDRST,ABORT,others)
• Reduction in coding (1/2 reduction in horizontal and vertical directions,
horizontal OR processing)
D
Notes:When the 8bit bus is used for the data read/write buffer,use Address A only.
Scaling
Incase of the 16-bit buffer,only the word access is possible.
(The byte access is not possible).
R/W
• Magnification during decoding ( × 2 lengthwise and width)
• Select throwing away the leading 1byte of the coded data read when
decoding
• Selecting the typical prediction
• Selection of prohibiting line memory initialization
11. 2 Description of Registers
(1) System Set Up Register (W/R) (address : 0)
d0(HR) : H/W reset (0:Active, 1:Reset state)
To make a H/W reset ,set this bit to 1 then to 0.
Reset initializes the entire LSI including the group of register and Line Memory. However, the context table RAM is not
initialized.
d1-2(MOD) :This sets up the operating modes.
(d2=0,d1=0:coding, d2=1,d1=0:iage data through (Iage data I/F→Host I/F),
d2=0,d1=1:decoding, d2=1,d1=1:Iage data through (Host I/F→Iage data I/F))
d3(CX) :Context select (0:internal context, 1:Image data through)
NOTE:The internal context should be selected when the image data through mode is used.
When initializing or processing R/W of the Context table RAM and coding /decoding,
This bit must be set the same.(Because RAM configration changes depending on internal/external modes.)
d4(BS) :Select data bit swap of the host bus. (0:MSB(d7)first, 1:LSB(d0)first)
d5(BX) :Select data byte swap of the host bus.(0:Lower byte(A)first, 1:Upper byte(B)first)
NOTE:BX is valid only when the host bus is 16 bits.(BUS16=HIGH)
Table 11. 2 The coed data and image data line-up on the Host bus
Bus width
BUS16
1
16bit
0
8bit
d6(PI) :Selects the image data I/O I/F (0:Serial /F, 1:ParallelI/F)
d7(PB) :Selects the bit width of the iamge data bus (0:32bit bus (PD0-31), 1:16bit bus(PD0-15))
Table 11. 3 The image data line-up on the image data parallel bus
p0 is the image data on the left-hand on the screen.
p31is the image data on the right-hand on the screen.
MITSUBISHI ICs (LSI)
M65761FP
QM-CODER
d7(MSB)d0
PB PI BX BS CX MOD HR
b0 is the first coded data on the time
series/the left-hand side image data on the
screen.
b15 is the last coded data on the time
series/the right-hand image data on the
screen.
(2) Parameter Setup Register (W/R) (Address:1)
d7
1) External Context Mode
d6 (LC) :Condition of taking in the input from the external context are selected.
(0:through onput, 1:latch input)
When this bit is set to 1,the CX0 to CX11 of the context input is latched once using the transfer clock.("XCLK")
d7 (C0) : When this bit is set to 1,CX0 is selected.
(0:CX0 external input, 1:CX0 internal feedback)
2) Internal Context Mode
d0-4 (AT<0>-AT<4>) :ATpixel position Lower 5bits. (See Fig.9. 2)
d5 (TM) :Template select (0:3line template, 1:2line template)
d6 -7(AT<5>-AT<6>) :AT pixel position upper 2bits (the 6th and 7th bits)
d7
Example : 3line template,AT=4 :
2line template,AT=48 :
NOTE) The AT pixel position at time of the internal context mode is set up by using all the AT<6:0> (0 to 127)
When the default position (when the AT pixels are not used) is used, At is set to 0.
When the 2-line templsate is used, AT should not be set to 1 to 4. In case of the 3-line template,
AT=1 to 2 is not allowed.
When this bit goes 1,processing(coding/decoding/through)starts.
This bit returns to 0 automatically when processing of the number of set lines is finished during the selection of end of
termination.
And if this JC bit is made 0 and inputting the image data is stopped during the coding porocess,the coding is stopped (flushed)
even if the set lines are not filled.Mreover,if this bit made 0 during decoding and no more coded data is coming in,it is
assumed that the '00'of the coded data came in and the preset lines have been processed.However,in case of the multistriped coding ,processing should not end by making this bit "0" except in case of last stripe.
d2 (RC) :This command starts and stops R/W of Context Table RAM. (1:R/W start, 0:R/W end)
The Context Table RAM is read out or written in by making this bit to "1".
When reading/writing is finished,this bit must have "0" on it.
d3 (JP) :This selectd temporary stop and the end of termination of coding/decoding/through processing.
(1:Temporary stop selected, 0:End of processing selected)
When the process start command d1(JC)is issued by making this JP bit to 1,the processing stops temporarily when the set
number of lines have been processed. Then, if the process satart command d1(JC) is issued,processing restarts.(See 11.4(3))
d7
d3
0 JP RC JC IC
d0
(4) Status Register (R) (address : 2)
d0 (JS) :This register indicates the status of processing in initialization,coding,decoding and through.
(0:Processing in progress(being initialized),1:End of processing)
This JS bit goes to "1"when the initialization is completed as RAM initialization command is issued.
(IC=1) This JS bit goes to "1"when all coded data has been read out during coding in case when the process start command
of the processing end is issued.(JC=1,JP=0) This JS bit goes to "1" when reading all the image data has been completed
during the image data through and decoding. Moreover,this JS bit stays "0" even when the set number of lines have been
processed when the command to start processing the process which has been stopped temporarily has been issued (JC=1,
JP=1). (However,interrupts are issued during the temporary stops.)
d1 (DS) :This is used for read and write ready of coded data.(In case of the through mode,this is used for the image data.)(1:Ready,
0:Reading no possible)
It is possible to do R/W of data by the way of the data write/read buffer when this bit is 1.
d2 (MS) :This detects the marker code during decoding.(0:not detected, 1:detected)
This bit goes to "1" if any marker is detected during decoding.
d3 (IS) :This indicates the status of the interrupt request.(0:No request, 1:Request exists)
d4(SC) :This shows the SC count over error during coding.(0:Normal, 1:There is a SC counter overflow)
NOTE:The SC counter counts the "FF" data bytes which occur duriing coding.Coding continues even when the SC counter
overflows.this means correct coding data will not be outputted.(Coding error)
d5(PS) :processing modes (Stopped temporary /End of trailer)(1:Process temporaryily stopped, 0:End of processing)
This PS bit corresponds to the temporary stop and end of processing of d3 bit (JP) processing of the command register.
STAT_REG :
d7
d5
0 PS SC IS MS DS JS
d0
MITSUBISHI ICs (LSI)
M65761FP
QM-CODER
(5) Interrupt Enable Register (W/R) (address : 3)
IENB_REG :
d0 (JE) :Temporary stop/End of trailer interrupt of initialization/coding/decoding/through .
(0:interrupt mask, 1:interrupt enable)
d1 (DE) :Coded data(Image data)read out/write in ready interrupt.
(0:interrupt mask, 1:interrupt enable)
d2 (ME) :Marker code detection interrupt during decoding. (0:interrupt mask, 1:interrupt enable)
d3 (SE) :SC count over error interrupt during coding.(0:interrupt mask, 1:interrupt enable))
This bit sets to 1 beforehand, it occurs the interruption when the SC counter is overflow during coding. Processing of coding
continues, but the correct coded data is not output.
NOTE:Bits,d0-d3,are for interrupt enable of bits d0-d2 and d4 of the Status Register.
The interrupt request signal(INTR) is asserted when any one of the status bit set in the interrupt enable (D0(JE)generates
interrupts even during the temporary stop),the status goes to "0" due to H/W reset or the INTR signal is negated when the
interrupt mask causes factors for interrupt to be lost. Moreever, the status register will not be cleared by the generation of
interrupts or the R/W of the interrupt enable register.
d7 (MP) :This specified the marker code detection time halt. (0:Continue/restart, 1:temporary halt)
Decoding will stop temporarily when the marker code is detected if this MP bit is preset to "1"during decoding. (it occures
interruption when the marker code is detected, if the ME bit preset to "1".)
if decoding is not completed during the temporary halt,it is possible to reset the line number setup
register. Next, if this MP bit is set to "0",decoding is restarted(Decoding continues to the line number set.)
d7
MP 0 SE ME DE JE
d3
d0
(6) Register used to set the number of pixels (W/R)
(address:4)
(address:5)
d0-7 (PEL_L) :Number of pixels/line is set (Lower byte)
d0-5 (PEL_H):Number of pixels/line is set (Upper byte)
It is possible to set up 8192 pixels maximum when 3-line template is used. It is used to set up 10240 pixels maximum when 2-line
template is used. The number of pixels actually coded (or decoded)should be set when reducing(or expanding).When the image
bus uses 16bits(or 32bits)in parallel I/F,multiples of 16 (or 32) should be set. In case of serial I/F,multiples of 8 should be used.
(7) Line Number Setting Register (W/R)
(Address:6)
(Address:7)
d0-7 (LSET_L):This sets the number of lines to be processed. (Lower bytes)
(1 to 65535, 0 line not used)
d0-7 (LSET_H):This sets the number of lines to be processed. (Upper bytes)
When reducing(magnification)the actual number of lines to be coded (decoded) should be set.The number of lines (relative number of
lines)from the process start command to be issued from now the immediately following temporary stop/end of trailer should be set. This
register should be set to the value specified before the process star command is issued. Moreover,this register can be rewritten during
processing as long as the following conditions are met:
• If the maximum value, (65535), is set before the process start command is issued,it can be reset once during processing.
• If a value other than maximum value (65535) is set before the process start command is issued and if resetting becomes necessary
during processing,the maximum value (65535) has to be reset once and desired value should the reset.
PEL_REG_L :
PEL_REG_H :
LSET_REG_L :
LSET_REG_H :
d7
PEL_L
d7d0
d7
d5
PEL_H0
LSET_L
LSET_H
d0
d0
Loading...
+ 20 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.