Commit graph

25 commits

Author SHA1 Message Date
Harish Mahendrakar
29393d25cd avcenc: Fix PSNR computation for 420 semi-planar output in test
PSNR computation for 420 Semi-planar recon was incorrect.

Bug: 173151765
Test: avcenc -i qcif.yuv -w 176 -h 144 --bitrate 512000 \
      -o out.h264 --recon_enable 1 --recon recon.yuv \
      --input_chroma_format YUV_420SP_VU --recon_chroma_format \
      YUV_420SP_VU --num_frames 4 --psnr 1

Change-Id: I8de628107894bfdef6027f865b235aa01349bc4d
2020-11-13 17:37:27 +00:00
Chamarthi Kishore
ad2eaf8c7d libavc: Add MDCV, CLL, CCV and AVE SEI messages
This commit add support for encoding and decoding of MDCV, CLL, CCV and
AVE SEI messages

Test: avcenc -c enc.cfg, avcdec -c dec.cfg
Bug: 141931623

Change-Id: Idc0b0db5291482ae2bc19cdff65669c32374b02a
2019-10-24 17:20:00 +05:30
Harish Mahendrakar
9aefe92778 Replace memalign with posix_memalign
Bug: 140696633
Test: Build and test binaries

Change-Id: I2a00a34347732eb91f2dc3514c4fa8fa5b5c51b5
2019-09-12 16:37:45 -07:00
Harish Mahendrakar
e321c30b3d Merge "encoder: Fix warnings in host build"
am: 9046ac2182

Change-Id: I30b498b2cd57d1d63e66e8367f8703c0a8add6e2
2019-08-16 12:20:44 -07:00
Harish Mahendrakar
753fdf150d encoder: Fix warnings in host build
Fixes a warning on unused fgets return value

Test: Build on host
Bug: 139380252
Change-Id: I80ce9359902ae5f8377e0b4e8b55300749793423
2019-08-14 20:23:28 +00:00
Harish Mahendrakar
fabba6afaf Encoder: Increased max supported bitrate
Increased max bitrate to 240mbps
Bug: 116040772
Test: CTS test

Change-Id: I87d5e2e540e72d3a41a04becf01ff13965361a23
2019-04-15 12:42:48 -07:00
Ram Mohan
9b39261eb2 avcenc: Change default max bitrate from 20mbps to 50mbps
Test: avcenc test.cfg

Change-Id: I48b896321d6706189fee75f5245b3a388ef5b44c
2018-01-10 19:44:56 +00:00
Doney Alex
87cfdf1d3d Merge \"Encoder: Added support for configuring VUI parameters.\" into nyc-mr1-dev
am: ba8f1f9ef3

Change-Id: I2a634e1e1eab71aca8816a7be2f01dc96f68910f
2016-07-13 00:35:02 +00:00
Doney Alex
983e1aecd4 Encoder: Added support for configuring VUI parameters.
Bug: 27442922

Change-Id: I781195e78c480e7449f49467abb1df71902e568d
2016-07-12 14:41:59 -07:00
Harish Mahendrakar
cfec181db4 Encoder: Added sample encoder config file to be used with avcenc
avcenc takes command line arguments and as well as supports passing arguments
through a config file

Change-Id: I106814d684bc363863b357a836e7804a65eedaec
2016-06-16 03:28:32 +00:00
Doney Alex
dfe686ad4a DO NOT MERGE Encoder: Added support for Constrained intra prediction.
Change-Id: I674746047b2b007ca4bc52fad1a2cd9b177cd7bb
2016-03-11 22:10:12 +00:00
Doney Alex
8668fbcc97 Encoder: Added support for Constrained intra prediction.
Change-Id: I674746047b2b007ca4bc52fad1a2cd9b177cd7bb
2016-02-24 16:12:19 +05:30
Martin Storsjo
08e68e85c3 avcenc: Initialize avg_time
This fixes valgrind warnings when encoding with b-frames.

Change-Id: I922314e5e6fd09db3ba60e60863e2611309886d5
2015-07-28 18:45:02 +00:00
Martin Storsjo
18e256879b Remove the now unused stride field from the set dimensions struct
Since 90a3904fd3 and d020be5ac7, this field doesn't have any actual
effect - the strides are taken from the input pictures.

