Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Y4M header C

Name: Anonymous 2012-08-13 12:33

Hello /prog,
I need help parsing the header of a y4m file.
I took a look at the y4m.c file from the link below and i cannot understand what are all these 4 inputs for in the open_file func. The task is just to read the header.
Thanks in advance.

http://www.v.8mv.net/2010/mar/x264/input/y4m.c

Name: Anonymous 2012-08-13 12:40

One is filename, the three others are handlers and since none of them are declared const I assume they are output handlers.

So you should just put some of the required structures on the stack and then pass the address on to the function.

Name: Anonymous 2012-08-13 13:04

But from which one do i get the whole header?

Name: Anonymous 2012-08-13 15:41

>>3
Read the documentation you fucking mouthbreather.

Name: Anonymous 2012-08-13 16:09

header is defined on line 42
it gets set in lines 63 to 77

Don't change these.
Name: Email:
Entire Thread Thread List