b += 4;
}
- // format->yuv = Z_Malloc(cls.capturevideo.width * cls.capturevideo.height + ((cls.capturevideo.width + 1) / 2) * ((cls.capturevideo.height + 1) / 2));
-
if((y & 1) == 0)
{
for(b = cls.capturevideo.outbuffer + (h-2-y)*w*4, x = 0; x < (w+1)/2; ++x)
int *map = mapping[bound(1, cls.capturevideo.soundchannels, 8) - 1];
size_t bufpos = 0;
+ // FIXME encode the rest of the buffer at the end of the video, filled with zeroes!
while(bufpos < length)
{
// fill up buffer
}
// TODO error checking in this function
+// TODO parameters in this function
void SCR_CaptureVideo_Lavc_BeginVideo(void)
{
cls.capturevideo.format = CAPTUREVIDEOFORMAT_LAVC;
av_write_header(format->avf);
format->buffer = Z_Malloc(format->bufsize);
-
format->yuv = Z_Malloc(cls.capturevideo.width * cls.capturevideo.height + ((cls.capturevideo.width + 1) / 2) * ((cls.capturevideo.height + 1) / 2) * 2);
}
}