summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes/codecs/codec.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* video_core: Reduce unused includesameerj2022-03-191-1/+1
|
* video_core: constify AVCodec for ffmpeg >= 5.0Jan Beich2022-01-201-1/+1
| | | | | | src/video_core/command_classes/codecs/codec.cpp:177:16: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers av_codec = avcodec_find_decoder(codec); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
* codecs: Add VP8 codec classameerj2021-11-131-0/+2
|
* codec: Add missing <string_view> includeMorph2021-09-111-0/+1
|
* codec: Improve libav memory alloc and cleanupameerj2021-08-161-0/+2
|
* codec: Fallback to CPU decoding if no compatible GPU format is foundameerj2021-08-161-1/+0
|
* nvdec: Implement GPU accelerated decoding for all platformsameerj2021-08-121-2/+6
| | | | Supplements the VAAPI intel gpu decoder by implementing the D3D11VA decoder for Windows, and CUVID/VDPAU for Nvidia and AMD on drivers linux respectively.
* nvdec: Implement VA-API hardware video acceleration (#6713)yzct123452021-08-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * nvdec: VA-API * Verify formatting * Forgot a semicolon for Windows * Clarify comment about AV_PIX_FMT_NV12 * Fix assert log spam from missing negation * vic: Remove forgotten debug code * Address lioncash's review * Mention VA-API is Intel/AMD * Address v1993's review * Hopefully fix CMakeLists style this time * vic: Improve cache locality * vic: Fix off-by-one error * codec: Async * codec: Forgot the GetValue() * nvdec: Address ameerj's review * codec: Fallback to CPU without VA-API support * cmake: Address lat9nq's review * cmake: Make VA-API optional * vaapi: Multiple GPU * Apply suggestions from code review Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> * nvdec: Address ameerj's review * codec: Use anonymous instead of static * nvdec: Remove enum and fix memory leak * nvdec: Address ameerj's review * codec: Remove preparation for threading Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
* Merge pull request #6537 from Morph1984/warningsbunnei2021-07-061-8/+0
|\ | | | | general: Enforce multiple warnings in MSVC
| * video_core: Remove #pragma warning directives for external headersMorph2021-06-281-8/+0
| |
* | Slightly refactor NVDEC and codecs for readability and safetyKelebek12021-07-011-5/+7
|/
* codec,vic: Disable warnings in ffmpeg headersReinUsesLisp2021-06-261-0/+8
|
* Merge pull request #5002 from ameerj/nvdec-frameskipbunnei2020-12-031-4/+7
|\ | | | | nvdec: Queue and display all decoded frames, cleanup decoders
| * Address PR feedbackameerj2020-11-261-2/+2
| | | | | | | | | | | | 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-4/+7
| |
* | codec: Fix `pragma GCC diagnostic pop` missing corresponding pushcomex2020-11-261-0/+1
|/
* nvdec: Make use of [[nodiscard]] where applicableLioncash2020-11-021-3/+3
| | | | | Prevents bugs from occurring where the results of a function are accidentally discarded
* nvdec: Tidy up header includesLioncash2020-10-271-2/+0
| | | | Prevents a few unnecessary inclusions.
* video_core: NVDEC Implementationameerj2020-10-271-0/+68
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>