search for: y_width

Displaying 13 results from an estimated 13 matches for "y_width".

Did you mean: _width
2004 Aug 02
1
Theroa Guess Confirmation
...ollowing guesses? 1) Before compressing with Theora, I must unpack my YUY2 data into three separate arrays (Y, U, and V respectively), and record in a "yuv_buffer" structure. 2) "yuv_buffer.y_stride" is this the number of bytes in one row of Y data. In other words, y_stride*8/y_width = num bits per Y component 3) "theora_encode_header" must be called exactly once, and its output must be the first packet received by a Theora decoder 4) "theora_encode_comment" need never be called, but can be called at any time, and its packet can be inserted anwhere 5) &qu...
2004 Dec 20
2
frame_height, height, y_height etc...
...re inside the frame. So now i'm completely confused. Could someone please clarify if the following is correct... theorainfo.frame_width = width of the inner picture region theorainfo.width = width of the outer frame yuvbuffer.y_stride = theorainfo.width = width of the outer frame yuvbuffer.y_width = theorainfo.frame_width = width of the inner picture region ??? Cheers, Zen.
2007 Aug 31
1
yuv_buffer strides
Hi, is there any place where the possible values for the strides in the yuv_buffer structure is specified? or just in the source code? ;) I could compress a video with, lets say, yuvbuf.y_stride = yuvbuf.y_width, so the yuvbuf.y[0] really started in the start of the y channel data. I watched the video in several players, and everythings' ok. But, when programming the decompress process, the strides were negative, and, so, yuvbuf.y[0] indicated the end of the y channel data. Is this true: positive stri...
2005 Mar 14
1
question from beginner (YCbCr to RGB)
Hello, i'm sorry for my English is not good. I need help with convert yuv_buffer data (YCbCr) to RGB without SDL. I write: BYTE *frame=new BYTE[YUV_BUFFER.y_height*YUV_BUFFER.y_width*4]; for(int cc=0; cc<YUV_BUFFER.y_height*YUV_BUFFER.y_width; cc++) { frame[cc*4+0]=YUV_BUFFER.y[cc]+1.371*(YUV_BUFFER.v[cc]-128); frame[cc*4+1]=YUV_BUFFER.y[cc]-0.698*(YUV_BUFFER.v[cc]-128)-0.336*(YUV_BUFFER.u[cc]-128); frame[cc*4...
2006 Aug 20
1
Simple RGB->YUV Stuff...
...ning the from-RGB-to-YUV values performed per-pixel. This is where I get hung up. To pass the YUV data to the various encode functions I have to create a yuv_buffer struct and set the widths, heights, and strides correctly. What I've been trying to use is: yuv_buffer yuv; yuv.y_width = Width; yuv.y_height = Height; yuv.y_stride = Width; yuv.uv_width = Width; yuv.uv_height = Height; yuv.uv_stride = Width; yuv.y = YDATA; yuv.u = UDATA; yuv.v = VDATA; There isn't a lot of documentatio...
2004 Dec 08
3
yuv2rgb
hi all, i'm trying to code a tool to get some images from a ogg/theora file .... so basically i need to get a frame and convert to rgb ... and here is my question (sorry, i'm newbe here) ... how to convert a yuv_buffer to a rgb matrix ? i tryied diferent ways but my mistakes are bassically cause i don't understant how yuv_buffer structure works ... anybody can help? thanks a lot.
2004 Jun 29
6
Encoding theora...
Just trying to debug my theora encoder... just wondering if someone could give me some insight on a few thigns... In the yuv_buffer i'm sending in... i am just setting y_stride = y_width = videoWidth uv_stride = videoWidth/2 y_height = videoHeight uv_height = videoHeight/2 Making the y buffer (width*height) and each of u and v (width*height/4) Am i correct in doing this ? I knwo stride needn't equal width... but from the videos width, can i just make them equal ? Any restrict...
2008 Jan 15
0
Re: YUV to RGB
...> RGB). Intangir: "the code i just posted is actually from a game engine..." Where is the code? Can't see it in the email. Regards. Mike Melanson <mike@multimedia.cx> wrote: wesley kiriinya wrote: > Instead of storing YUV in the stream I would store RGB values. The > y_width and uv_width would be the same. I am only doing this so that I > can play the files in my video game i.e. the ogg files won't be intended > for use by another application that plays ogg files because the > application would not know that the YUV is actually RGB. Can that work? Are you...
2005 Feb 09
1
Trying to do windows encoding dll
...ti.keyframe_mindistance=8; ti.noise_sensitivity=1; theora_encode_init(&enc_state,&ti); theora_info_clear(&ti); } __declspec (dllexport) encode(signed char *yuvframe, ogg_page *op) { while (ogg_stream_pageout(&enc_stream, op) == 0) { yuv_buffer yuv_enc; yuv_enc.y_width=enc_width; yuv_enc.y_height=enc_height; yuv_enc.y_stride=enc_width; yuv_enc.uv_width=enc_width/2; yuv_enc.uv_height=enc_height/2; yuv_enc.uv_stride=enc_width/2; yuv_enc.y=yuvframe; yuv_enc.u=yuvframe+enc_width*enc_height; yuv_enc.v=yuvframe+enc_width*enc_height*5/4...
2004 Apr 01
1
YUV Format
...tx9_c/directx/htm/yuvvideosubtypes.asp Heres the list i haev to work from... could someone tell me which of these it is ? Best i can tell it's YUV12 ? So can someone confirm the following... each component is 8 bits. I have an array of y data. and it is an array [0..y_height] of arrays [0..y_width] ie... an array of horizontal lines ? And the uv data is an array [0..uv_height] of arrays [0..uv_width*2] where data goes UVUVUVUVUVUV........ (width uv_width*2 or uv_width lots of UV) UVUV..... . . . (uv_height lines) Is this correct ? Or is the actual byte width of the UV lines actually uv_w...
2005 Oct 05
1
Simple encodig sample...
...deo_hzd = 1; int video_an = 1; int video_ad = 1; int video_r = 320000; int video_q = 16; int frame_counter = 250; signed char *yuvframe; int fetch_video_page( ogg_page *videopage, ogg_stream_state *to, theora_state *td ) { yuv_buffer yuv; ogg_packet op; yuv.y_width = video_x; yuv.y_height = video_y; yuv.y_stride = video_x; yuv.uv_width = video_x / 2; yuv.uv_height = video_y / 2; yuv.uv_stride = video_x / 2; yuv.y = yuvframe; yuv.u = yuvframe + video_x * video_y; yuv.v = yuvframe + video_x * video_y * 5 / 4; /* is there a v...
2005 Sep 27
4
problems understanding yuv_buffer format
hi folks! once again i am trying to decode a yuv_buffer to a 24 bit RGB buffer. last time nobody seemed willing to tell me how to do this, so i am trying again. i try to make my questions more simple. what i need to know is: how many bytes are in each y, u, v array? what for are these strides? what exactly is a "plane" in a frame, and what does it do? what i want to achieve is
2006 Oct 06
0
V4L + Theora small app...
...iVideoX - FRAME_WIDTH ) / 2 ) & ~1; iFrameOffsetY = ( ( iVideoY - FRAME_HEIGHT ) / 2 ) & ~1; ucYUVframe = malloc( iVideoX * iVideoY * 3 / 2 ); if( ucYUVframe == NULL ) { fprintf( stderr, "### malloc() error \n" ); return -1; } tYUVbuffer.y_width = iVideoX; tYUVbuffer.y_height = iVideoY; tYUVbuffer.y_stride = iVideoX; tYUVbuffer.uv_width = iVideoX / 2; tYUVbuffer.uv_height = iVideoY / 2; tYUVbuffer.uv_stride = iVideoX / 2; tYUVbuffer.y = ucYUVframe; tYUVbuffer.u = ucYUVframe + iVideoX * iVideoY; tYUVbuffe...