summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/codecs/h264.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chore: add missing SPDX tagsAndrea Pappacoda2022-04-281-19/+2
| | | | Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
* codes: Rename ComposeFrameHeader to ComposeFrameameerj2021-11-131-2/+2
| | | | These functions were composing the entire frame, not just the headers. Rename to more accurately describe them.
* h264: Use max allowed max_num_ref_frames when using CPU decodingFeng Chen2021-10-101-1/+6
|
* h264: Lower max_num_ref_framesameerj2021-08-161-1/+2
| | | | GPU decoding seems to be more picky when it comes to the maximum number of reference frames.
* Slightly refactor NVDEC and codecs for readability and safetyKelebek12021-07-011-106/+101
|
* common/bit_util: Replace CLZ/CTZ operations with standardized onesLioncash2021-01-151-2/+2
| | | | Makes for less code that we need to maintain.
* Queue decoded frames, cleanup decodersameerj2020-11-251-1/+1
|
* nvdec: Make use of [[nodiscard]] where applicableLioncash2020-11-021-1/+2
| | | | | Prevents bugs from occurring where the results of a function are accidentally discarded
* h264: Make WriteUe take a u32Lioncash2020-10-271-6/+7
| | | | Enforces the type of the desired value in calling code.
* nvdec: Tidy up header includesLioncash2020-10-271-0/+15
| | | | Prevents a few unnecessary inclusions.
* video_core: NVDEC Implementationameerj2020-10-271-0/+276
This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com>