Commit graph

30 commits

Author SHA1 Message Date
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
Martin Storsjo
bf9cd17d31 Support levels 5.0 and 5.1 in the encoder properly
The function ih264e_get_lvl_idx lacked handling of them
before, which meant that it returned index 0 (corresponding
to level 1.0) if level 5.0 or 5.1 were selected.

Change-Id: I482213e68e11fd091c72ec57a593392aa1a0a4ae
2015-06-03 15:47:18 +00:00
Martin Storsjo
329d7714ba Fix a typo in gas_ih264_lvl_tbl, set proper sizes for level 1.1
The table values themselves were correct, but the level values
were swapped for 1.1 and 1B.

This fixes encoding using level 1.1, which previously got the
wrong (too small) sizes (corresponding to level 1B).

Change-Id: Ic0acc58eb5841710ffd8be54bf97800fdbb40855
2015-06-03 15:45:01 +00:00
Lajos Molnar
f2d752259c Merge "Set cflags for the right arch in the arm64 makefile" 2015-06-03 15:43:46 +00:00
Lajos Molnar
87f8a24c63 Merge "Remove leftover printfs in x86 encoder initialization" 2015-06-03 15:42:27 +00:00
Lajos Molnar
dd8f858b6a Merge "Remove an empty source file" 2015-06-03 15:42:09 +00:00
Lajos Molnar
5f3e2bc35b Merge "Only initialize u4_deblk_prev_row if it will be used" 2015-06-03 15:39:12 +00:00
Lajos Molnar
3c2ac2246c Merge "Fix an overread in the slice map" 2015-06-03 15:36:44 +00:00
Lajos Molnar
3332771624 Merge "Include space for chroma in the padding allocated in ih264e_get_total_pic_buf_size" 2015-06-03 15:34:36 +00:00
Lajos Molnar
8be65ff529 Merge "Fix a typo in gai4_ih264_max_luma_pic_size" 2015-06-03 15:33:23 +00:00
Lajos Molnar
459f4b5ac0 Merge "Fix a variable name typo in the mips64 makefiles" 2015-06-03 15:29:44 +00:00
Martin Storsjo
fc508f2e87 Fix an overread in the slice map
After incrementing the macroblock position in ih264e_update_proc_ctxt,
the slice index of the next macroblock is read. The value that is read
isn't actually used, but make sure that the array is large enough to
avoid overreads.

Change-Id: I44ddb49773244c7d1e404199fc57a9e30a8959e0
2015-05-26 08:59:50 +03:00
Martin Storsjo
bc7164d2f1 Include space for chroma in the padding allocated in ih264e_get_total_pic_buf_size
Chroma is already accounted for in e.g. num_samples by multiplying
the number of luma samples by 3/2, so include it in the padding
calculation as well.

This fixes encoding 176x144 at level 1.0 - normally this isn't an issue
since the padding is a bit overestimated, but for this particular
resolution/level combination, it fails unless this is calculated properly.

Change-Id: Id5df6e5aee4d3d78f4c28a3b7d5fed6fe42a1f2c
2015-05-25 20:41:37 +03:00
Martin Storsjo
1bc6742182 Only initialize u4_deblk_prev_row if it will be used
This avoids reads out of bounds when encoding videos with a height
of one single macroblock.

Change-Id: Iec982cebb0995c8ecf160751eaa72df38604e8b0
2015-05-25 20:31:02 +03:00
Martin Storsjo
3a1ed66e61 Remove an empty source file
This source file doesn't contain anything else than just included
headers.

Change-Id: I7cd238a5d220907db82b98f7aaefad9d66af8ee4
2015-05-23 23:33:28 +03:00
Martin Storsjo
bd15ec1c28 Fix a variable name typo in the mips64 makefiles
Change-Id: I88617ca5e189cb6d5dbaf0422dd2f7cecdfde778
2015-05-20 14:57:43 +03:00
Martin Storsjo
4691c4bf45 Set cflags for the right arch in the arm64 makefile
Change-Id: I0b7c56670e93b825b95b84d7573b968c51313d2e
2015-05-19 15:10:51 +03:00
Hamsalekha S
caab4fe068 Multithreading changes and better error resilience
Fixed the following bugs
Issue 21145276
Issue 21144884
Issue 21181133
Issue 21181134

Decoder now returns error if the level in stream is higher than level at init

Change-Id: I8892c62bd98f7854d046510330c05a1e9ca826b2
2015-05-19 17:38:02 +05:30
Martin Storsjo
7a85475106 Remove leftover printfs in x86 encoder initialization
A library shouldn't printf things to the common stdout, at least
not in normal builds.

Change-Id: Ifd875369c2347549f141fe0f9754e51814c0de96
2015-05-19 10:39:25 +03:00
Martin Storsjo
23461c3cb0 Fix a typo in gai4_ih264_max_luma_pic_size 2015-05-15 14:40:26 +03:00
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
Lajos Molnar
fab9a811d2 fix build issues with clang
Disable clang for assembly, and pass include paths to clang-assembly in a clang way

Change-Id: Idceb43f22b6fc26ec31de910482cdac62b6bbe86
2015-04-16 18:55:35 -07:00
Lajos Molnar
7023f4d0e9 fix build for generic builds
Change-Id: I7654a801a2b168b7e0bcbebf680efbf2343b1ece
2015-04-16 11:54:42 -07:00
Lajos Molnar
7e7f176198 Merge "Initial version" 2015-04-15 20:02:28 +00:00
Hamsalekha S
8d3d303c79 Initial version
Change-Id: I7efe9a589cd24edf86e8d086b40c27cbbf8b4017
2015-04-02 15:59:02 +05:30
Bill Yi
b745243fe3 Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD 2015-03-10 14:57:40 -07:00
Bill Yi
3956d913d3 Initial empty repository 2015-03-04 19:39:31 +00:00
Bill Yi
c634a42d85 Initial empty repository 2015-03-04 11:36:37 -08:00