文件
rocm-systems/projects/rocdecode
jeffqjiangNew 9b158f2b07 Add debug functions to log parsed parameter set and header content. (#19)
* rocDecode/HEVC parsing: Implemented correct logic to set active VPS, SPS and PPS: start from slice header and up. Added video image size change detection. Fixed slice_segment_address bits calculation in slice segment header parsing.

* rocDecode/HEVC: Changed variable naming to Google style.

* rocDecode/HEVC: Added VPS, SPS, PPS, and slice segment header content logging functions for debug purposes.

* rocDecode/HEVC: Compacted opening bracket lines to keep coding style consistency.

[ROCm/rocdecode commit: ebe1748888]
2023-10-20 10:39:21 -04:00
..
2023-10-12 19:12:01 -04:00
2023-06-12 14:45:01 -07:00

rocDecode

rocDecode is a high performance video decode SDK for AMD hardware

Prerequisites:

  • Linux distribution

    • Ubuntu - 20.04 / 22.04
  • ROCm supported hardware

  • Install ROCm 5.5 or later with --usecase=graphics,rocm --no-32

  • CMake 3.5 or later

  • libva-dev 2.7 or later

    sudo apt install libva-dev
    
  • FFMPEG

    sudo apt install ffmpeg libavcodec-dev libavformat-dev libswscale-dev
    
  • Note rocDecode-setup.py script can be used for installing all the dependencies

Build instructions:

Please follow the instructions below to build and install the rocDecode library.

 cd rocDecode
 mkdir build; cd build
 cmake ..
 make -j8
 sudo make install
  • run tests

    make test
    

    NOTE: run tests with verbose option make test ARGS="-VV"

  • make package

    sudo make test package
    

Samples:

The tool provides a few samples to decode videos here. Please refer to the individual folders to build and run the samples.

Docker:

Docker files to build rocDecode containers are available here

Documentation

Run the steps below to build documentation locally.

  • Doxygen
doxygen .Doxyfile

Tested configurations

  • Linux distribution
    • Ubuntu - 20.04 / 22.04
  • ROCm:
    • rocm-core - 5.6.1.50601-93
    • amdgpu-core - 1:5.6.50601-1649308
  • FFMPEG - 4.2.7 / 4.4.2-0
  • libva-dev - 2.7.0-2 / 2.14.0-1
  • rocDecode Setup Script - V1.1