Re: [FFmpeg-devel] /libavcodec/h264_slice.c: selectively discard MB to be decoded

2016-02-11 Thread Mehdi Hosseini
h no effect on decoding the rest of MBs in a B-Frame? 2) If not possible, is it possible to call ret = ff_h264_decode_mb_cabac(h, sl); but don't execute ff_h264_hl_decode_mb(h, sl) for some specific MBs (again with not effects on other MBs) Thank you. On Thu, Feb 11, 2016 at 1:08 AM, Me

[FFmpeg-devel] /libavcodec/h264_slice.c: selectively discard MB to be decoded

2016-02-11 Thread Mehdi Hosseini
Hi all, I want to discard some MBs of a B-FRAME from decoding. In fact, I want to avoid some special MB to be decoded and instead copy the MB of one of its parents. Note that no B-Frame is reference. The best function for me to discard a list of MB is: (/libavcodec/h264_slice.c) static int decode

[FFmpeg-devel] extracting previous P frame from DPB [h264]

2015-09-17 Thread Mehdi Hosseini
Suppose a sequence in h264 is IBB*P*BBPB*B[*P]BBP How can I extract the previous (in the display order) AV_PICTURE_TYPE_P frame of the current slice from the DPB list? how about extracting both next and previous (in the display order) of a AV_PICTURE_TYPE_B slice? for example, for the input of

[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