From: Lynne <dev@lynne.ee> To: ffmpeg-devel@ffmpeg.org Subject: Re: [FFmpeg-devel] [PATCH] avcodec/h264bsd_dec: add h264dec base on h264bsd Date: Wed, 16 Apr 2025 08:43:37 +0200 Message-ID: <4e73ac08-6241-4ecb-9e13-bdca92c0fffe@lynne.ee> (raw) In-Reply-To: <20250416061221.1809666-1-hiccupzhu@gmail.com> [-- Attachment #1.1.1.1: Type: text/plain, Size: 1619 bytes --] On 16/04/2025 08:12, Shiqi Zhu wrote: > h264bsd url https://github.com/oneam/h264bsd > ./configure --enable-decoder="h264_bsd" --extra-cflags="-I<path>/h264bsd/src" --extra-ldflags="-L<path>/h264bsd/posix/lib" --extra-libs="-lh264bsd" > Test > ./ffmpeg -y -codec:v h264_bsd -i <path>/h264bsd/test/test_640x360.h264 ./test_640x360.yuv Yes, but we already have the best and fastest H264 decoder out there, and (for no more than a year or so, until its patents expire and its made redundant), an libopenh264 backend. > Signed-off-by: Shiqi Zhu <hiccupzhu@gmail.com> > --- > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 1 + > libavcodec/h264bsd_dec.c | 183 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 185 insertions(+) > create mode 100644 libavcodec/h264bsd_dec.c > > + > +const FFCodec ff_h264_bsd_decoder = { > + .p.name = "h264_bsd", > + CODEC_LONG_NAME("h264bsd video decoder for ffmpeg"), > + .p.type = AVMEDIA_TYPE_VIDEO, > + .p.id = AV_CODEC_ID_H264, > + .priv_data_size = sizeof(DecodeContext), > + .init = h264_bsd_init_decoder, > + .close = h264_bsd_close_decoder, > + FF_CODEC_DECODE_CB(h264_bsd_decode_frame), > + .flush = h264_bsd_flush, > + .p.priv_class = &h264_bsd_dec_class, > + .bsfs = "h264_mp4toannexb", > + .p.capabilities = AV_CODEC_CAP_DELAY, > + .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, > + .p.wrapper_name = "ff_h264_bsd_decoder", > + .caps_internal = FF_CODEC_CAP_EXPORTS_CROPPING, > +}; > \ No newline at end of file ^^ [-- Attachment #1.1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 637 bytes --] [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 236 bytes --] [-- Attachment #2: Type: text/plain, Size: 251 bytes --] _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2025-04-16 6:43 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-04-16 6:12 Shiqi Zhu 2025-04-16 6:43 ` Lynne [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4e73ac08-6241-4ecb-9e13-bdca92c0fffe@lynne.ee \ --to=dev@lynne.ee \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git