On Fri, 24 Oct 2008 11:11:00 -0400, Azerf Eeeeeeeee <[EMAIL PROTECTED]>  
wrote:
> The problem is that I do not find the source of the pointed function
> encode (avctx, buf, buf_size, (void *)pict) in all solution neither in  
> net.
>
> Can you indicate me where I can find it 's source and if I am making  
> some mistakes.

avctx->codec->encode is a function pointer.  Each codec decides what  
function to assign to this pointer.  The function used depends on the  
codec, for example at the bottom of libavcodec/h261enc.c

   AVCodec h261_encoder = {
     "h261",
     CODEC_TYPE_VIDEO,
     CODEC_ID_H261,
     sizeof(H261Context),
     MPV_encode_init,
     MPV_encode_picture,
     MPV_encode_end,
     .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
   };

It uses the encoder function "MPV_encode_picture"

libavcodec/mpegvideo_enc.c:1205
   int MPV_encode_picture(AVCodecContext *avctx,
                        unsigned char *buf, int buf_size, void *data)
   {

Your debugger *should* be able to step into that function, saving you the  
trouble of digging through the sourcecode.


-- 
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[EMAIL PROTECTED]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to