Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN mkdir -p /tools && \
cd /tools && \
svn checkout https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/tags/HM-16.18+SCM-8.7/ && \
cd HM-16.18+SCM-8.7/build/linux && \
make
make release_highbitdepth

# VMAF, FFMPEG
RUN mkdir -p /tools && \
Expand Down
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,5 @@ Example: `./compare.py images/classA_8bit/`
#### Notes from PINAR:
If you want to exclude a codec, remove the <codecname>.py file from both `./encode` and `./decode` folders.

If you are going to encode and decode images with bit depth greater than 10bpp, after building the container you have to enable RExt__HIGH_BIT_DEPTH_SUPPORT. Here's how:

After you build and run the container, type the following commands:

apt-get update

apt-get install vim

Y

vi /tools/HM-16.18+SCM-8.7/source/Lib/TLibCommon/TypeDef.h


In line 132 you have #define RExt__HIGH_BIT_DEPTH_SUPPORT set to 0. You need to change this to 1, save and quit (press i to switch to insert mode, when you finish changes press ESC to exit insert mode, then type :wq and hit ENTER. Then build HM again.

Now you won't have problems.

And that's all :)

#### To generate graphs:
`./visualize.py ./metrics/*.json`
2 changes: 1 addition & 1 deletion decode/hevc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
pix_fmt = sys.argv[5]
depth = sys.argv[6]

hevc_bin = '/tools/HM-16.18+SCM-8.7/bin/TAppDecoderStatic'
hevc_bin = '/tools/HM-16.18+SCM-8.7/bin/TAppDecoderHighBitDepthStatic'
tmp_dec = '/tmp/tmp.rgb'
tmp_dec_yuv = '/tmp/tmp.yuv'

Expand Down
2 changes: 1 addition & 1 deletion encode/hevc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
pix_fmt = sys.argv[6]
depth = sys.argv[7]

hevc_bin = '/tools/HM-16.18+SCM-8.7/bin/TAppEncoderStatic'
hevc_bin = '/tools/HM-16.18+SCM-8.7/bin/TAppEncoderHighBitDepthStatic'
if depth == '12' or depth == '16' or depth == '32' or pix_fmt == 'pgm':
hevc_cfg = '/tools/HM-16.18+SCM-8.7/cfg/encoder_intra_main_rext.cfg'
else:
Expand Down