Public feed #381143

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-03-04 17:37 UTC
rendered paste body
  /* HACK FOR COREAVC */
    printf("INIT H264\n");
    xine_bmiheader       bih;
    buf_element_t *buf = this->video_fifo->buffer_pool_alloc (this->video_fifo);
    buf->decoder_flags = BUF_FLAG_STDHEADER;
    
    memset(&bih, 0x00, sizeof(bih));
    bih.biWidth = 1920;
    bih.biHeight = 1080;
    bih.biPlanes = 1;
    bih.biBitCount = 24;
    bih.biCompression = 0x31435641; //AVC1
    bih.biSizeImage = 0;
    bih.biXPelsPerMeter=10000;
    bih.biYPelsPerMeter=10000;
    bih.biClrUsed=0;
    bih.biClrImportant=0;
    bih.biSize = sizeof(bih);
    memcpy(buf->content, &bih, sizeof(bih));
    buf->size = sizeof(bih);
    buf->type = BUF_VIDEO_H264;
    this->video_fifo->put (this->video_fifo, buf);