Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH v2 0/3] Add OpenHarmony hardware codec wrapper
@ 2025-07-06  8:05 Zhao Zhili
  2025-07-16 14:07 ` Zhao Zhili
  0 siblings, 1 reply; 4+ messages in thread
From: Zhao Zhili @ 2025-07-06  8:05 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Zhao Zhili

From: Zhao Zhili <zhilizhao@tencent.com>

v2:
1. Add encoder.
2. Trial refactor of decoder.

Zhao Zhili (3):
  avutil/hwcontext: Add ohcodec device and pixel format
  avcodec/ohdec: Add h264/hevc OpenHarmony decoders
  avcodec/ohenc: Add h264/hevc OpenHarmony encoders

 Changelog                      |   1 +
 configure                      |  12 +
 doc/APIchanges                 |   6 +
 libavcodec/Makefile            |   5 +
 libavcodec/allcodecs.c         |   4 +
 libavcodec/ohcodec.c           |  79 ++++
 libavcodec/ohcodec.h           |  57 +++
 libavcodec/ohdec.c             | 771 +++++++++++++++++++++++++++++++++
 libavcodec/ohenc.c             | 695 +++++++++++++++++++++++++++++
 libavcodec/version.h           |   2 +-
 libavutil/Makefile             |   2 +
 libavutil/hwcontext.c          |   4 +
 libavutil/hwcontext.h          |   2 +
 libavutil/hwcontext_internal.h |   1 +
 libavutil/hwcontext_oh.c       |  47 ++
 libavutil/hwcontext_oh.h       |  34 ++
 libavutil/pixdesc.c            |   4 +
 libavutil/pixfmt.h             |   2 +
 libavutil/version.h            |   4 +-
 19 files changed, 1729 insertions(+), 3 deletions(-)
 create mode 100644 libavcodec/ohcodec.c
 create mode 100644 libavcodec/ohcodec.h
 create mode 100644 libavcodec/ohdec.c
 create mode 100644 libavcodec/ohenc.c
 create mode 100644 libavutil/hwcontext_oh.c
 create mode 100644 libavutil/hwcontext_oh.h

-- 
2.46.0

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH v2 0/3] Add OpenHarmony hardware codec wrapper
  2025-07-06  8:05 [FFmpeg-devel] [PATCH v2 0/3] Add OpenHarmony hardware codec wrapper Zhao Zhili
@ 2025-07-16 14:07 ` Zhao Zhili
  2025-07-16 14:11   ` Kieran Kunhya via ffmpeg-devel
  0 siblings, 1 reply; 4+ messages in thread
From: Zhao Zhili @ 2025-07-16 14:07 UTC (permalink / raw)
  To: FFmpeg development discussions and patches



> On Jul 6, 2025, at 16:05, Zhao Zhili <quinkblack-at-foxmail.com@ffmpeg.org> wrote:
> 
> From: Zhao Zhili <zhilizhao@tencent.com>
> 
> v2:
> 1. Add encoder.
> 2. Trial refactor of decoder.
> 
> Zhao Zhili (3):
>  avutil/hwcontext: Add ohcodec device and pixel format
>  avcodec/ohdec: Add h264/hevc OpenHarmony decoders
>  avcodec/ohenc: Add h264/hevc OpenHarmony encoders
> 
> Changelog                      |   1 +
> configure                      |  12 +
> doc/APIchanges                 |   6 +
> libavcodec/Makefile            |   5 +
> libavcodec/allcodecs.c         |   4 +
> libavcodec/ohcodec.c           |  79 ++++
> libavcodec/ohcodec.h           |  57 +++
> libavcodec/ohdec.c             | 771 +++++++++++++++++++++++++++++++++
> libavcodec/ohenc.c             | 695 +++++++++++++++++++++++++++++
> libavcodec/version.h           |   2 +-
> libavutil/Makefile             |   2 +
> libavutil/hwcontext.c          |   4 +
> libavutil/hwcontext.h          |   2 +
> libavutil/hwcontext_internal.h |   1 +
> libavutil/hwcontext_oh.c       |  47 ++
> libavutil/hwcontext_oh.h       |  34 ++
> libavutil/pixdesc.c            |   4 +
> libavutil/pixfmt.h             |   2 +
> libavutil/version.h            |   4 +-
> 19 files changed, 1729 insertions(+), 3 deletions(-)
> create mode 100644 libavcodec/ohcodec.c
> create mode 100644 libavcodec/ohcodec.h
> create mode 100644 libavcodec/ohdec.c
> create mode 100644 libavcodec/ohenc.c
> create mode 100644 libavutil/hwcontext_oh.c
> create mode 100644 libavutil/hwcontext_oh.h

I plan to merge the patch this week. Any suggestions?

> 
> -- 
> 2.46.0
> 
> _______________________________________________
> 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".

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH v2 0/3] Add OpenHarmony hardware codec wrapper
  2025-07-16 14:07 ` Zhao Zhili
@ 2025-07-16 14:11   ` Kieran Kunhya via ffmpeg-devel
  2025-07-16 14:26     ` Zhao Zhili
  0 siblings, 1 reply; 4+ messages in thread
From: Kieran Kunhya via ffmpeg-devel @ 2025-07-16 14:11 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Kieran Kunhya

