I finally got it ... The explanation is in h264dsp_template.c (big bunch of macro, yummy !) ________________________________________ De : ffmpeg-devel-boun...@ffmpeg.org <ffmpeg-devel-boun...@ffmpeg.org> de la part de Nicolas Derouineau <nicolas.derouin...@vitec.com> Envoyé : lundi 1 septembre 2014 17:22 À : ffmpeg-devel@ffmpeg.org Objet : [FFmpeg-devel] Filter_mb_edge
Hello, I would like to understand the prototype of this function: filter_mb_edgeh(uint8_t *pix, int stride, const int16_t bS[4], unsigned int qp, int a, int b, H264Context *h, int intra) Let's say I want to check the filtering condition on p0,1,2 and q0,1,2 . How am I supposed to read the pix buffer to get them ? Correct me if I'm wrong: On a 16x16 macroblock, considering abcd are the vertical boundaries, and efgh are the horizontal one: /* Filtering a */ filter_mb_edgev( &img_y[4*0<<pixel_shift], linesize, bS3, qp, a, b, h, 0); /* Filtering b */ filter_mb_edgev( &img_y[4*1<<pixel_shift], linesize, bS3, qp, a, b, h, 0); /* Filtering c */ filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); I guess img_y[0], img_y[stride] gives p0, p1, but how am I supposed to get q0 and q1 ? Regards, Nicolas DEROUINEAU _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel