[theora] player_example problem

seema coma seema_coma at yahoo.co.in
Mon Jul 24 05:01:37 PDT 2006

  I am currently interested in the sample "player_example.c". Can some body explain how I can change the (width and height) of the video which is to be rendered in the SDL frame. I tried it by changing the width and height of SDL stuff in the open_video() function source. 
  void open_video(){
  if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
     screen = SDL_SetVideoMode(new_width,new_height, 0, SDL_NOFRAME | SDL_RESIZABLE );
    if ( screen == NULL ) {
    yuv_overlay = SDL_CreateYUVOverlay(new_width,new_height,
  if ( yuv_overlay == NULL ) {
  rect.x = 0;
  rect.y = 0;
  rect.w = new_width;
  rect.h = new_height;
    SDL_DisplayYUVOverlay(yuv_overlay, &rect);
  But it didnt bring desired results for me ??All I know is that it uses height and width obtained by the theora decoding mechanism. Can some body explain how I can change it to play videos with desired height and width??
  Thanks in advance,
  Seema Rao

 Find out what India is talking about on Yahoo! Answers India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora/attachments/20060724/e4b60bde/attachment.html

More information about the theora mailing list