summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/codecs/vp9.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* codes: Rename ComposeFrameHeader to ComposeFrameameerj2021-11-131-1/+1
| | | | These functions were composing the entire frame, not just the headers. Rename to more accurately describe them.
* codecs: Add VP8 codec classameerj2021-11-131-2/+1
|
* vp9_types: Remove unused Vp9PictureInfo membersameerj2021-08-261-0/+1
|
* vp9: Ensure the first frame is completeameerj2021-08-081-2/+2
| | | | Silences a runtime error due to the first frame missing the frame data, and being set to hidden despite being a key-frame.
* vp9: Cleanup unused variablesameerj2021-08-071-42/+15
| | | | | With reference frames refreshes fix, we no longer need to buffer two frames in advance. We can also remove other unused or otherwise unneeded variables.
* vp9: Fix reference frame refreshesameerj2021-08-071-47/+30
| | | | This resolves the artifacting when decoding VP9 streams.
* Slightly refactor NVDEC and codecs for readability and safetyKelebek12021-07-011-2/+2
|
* vp9: Avoid memcpy with null pointerslat9nq2021-04-051-7/+9
| | | | | | | | Avoid sending null pointer to memcpy as reported by Undefined Behaviour Sanitizer. Replaces the std::memcpy calls in SpliceVectors with std::copy calls. Opting to replace all the memcpy's with copy's. Co-authored-by: LC <mathew1800@gmail.com>
* video_core: Resolve more variable shadowing scenarios pt.2Lioncash2020-12-051-20/+20
| | | | | | | Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code.
* video_core: Resolve more variable shadowing scenariosLioncash2020-12-041-1/+1
| | | | | | Resolves variable shadowing scenarios up to the end of the OpenGL code to make it nicer to review. The rest will be resolved in a following commit.
* vp9/vic: Resolve pessimizing movesLioncash2020-12-031-10/+10
| | | | | Removes the usage of moves that don't result in behavior different from a copy, or otherwise would prevent copy elision from occurring.
* Address PR feedbackameerj2020-11-261-1/+1
| | | | | | remove some redundant moves, make deleter match naming guidelines. Co-Authored-By: LC <712067+lioncash@users.noreply.github.com>
* Queue decoded frames, cleanup decodersameerj2020-11-251-192/+141
|
* nvdec: Make use of [[nodiscard]] where applicableLioncash2020-11-021-1/+1
| | | | | Prevents bugs from occurring where the results of a function are accidentally discarded
* vp9: Mark functions with [[nodiscard]] where applicableLioncash2020-10-301-4/+4
| | | | | Prevents values from mistakenly being discarded in cases where it's a bug to do so.
* vp9: Make some member functions internally linkedLioncash2020-10-301-48/+54
| | | | | These helper functions don't directly modify any member state and can be hidden from view.
* Merge pull request #4837 from lioncash/nvdec-2bunnei2020-10-291-20/+44
|\ | | | | nvdec: Minor tidying up
| * vp9: std::move buffer within ComposeFrameHeader()Lioncash2020-10-271-1/+1
| | | | | | | | We can move the buffer here to avoid a heap reallocation
| * vp9: Remove dead codeLioncash2020-10-271-6/+0
| |
| * vp9: Join declarations with assignmentsLioncash2020-10-271-7/+8
| |
| * vp9: Remove pessimizing movesLioncash2020-10-271-2/+2
| | | | | | | | The move will already occur without std::move.
| * vp9: Resolve variable shadowingLioncash2020-10-271-4/+4
| |
| * nvdec: Tidy up header includesLioncash2020-10-271-1/+30
| | | | | | | | Prevents a few unnecessary inclusions.
* | Merge pull request #4848 from ReinUsesLisp/type-limitsLC2020-10-281-1/+1
|\ \ | | | | | | video_core: Enforce -Werror=type-limits
| * | video_core: Enforce -Werror=type-limitsReinUsesLisp2020-10-281-1/+1
| |/ | | | | | | Silences one warning and avoids introducing more in the future.
* / video_core: Enforce -Wredundant-move and -Wpessimizing-moveReinUsesLisp2020-10-281-1/+1
|/ | | | Silence three warnings and make them errors to avoid introducing more in the future.
* video_core: NVDEC Implementationameerj2020-10-271-0/+1010
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>