Re: [FFmpeg-devel] Hardware acceleration decoding question
Thanks Timo for the reply , no it's clear to me, and sorry for the question location i made. On Thu, May 23, 2019 at 12:29 PM Timo Rothenpieler wrote: > On 23.05.2019 10:06, Asaf Kave wrote: > > Hello all, > > I am using FFmpeg libarary in my software to do HW decoding for video > > (H.264\H.265) on windows machine. > > My decoding is based on 'hw_decode.c' example, and after i call decode a > > frame i am using AVFrame::data[3] to get the pointer to > > the IDirect3DSurface9 and use it in my video player. > > > > i didn't find any direction\example how to handle this pointer after i > done > > with it, do i need to release it? or the library is responsible for that > ? > > > > Thanks, > > Asaf > > This list is about development of FFmpeg itself, not for developing > against its libraries. You are probably looking for libav-users. > > Regarding your question, the Hardware Buffers are wrapped in the > internal buffers of the frame. So whenever you unref the frame, you > should consider them as freed. > In reality they just going to be re-used though. > > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-devel] Hardware acceleration decoding question
On 23.05.2019 10:06, Asaf Kave wrote: Hello all, I am using FFmpeg libarary in my software to do HW decoding for video (H.264\H.265) on windows machine. My decoding is based on 'hw_decode.c' example, and after i call decode a frame i am using AVFrame::data[3] to get the pointer to the IDirect3DSurface9 and use it in my video player. i didn't find any direction\example how to handle this pointer after i done with it, do i need to release it? or the library is responsible for that ? Thanks, Asaf This list is about development of FFmpeg itself, not for developing against its libraries. You are probably looking for libav-users. Regarding your question, the Hardware Buffers are wrapped in the internal buffers of the frame. So whenever you unref the frame, you should consider them as freed. In reality they just going to be re-used though. smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-devel] Hardware acceleration decoding question
Hello all, I am using FFmpeg libarary in my software to do HW decoding for video (H.264\H.265) on windows machine. My decoding is based on 'hw_decode.c' example, and after i call decode a frame i am using AVFrame::data[3] to get the pointer to the IDirect3DSurface9 and use it in my video player. i didn't find any direction\example how to handle this pointer after i done with it, do i need to release it? or the library is responsible for that ? Thanks, Asaf ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".