Skip to content

Commit

Permalink
WIP: media: meson: vdec: add support for HEVC decoding
Browse files Browse the repository at this point in the history
NOTE: This is an attempt to resurrect Maxime Jourdan's experimental HEVC
code and test it. Anyone picking this commit to their sources should be
aware that this code is far from complete/working and has issues !!!
  • Loading branch information
Elyotna authored and chewitt committed Dec 12, 2020
1 parent b9365c0 commit 7243c89
Show file tree
Hide file tree
Showing 13 changed files with 1,652 additions and 100 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/media/meson/vdec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

meson-vdec-objs = esparser.o vdec.o vdec_helpers.o vdec_platform.o
meson-vdec-objs += vdec_1.o vdec_hevc.o
meson-vdec-objs += codec_mpeg12.o codec_h264.o codec_hevc_common.o codec_vp9.o
meson-vdec-objs += codec_mpeg12.o codec_h264.o codec_hevc_common.o codec_hevc.o codec_vp9.o

obj-$(CONFIG_VIDEO_MESON_VDEC) += meson-vdec.o
3 changes: 2 additions & 1 deletion drivers/staging/media/meson/vdec/codec_h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ static void codec_h264_src_change(struct amvdec_session *sess)
frame_width, frame_height, crop_right, crop_bottom);

codec_h264_set_par(sess);
amvdec_src_change(sess, frame_width, frame_height, h264->max_refs + 5);
amvdec_src_change(sess, frame_width, frame_height,
h264->max_refs + 5, 8);
}

/*
Expand Down
Loading

0 comments on commit 7243c89

Please sign in to comment.