Need a guide to implement a codec library using hardware video codec
Hello, I'm porting the mplayer with a hardware video codec in a SoC. It is capable of decoding H.264 and MPEG4. It can also encode frame with such formats. In the libmpcodecs/vd.c you explicitly note a comment - "do not add any new decoders here" for mpcodes_vd_drivers[]. So if I use the libavcodec/h264.c, should I replace that file with my own decoder file or add feature to support a hardware decoder with a define macro? I think that I need to replace the functions, for example - decode_nal_units(), because the hardware decoder requires one frame starting with nal header and output a decoded YUV420 frame. Any comments and guide will be very helpful. Thank you, Kwangwoo Lee
On Mon, 14 Apr 2008 14:04:38 +0900, Lee Kwangwoo wrote:
Hello,
I'm porting the mplayer with a hardware video codec in a SoC.
which project is this for?
It is capable of decoding H.264 and MPEG4. It can also encode frame with such formats.
In the libmpcodecs/vd.c you explicitly note a comment - "do not add any new decoders here" for mpcodes_vd_drivers[]. So if I use the libavcodec/h264.c, should I replace that file with my own decoder file or add feature to support a hardware decoder with a define macro?
this just means that any new codecs should go into libavcodec from ffmpeg. if you are porting mplayer to a new hardware device, you can ignore this warning.
I think that I need to replace the functions, for example - decode_nal_units(), because the hardware decoder requires one frame starting with nal header and output a decoded YUV420 frame.
Any comments and guide will be very helpful. Thank you,
Kwangwoo Lee
good luck -compn
participants (2)
-
Compn -
Lee Kwangwoo