[theora-dev] FPGA encode stages flow diagram
digital design
developer.fpga at gmail.com
Thu Mar 24 10:49:23 PDT 2011
Good day!
in Theora spec wrote (page 18, paragraph "DCT Coe cients"):
"...Tokens are grouped in the stream by token index, not by the block they
originate from. This means that for each zig-zag index in turn, the tokens
with
that index from all the coded blocks are coded in coded block order. When
decoding, a current token index is maintained for each coded block. This
index
is advanced by the number of coe cients that are added to the block as each
token is decoded. After fully decoding all the tokens with token index ti ,
the
current token index of every coded block will be ti or greater...."
ok.
for example, my encoder produce only two blocks:
1) in first block (after DCT) i have
AC0=1;
AC(1..62)=0;
AC63=1;
so, after zig-zag + RLE have tokens for
AC0=(0,1);
AC63=(62,1)
1) in first block (after DCT) i have
AC0=1;
AC1=1;
AC(2..62)=0;
AC63=1;
so, after zig-zag + RLE have tokens for
AC0=(0,1);
AC1=(0,1);
AC63=(61,1)
Acording to paragraph "DCT Coe cients", encoder must pack coefficients by
token index (index = zig-zag number of coeff), ok i pack:
for index=0: (0,1);(0,1);
...
..
for index=63: (62,1);(61,1)
what about tokens for index 1-61?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20110324/3cc84431/attachment.htm
More information about the theora-dev
mailing list