Questions regarding your's decoding process ????????????????

"Amit Bhushan" <[email protected]>
Newsgroups gmane.comp.video.xvid.user
Message-ID <[email protected]>
Hello,

           Thanks a lot for replying my previous questions.

1) The decoder is decoding in INTRA mode only. is this so because the encoder is coding in INTRA mode only. how to change this in the encoder so that it codes in "P" and "B" mode also. Whether the sequence can be hard coded only or can be chosen in run time that is while the encoder is running. if it is hard coded how to the change this configuration of giving the sequence of the type of encoding modes(e.g INTRA or P-INTER or B-INTER) for the frames for encoding.

2) The decoder is skipping some frames if i give an input of large frames say 30 or 40. is that also can be changed. if possible how?

3)In decoder.c, in the function 'read_video_packet_header' for reading the macroblock number it is reading 9 bits only while the MPEG-4 draft says that the number of bits can be upto 14. why is it reading 9 bits only?

5)is that in the function 'read_video_packet_header' it is reading 9 bits only, because it can support only upto CIF format pictures only? is it so then it can have is 512 macroblocks only in a video packet? is it correct?

4)whether a video packet will contain data of one frame only?
 

5)In decoder.c in decoder_create what is param->height or dec->height and param->width or dec->width. what are these values say for a qcif picture whether it will 144 and 176 respectively. 

6) in decoder.c in decoder_create function
  it is given that
mb_width=(dec->width+15)/16
mb_height=(dec->height+15)/16.
why they are adding 15 and divding by 16. what is actually mb_width and mb_height. say for a macro block it will be always 16x16. why is the above calculation done.

7)in the same function 
there is 
x=bound%mb_width
y=bound%mb_width.

what are this x and y used for and what is the above calculation meant for?
 
8)in colorspace.c
 what is the variable stride ,src_stride, y_stride and uv_stride used for?


Regards
Amit Bhushan.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.