On Wed, Jul 16, 2025 at 3:08 PM Zhao Zhili <quinkblack@foxmail.com> wrote:
>
>
>
> > On Jul 6, 2025, at 16:05, Zhao Zhili <quinkblack-at-foxmail.com@ffmpeg.org> wrote:
> >
> > From: Zhao Zhili <zhilizhao@tencent.com>
> >
> > v2:
> > 1. Add encoder.
> > 2. Trial refactor of decoder.
> >
> > Zhao Zhili (3):
> >  avutil/hwcontext: Add ohcodec device and pixel format
> >  avcodec/ohdec: Add h264/hevc OpenHarmony decoders
> >  avcodec/ohenc: Add h264/hevc OpenHarmony encoders
> >
> > Changelog                      |   1 +
> > configure                      |  12 +
> > doc/APIchanges                 |   6 +
> > libavcodec/Makefile            |   5 +
> > libavcodec/allcodecs.c         |   4 +
> > libavcodec/ohcodec.c           |  79 ++++
> > libavcodec/ohcodec.h           |  57 +++
> > libavcodec/ohdec.c             | 771 +++++++++++++++++++++++++++++++++
> > libavcodec/ohenc.c             | 695 +++++++++++++++++++++++++++++
> > libavcodec/version.h           |   2 +-
> > libavutil/Makefile             |   2 +
> > libavutil/hwcontext.c          |   4 +
> > libavutil/hwcontext.h          |   2 +
> > libavutil/hwcontext_internal.h |   1 +
> > libavutil/hwcontext_oh.c       |  47 ++
> > libavutil/hwcontext_oh.h       |  34 ++
> > libavutil/pixdesc.c            |   4 +
> > libavutil/pixfmt.h             |   2 +
> > libavutil/version.h            |   4 +-
> > 19 files changed, 1729 insertions(+), 3 deletions(-)
> > create mode 100644 libavcodec/ohcodec.c
> > create mode 100644 libavcodec/ohcodec.h
> > create mode 100644 libavcodec/ohdec.c
> > create mode 100644 libavcodec/ohenc.c
> > create mode 100644 libavutil/hwcontext_oh.c
> > create mode 100644 libavutil/hwcontext_oh.h
>
> I plan to merge the patch this week. Any suggestions?
>
> >

Does this hardware decoder work on a real device?

Kieran
_______________________________________________
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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH v2 0/3] Add OpenHarmony hardware codec wrapper
  2025-07-16 14:11   ` Kieran Kunhya via ffmpeg-devel
@ 2025-07-16 14:26     ` Zhao Zhili
  0 siblings, 0 replies; 4+ messages in thread
From: Zhao Zhili @ 2025-07-16 14:26 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Kieran Kunhya



> On Jul 16, 2025, at 22:11, Kieran Kunhya via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> wrote:
> 
> On Wed, Jul 16, 2025 at 3:08 PM Zhao Zhili <quinkblack@foxmail.com> wrote:
>> 
>> 
>> 
>>> On Jul 6, 2025, at 16:05, Zhao Zhili <quinkblack-at-foxmail.com@ffmpeg.org> wrote:
>>> 
>>> From: Zhao Zhili <zhilizhao@tencent.com>
>>> 
>>> v2:
>>> 1. Add encoder.
>>> 2. Trial refactor of decoder.
>>> 
>>> Zhao Zhili (3):
>>> avutil/hwcontext: Add ohcodec device and pixel format
>>> avcodec/ohdec: Add h264/hevc OpenHarmony decoders
>>> avcodec/ohenc: Add h264/hevc OpenHarmony encoders
>>> 
>>> Changelog                      |   1 +
>>> configure                      |  12 +
>>> doc/APIchanges                 |   6 +
>>> libavcodec/Makefile            |   5 +
>>> libavcodec/allcodecs.c         |   4 +
>>> libavcodec/ohcodec.c           |  79 ++++
>>> libavcodec/ohcodec.h           |  57 +++
>>> libavcodec/ohdec.c             | 771 +++++++++++++++++++++++++++++++++
>>> libavcodec/ohenc.c             | 695 +++++++++++++++++++++++++++++
>>> libavcodec/version.h           |   2 +-
>>> libavutil/Makefile             |   2 +
>>> libavutil/hwcontext.c          |   4 +
>>> libavutil/hwcontext.h          |   2 +
>>> libavutil/hwcontext_internal.h |   1 +
>>> libavutil/hwcontext_oh.c       |  47 ++
>>> libavutil/hwcontext_oh.h       |  34 ++
>>> libavutil/pixdesc.c            |   4 +
>>> libavutil/pixfmt.h             |   2 +
>>> libavutil/version.h            |   4 +-
>>> 19 files changed, 1729 insertions(+), 3 deletions(-)
>>> create mode 100644 libavcodec/ohcodec.c
>>> create mode 100644 libavcodec/ohcodec.h
>>> create mode 100644 libavcodec/ohdec.c
>>> create mode 100644 libavcodec/ohenc.c
>>> create mode 100644 libavutil/hwcontext_oh.c
>>> create mode 100644 libavutil/hwcontext_oh.h
>> 
>> I plan to merge the patch this week. Any suggestions?
>> 
>>> 
> 
> Does this hardware decoder work on a real device?

Of course. I have tested on Huawei mate 60. Here are some device list (in Chinese):

https://consumer.huawei.com/cn/support/harmonyos/models-next/

> 
> Kieran
> _______________________________________________
> 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".

_______________________________________________
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".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-16 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-06  8:05 [FFmpeg-devel] [PATCH v2 0/3] Add OpenHarmony hardware codec wrapper Zhao Zhili
2025-07-16 14:07 ` Zhao Zhili
2025-07-16 14:11   ` Kieran Kunhya via ffmpeg-devel
2025-07-16 14:26     ` Zhao Zhili

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