Code clean up - remove unused headers from demuxer, unused ffmpeg dependencies, and redundent info from videodecode sample (#71)

This commit is contained in:
Aryan Salmanpour
2023-11-17 12:46:27 -05:00
committed by GitHub
parent b94b4f7947
commit 071b37b3bd
8 changed files with 8 additions and 17 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ if(HIP_FOUND AND FFMPEG_FOUND AND ROCDECODE_FOUND)
set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::device)
# FFMPEG
include_directories(${AVUTIL_INCLUDE_DIR} ${AVCODEC_INCLUDE_DIR}
${SWSCALE_INCLUDE_DIR} ${AVFORMAT_INCLUDE_DIR})
${AVFORMAT_INCLUDE_DIR})
set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} ${FFMPEG_LIBRARIES})
# rocDecode
include_directories (${ROCDECODE_INCLUDE_DIR})
+1 -1
View File
@@ -18,7 +18,7 @@ This sample supports both YUV420 8-bit and 10-bit streams.
* [FFMPEG](https://ffmpeg.org/about.html)
```
sudo apt install ffmpeg libavcodec-dev libavformat-dev libswscale-dev
sudo apt install ffmpeg
```
## Build
-4
View File
@@ -149,10 +149,6 @@ int main(int argc, char **argv) {
n_frame += n_frame_returned;
} while (n_video_bytes);
std::cout << "info: Video codec format: " << viddec.GetCodecFmtName(viddec.GetCodecId()) << std::endl;
std::cout << "info: Video size: [ " << surf_info->output_width << ", " << surf_info->output_height << " ]" << std::endl;
std::cout << "info: Video surface format: " << viddec.GetSurfaceFmtName(surf_info->surface_format) << std::endl;
std::cout << "info: Video Bit depth: " << surf_info->bit_depth << std::endl;
std::cout << "info: Total frame decoded: " << n_frame << std::endl;
if (!dump_output_frames) {
std::cout << "info: avg decoding time per frame (ms): " << total_dec_time / n_frame << std::endl;
+1 -1
View File
@@ -20,7 +20,7 @@ This sample uses fork() to create multiple processes to decode the same input vi
* [FFMPEG](https://ffmpeg.org/about.html)
```
sudo apt install ffmpeg libavcodec-dev libavformat-dev libswscale-dev
sudo apt install ffmpeg
```
## Build
+1 -1
View File
@@ -20,7 +20,7 @@ This sample uses multiple threads to decode the same input video parallely.
* [FFMPEG](https://ffmpeg.org/about.html)
```
sudo apt install ffmpeg libavcodec-dev libavformat-dev libswscale-dev
sudo apt install ffmpeg
```
## Build