summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-11-02nvdec: Make use of [[nodiscard]] where applicableLioncash7-16/+16
Prevents bugs from occurring where the results of a function are accidentally discarded
2020-10-30vp9: Be explicit with copy and move operatorsLioncash1-0/+18
It's deprecated in the language to autogenerate these if the destructor for a type is specified, so we can explicitly specify how we want these to be generated.
2020-10-30vp9: Mark functions with [[nodiscard]] where applicableLioncash2-13/+13
Prevents values from mistakenly being discarded in cases where it's a bug to do so.
2020-10-30vp9: Provide a default initializer for "hidden" memberLioncash1-1/+1
The API of VP9 exposes a WasFrameHidden() function which accesses this member. Given the constructor previously didn't initialize this member, it's a potential vector for an uninitialized read. Instead, we can initialize this to a deterministic value to prevent that from occurring.
2020-10-30vp9: Make some member functions internally linkedLioncash2-58/+54
These helper functions don't directly modify any member state and can be hidden from view.
2020-10-28video_core: Enforce -Wredundant-move and -Wpessimizing-moveReinUsesLisp1-1/+1
Silence three warnings and make them errors to avoid introducing more in the future.
2020-10-28video_core: Enforce -Werror=type-limitsReinUsesLisp1-1/+1
Silences one warning and avoids introducing more in the future.
2020-10-27sync_manager: Amend parameter order of calls to SyncptIncr constructorLioncash2-9/+9
Corrects some cases where the arguments would be incorrectly swapped.
2020-10-27h264: Make WriteUe take a u32Lioncash2-7/+8
Enforces the type of the desired value in calling code.
2020-10-27vp9: std::move buffer within ComposeFrameHeader()Lioncash1-1/+1
We can move the buffer here to avoid a heap reallocation
2020-10-27vp9: Remove dead codeLioncash1-6/+0
2020-10-27vp9: Join declarations with assignmentsLioncash1-7/+8
2020-10-27vp9: Remove pessimizing movesLioncash1-2/+2
The move will already occur without std::move.
2020-10-27vp9: Resolve variable shadowingLioncash1-4/+4
2020-10-27nvdec: Tidy up header includesLioncash13-62/+59
Prevents a few unnecessary inclusions.
2020-10-27video_core: NVDEC Implementationameerj16-0/+2857
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>