Re: [FFmpeg-devel] extract and change pixels of AVFrame

2015-09-03 Thread Paul B Mahol
Dana 3. 9. 2015. 03:13 osoba "Mehdi Hosseini" napisala je: > > Hello, > > I want to do some pixel operations on a decoded frame (AVFrame structure) > in function "ff_thread_decode_frame" of the file > "ffmpeg/libavcodec/pthread.c". > > For example. I wrote a simple code to get y,u,v of the pixel(0

[FFmpeg-devel] extract and change pixels of AVFrame

2015-09-02 Thread Mehdi Hosseini
Hello, I want to do some pixel operations on a decoded frame (AVFrame structure) in function "ff_thread_decode_frame" of the file "ffmpeg/libavcodec/pthread.c". For example. I wrote a simple code to get y,u,v of the pixel(0,0) : int x= 0; int y= 0; unsigned char y = picture->data[0][picture->li