aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/command_classes/codecs/h264.cpp
AgeCommit message (Collapse)Author
2022-10-06VideoCore: Refactor syncing.Fernando Sahmkow
2022-04-28chore: add missing SPDX tagsAndrea Pappacoda
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
2021-11-12codes: Rename ComposeFrameHeader to ComposeFrameameerj
These functions were composing the entire frame, not just the headers. Rename to more accurately describe them.
2021-10-10h264: Use max allowed max_num_ref_frames when using CPU decodingFeng Chen
2021-08-16h264: Lower max_num_ref_framesameerj
GPU decoding seems to be more picky when it comes to the maximum number of reference frames.
2021-07-01Slightly refactor NVDEC and codecs for readability and safetyKelebek1
2021-01-15common/bit_util: Replace CLZ/CTZ operations with standardized onesLioncash
Makes for less code that we need to maintain.
2020-11-25Queue decoded frames, cleanup decodersameerj
2020-11-02nvdec: Make use of [[nodiscard]] where applicableLioncash
Prevents bugs from occurring where the results of a function are accidentally discarded
2020-10-27h264: Make WriteUe take a u32Lioncash
Enforces the type of the desired value in calling code.
2020-10-27nvdec: Tidy up header includesLioncash
Prevents a few unnecessary inclusions.
2020-10-26video_core: NVDEC Implementationameerj
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>