Change-Id: I9b08cbf8ee558e038d0017a6176d7b3bd3c428bd
2015-06-27 09:28:24 +03:00
Martin Storsjo
a926c1d695 avcenc: Make sure that "avcenc --help" works as intended
The --help option is handled by the normal argument parsing loop
below, but that is only invoked if argc > 2.

Change-Id: Icff3625412c340565c062628f2657c41db73068e
2015-06-24 21:07:43 +00:00
Harinarayanan K K
8588303afa Added code to handle cases with qp less than 10
When qp goes less than 10, all I16x16 mode evaluations
are disabled and I4x4 evaluations are enabled irrespective
of preset. This will ensure that the residual will not
exceed the supported range of entropy

Minimum Qp cannot be set less than 4 now. When QP goes lesser,
the residual may exceed the supported range even with I4x4 enabled.

Change-Id: I25b404fcd9c9e9dbdd77679280968635ee047eb3
2015-06-24 21:04:58 +00:00
Harinarayanan K K
6cb6772805 Reduced memory requirements.
Buffer allocation is based on minimum level required for the
input resolution rather than the input max level.

Number of maximum context sets can be set to 1 to reduce
memory usage.

Added a macro ENC_MIN_PU_SIZE for minimum size of
inter prediction unit supported by encoder.

Changed the maximum constraint on number of MBs for NMB
processing to width in Mbs.

Change-Id: I5a9255e93935d90c13262681aafc772aedf8ae81
2015-06-24 21:04:04 +00:00
Martin Storsjo
81b0b5a411 Don't include <sys/time.h> if WINDOWS_TIMER is set
If WINDOWS_TIMER is set, windows.h is supposed to be used instead,
and sys/time.h isn't available.

This reduces the amount of duplicated include directives in the test
apps.

Change-Id: I223d80c4ccaed2aab55e3aae66dab903ecacef7a
2015-06-24 20:42:25 +00:00
Harinarayanan K K
134291ea0b Added support for Main Profile toolsets in encoder.
Added support for CABAC entropy coding.
Added support for B slices.
Fixed an issue in rate control constant QP mode.

Change-Id: Ib759d35e8e943f941aa9b8bbff0362d92c619994
2015-06-24 20:36:11 +00:00
Martin Storsjo
34b8c23a26 avcenc: Check that enough arguments exist before parsing
Each round in the loop uses both argv[i] and argv[i + 1].

This fixes crashes if given an odd number of parameters, 3 or
more.

Change-Id: I9b8be99042eb7d0f69ebd87166d9cc920d15a950
2015-06-22 10:02:37 +03:00
Harish Mahendrakar
5cdb888fea Fixed an overread in YUV420 Semi-planar input usecase
Handled non-multiple of 16 dimensions for 420 semiplanar input
Modified test code to remove alignment of width and height

Change-Id: I83ff8165364a863d577fcac81e711b07eec9c004
2015-06-11 10:52:36 +05:30
Harish Mahendrakar
25e8adb631 Resolved warnings and fixed alignment of few assemblies
Resolved warnings seen in x86 modules
Fixed alignment of few modules
Updated comments in few arm modules for consistency
Fixed warnings seen in clang build

Change-Id: I0623169b5e84a6a6f09c3d2212e754101272f5e9
2015-05-05 17:35:10 +00:00
Lajos Molnar
cd9e51fc2b fix file permissions
Change-Id: Ia4f99d5b963acd8d8a1afc2fbdf06b122d898f63
2015-05-05 17:34:51 +00:00
Harish Mahendrakar
c72323e723 Fixed few issues seen in CTS tests
Added support for encoding non-multiple of 16 dimensions
Added support for encoding dimensions smaller than 64x64
Aligned coeff data to 4 byte boundary

Change-Id: I111093950f94698296d8499a2845cfe2db6c557b
2015-04-28 19:17:04 +05:30
Hamsalekha S
8d3d303c79 Initial version
Change-Id: I7efe9a589cd24edf86e8d086b40c27cbbf8b4017
2015-04-02 15:59:02 +05:30