Displaying 20 results from an estimated 23 matches for "yuv_buffer".
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[...
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 decompr...
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 d...
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.
ll-.
2007 May 25
2
Cleaning app
Hello all,
When I'm doing something like:
yuv_buffer yuv;
theora_decode_YUVout(&td,&yuv);
I'm guessing a bunch of stuff gets newed/malloced for yuv.y, yuv.u, and
yuv.u.
Who is responsible for deleting/freeing that stuff?
Cheers,
Kos.
2006 Aug 28
2
add theora_user_yuv_out(theora_state *, yuv_buffer *) to libtheora?
Hi,
I'd like to add user-allocated frame memory to theora via a
theora_user_yuv_out callback. An additional helper function
(theora_user_buffer_is_freeable) would also be required.
With these two functions, user applications could submit memory
buffers directly to libtheora, which would reduce the number of frame
copies in a typical application from two per frame to one per frame.
I've
2006 Aug 20
1
Simple RGB->YUV Stuff...
...nd online; I think I have this part down fairly
well. Eventually, what I end up with are three buffers, each one as
large as the other and containing 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_strid...
2004 Aug 02
1
Theroa Guess Confirmation
...#39;m scrounging through headers and
example code, and doing a whole lot of guessing. In the meantime,
could you either confirm or deny the following 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 decode...
2006 Jun 26
1
libtheora API documentation
Hi,
The documentation for the libtheora API is a little bit sparse - for
example, information about whether yuv_buffer structs should be
managed by the user or the library is missing. From talking to derf,
and from what I can see in the example files, the user allocates the
struct but not the luma/chroma buffers on decode; and the user
allocates both the struct and the luma/chroma buffers on encode.
I've made...
2007 May 03
1
converting YUV to RGB
Hello all,
I'd like to convert the theora yuv_buffer to RGB that I can render onto a
texture.
Googling around, there are a tone of different formulae to do so.
There is this (with lots of corrections and amendments further down the
page):
http://www.fourcc.org/fccyvrgb.php <http://www.fourcc.org/fccyvrgb.php>
and there is the MSDN stuff th...
2004 Jul 02
4
Encoding paramaters...
I've got my encoder working now... and i put a proeprty page interface to
allow the user to set a few encoding paramters to start off with... but
changing the paramters doesn't seem to make barely any difference...
These are the defaults i'm using...
mTheoraInfo.target_bitrate=400000;
mTheoraInfo.quality=30;
mTheoraInfo.dropframes_p=0;
mTheoraInfo.quick_p=1;
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...
2005 Feb 09
1
Trying to do windows encoding dll
...ti.keyframe_auto_threshold=80;
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=yuv...
2004 Apr 01
1
YUV Format
I posted this the other day... but it didn't get delivered...
-------------------------------------------------------------------
I'm getting stuck into a theora decoder for directshow... i was just wondering if someone could give me some info.
What output format does theora use ?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/YUVFormats.asp
2008 Jun 18
2
Simple decoder (keyframe only) implementation ?
Hello everybody !
I am working on a php class to enable, on the server-side, to extract useful data from Ogg theora videos. http://opensource.grisambre.net/ogg .
I need to have it extract a thumbnail picture from a video (much like dailymotion or youtube). Right now, I am doing it using the ffmpeg-php extension (for picture extraction only), but the problem is that this module is available on
2007 Oct 22
2
Building Libtheora Beta 2 in Ms Visual C++ 2005 problems
...lease seriously consider this before defining TH_REALLY_NO_ASSEMBLY
to disable this message and compile without inline assembly.
Thank you!
So as you may expect I immediately defined TH_REALLY_NO_ASSEMBLY, and
managed to get it to compile. The problem is when I try to decode a
Theora frame the yuv_buffer output seems completely uninitialised,
despite the decoder function returning the success flag.
The application worked fine with the alpha I was using before. When I
built the alpha libtheora build however I never got the above error.
So I suspect that the error is right and I don't want to co...
2007 Oct 22
2
Building Libtheora Beta 2 in Ms Visual C++ 2005 problems
...lease seriously consider this before defining TH_REALLY_NO_ASSEMBLY
to disable this message and compile without inline assembly.
Thank you!
So as you may expect I immediately defined TH_REALLY_NO_ASSEMBLY, and
managed to get it to compile. The problem is when I try to decode a
Theora frame the yuv_buffer output seems completely uninitialised,
despite the decoder function returning the success flag.
The application worked fine with the alpha I was using before. When I
built the alpha libtheora build however I never got the above error.
So I suspect that the error is right and I don't want to co...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...oggPacket;
ogg_stream_state vorbisStreamState;
ogg_stream_state theoraStreamState;
theora_info theoraInfo;
theora_comment theoraComment;
theora_state theoraState;
int theoraPageCount;
yuv_buffer yuvBuffer;
std::ifstream videoStream;
void rewind ();
void initMovie ();
void exitMovie ();
int buffer_data ();
int queue_page (ogg_page...
2005 Oct 05
1
Simple encodig sample...
..._offset = 0;
int video_hzn = 25;
int video_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 +...
2005 Nov 11
0
[PATCH] icecast video preview 2
...#include <png.h>
-
typedef struct _theora_codec_tag
{
theora_info ti;
@@ -40,9 +41,14 @@
int granule_shift;
ogg_int64_t last_iframe;
ogg_int64_t prev_granulepos;
+#ifdef WITH_PNG
+ theora_state td;
+ video_preview_t *video_preview;
+ yuv_buffer yuv;
+ int frame_count;
+#endif
} theora_codec_t;
-
static void theora_codec_free (ogg_state_t *ogg_info, ogg_codec_t *codec)
{
theora_codec_t *theora = codec->specific;
@@ -50,8 +56,17 @@
DEBUG0 ("freeing theora codec");
stats_event (ogg_info->mount...