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 0/2] avfilter/vf_vpp_qsv: apply 3D LUT from file
@ 2023-09-23 15:36 Chen Yufei
  2023-09-23 15:36 ` [FFmpeg-devel] [PATCH 1/2] avfilter/vf_lut3d: expose 3D LUT file parse function Chen Yufei
  2023-09-23 15:36 ` [FFmpeg-devel] [PATCH 2/2] avfilter/vf_vpp_qsv: apply 3D LUT from file Chen Yufei
  0 siblings, 2 replies; 7+ messages in thread
From: Chen Yufei @ 2023-09-23 15:36 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Chen Yufei

First time modifing FFmpeg code and sending patch, please bear with me for
mistakes.

Following patches add support for applying 3D LUT from file using oneVPL VPP.

Limitation:
The new feature is only available when `CONFIG_VAAPI` is enabled, because of
my limited test environemnt and little experience with video processing.

1st patch moves some 3D LUT parse function from `vf_lut3d.c` to `lut3d.c` to
expose them for use in `vf_vpp_qsv.c`. I try to move only code that deals with
3D LUT table.

2nd patch applies 3D LUT from file in `vf_vpp_qsv.c`. I followed oneVPL's
document and sample code, but there are still things that are not clear to me.
The LUT value type used in VPP is `mfxU16` instead of float, I choose to
multiply float value with 65535 to convert to `mfxU16` and the result seems correct.

Test is done on an Arch Linux system (kernel 6.5.3) with Intel Arc A380 on a
Thunderbolt 3 GPU dock. I compared transcoding output with `vf_lut3d` and don't
see noticeable difference with my eyes.

`make fate` passes without error.

Chen Yufei (2):
  avfilter/vf_lut3d: expose 3D LUT file parse function.
  avfilter/vf_vpp_qsv: apply 3D LUT from file.

 libavfilter/Makefile     |   8 +-
 libavfilter/lut3d.c      | 669 +++++++++++++++++++++++++++++++++++++++
 libavfilter/lut3d.h      |  13 +
 libavfilter/vf_lut3d.c   | 590 +---------------------------------
 libavfilter/vf_vpp_qsv.c | 242 +++++++++++++-
 5 files changed, 926 insertions(+), 596 deletions(-)
 create mode 100644 libavfilter/lut3d.c

-- 
2.42.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] 7+ messages in thread

end of thread, other threads:[~2023-10-23  1:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-23 15:36 [FFmpeg-devel] [PATCH 0/2] avfilter/vf_vpp_qsv: apply 3D LUT from file Chen Yufei
2023-09-23 15:36 ` [FFmpeg-devel] [PATCH 1/2] avfilter/vf_lut3d: expose 3D LUT file parse function Chen Yufei
2023-10-16  7:51   ` Xiang, Haihao
2023-10-23  1:16     ` Chen Yufei
2023-09-23 15:36 ` [FFmpeg-devel] [PATCH 2/2] avfilter/vf_vpp_qsv: apply 3D LUT from file Chen Yufei
2023-10-16  8:05   ` Xiang, Haihao
2023-10-23  1:27     ` Chen Yufei

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