Re: How to encode with frame offset ?

"Timothy B. Terriberry" <[email protected]> Sat, 17 Apr 2010 21:01:36 -0400
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
salsaman <[email protected]> wrote:

> Hi all,
> looking at the theora spec, it says that it is possible to encode a video
> with a frame offset for the actual image. How is it possible to do that ? I
> don't see any option for it in the encoder_example.

encoder_example does not provide user-visible options to select the  
frame offset, but in the (1.0 and later) libtheora API, you can do  
this by specifying the pic_x, pic_y, pic_width, and pic_height fields  
in the th_info struct when you create the encoder. encoder_example  
actually uses these fields to center the picture in the frame when the  
picture is not a multiple of 16 (since the frame must be a multiple of  
16).