[ROCm/rocdecode commit: 5e5c92abb5]
Αυτή η υποβολή περιλαμβάνεται σε:
Kiriti Gowda
2024-02-09 10:31:44 -08:00
υποβλήθηκε από GitHub
γονέας 7fc7a3effc
υποβολή 1b4792c45c
12 αρχεία άλλαξαν με 55 προσθήκες και 49 διαγραφές
@@ -1,6 +1,6 @@
# Video decode RGB sample
This sample illustrates the FFMPEG demuxer to get the individual frames which are then decoded using rocDecode API and optionally color-converted using custom HIP kernels on AMD hardware. This sample converts decoded YUV output to one of the RGB or BGR formats(24bit, 32bit, 464bit) in a separate thread allowing to run both VCN hardware and compute engine in parallel.
This sample illustrates the FFMPEG demuxer to get the individual frames which are then decoded using rocDecode API and optionally color-converted using custom HIP kernels on AMD hardware. This sample converts decoded YUV output to one of the RGB or BGR formats(24bit, 32bit, 464bit) in a separate thread allowing it to run both VCN hardware and compute engine in parallel.
This sample uses HIP kernels to showcase the color conversion. Whenever a frame is ready after decoding, the `ColorSpaceConversionThread` is notified and can be used for post-processing.