Hi.
      I'm using libavcodec in my app to decode each MPEG4 frame received from 
RTP server.
      Decoding works fine, but now i'm in a situation that I got a pointer to 
AVFrame and I dont know how to code DS filter to work with this.

      data in AVFrame has it's data stored as:
      #define FF_COMMON_FRAME and pointers are declared as 

00590     uint8_t *data[4];\00591     int linesize[4];\00592 \00598     uint8_t 
*base[4];\00599 \And as pushSource only accepts unsigned char* buffer; data, I 
don't know how to cast the data in AVFrame to unsigned char*.
      I did this on SDL but in SDL it's a simple process of mapping pointers 
and coverting image to YUV420.

      Does anyone have experience with this? Or can guide me to resources on it?
      I'm approching deadline and this is the last thing to be done.




     


ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )

Www:
www.elma.hr; shop.elma.hr

E-mail:
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to