• Home
  • History
  • Annotate
  • only in /frameworks/av/media/libstagefright/codecs/avcenc/
History log of /frameworks/av/media/libstagefright/codecs/avcenc/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ebc26bd50ee659c08a786d6eb793c26f83838ade 12-May-2017 Ray Essick <essick@google.com> Prevent OOB write in soft_avc encoder am: 463452a949 am: 97db64baf6 am: b6bf46944f am: cd35c846f0 am: a43be7d42d am: 3c375611d6 am: 96b4e70f44 am: 9eb9b1b849
am: 91af834b13

Change-Id: Icb076c1e7f90b7ece6cf7f36f9f2e5f3062121cf
3c375611d68c0521b855190e3e5eb021c65f824c 12-May-2017 Ray Essick <essick@google.com> Prevent OOB write in soft_avc encoder am: 463452a949 am: 97db64baf6 am: b6bf46944f am: cd35c846f0
am: a43be7d42d

Change-Id: I9cf2d9117293f14f14fc240c674f02594f8944bd
a43be7d42d1d37659f59e3503913f02cfbc4e928 12-May-2017 Ray Essick <essick@google.com> Prevent OOB write in soft_avc encoder am: 463452a949 am: 97db64baf6 am: b6bf46944f
am: cd35c846f0

Change-Id: Id65aa9338a1a362488f33708b4bf5f36d8581104
97db64baf6d61e6ac25566e72b0f7185a19e3859 12-May-2017 Ray Essick <essick@google.com> Prevent OOB write in soft_avc encoder
am: 463452a949

Change-Id: I7cad9d84093cce83b2edf09a55bb8b9a588bee43
463452a94907278ca5e4c5632e50bbe59e861544 11-May-2017 Ray Essick <essick@google.com> Prevent OOB write in soft_avc encoder

Soft avc encoder cached buffer sizes across a point where the sizes
could be reset by an app, allowing crafted requests to hit outside
of the current buffer. This remedies that by forcing buffer reallocation
with new sizes whenever the encoder state at such 'reset' points.

Bug: 35421151
Test: run POC with no crash
Change-Id: I8c689846142264f7b6a277332260a6bd8a2bd92d
oftAVCEnc.cpp
oftAVCEnc.h
bc1713d3b85d7ce656e032da6e4b6b342f14db03 14-Feb-2017 Mathias Agopian <mathias@google.com> fallout of splitting rect.h out of libandroid.

A lot of media makefiles didn’t specify libui or
libgui but included headers from these libraries
directly.

It works because these headers are on the global
include path. With this change, though, rect.h
is not anymore (albeit exported from libui).

Test: built and booted device
Bug: 35164655
Change-Id: I72e8f0b7bd25c6a67eedc17afe52c4c484a147fe
oftAVCEnc.cpp
a4a6d63ec590a3be60a60527c619fb0bf7870b59 21-Dec-2016 Vishwath Mohan <vishwath@google.com> Enable CFI for some media components.

Enables CFI locally for the following components:
media/libmedia/
media/libstagefright/codec2/
media/libstagefright/codecs/aacdec/
media/libstagefright/codecs/aacenc/
media/libstagefright/codecs/amrwbenc/
media/libstagefright/codecs/avc/common/
media/libstagefright/codecs/avc/enc/
media/libstagefright/codecs/avcdec/
media/libstagefright/codecs/avcenc/
media/libstagefright/codecs/flac/enc/
media/libstagefright/codecs/g711/dec/
media/libstagefright/codecs/gsm/dec/
media/libstagefright/codecs/hevcdec/
media/libstagefright/codecs/m4v_h263/dec/
media/libstagefright/codecs/m4v_h263/enc/
media/libstagefright/codecs/mp3dec/
media/libstagefright/codecs/mpeg2dec/
media/libstagefright/codecs/on2/dec/
media/libstagefright/codecs/on2/enc/
media/libstagefright/codecs/on2/h264dec/
media/libstagefright/codecs/opus/dec/
media/libstagefright/codecs/raw/
media/libstagefright/http/
media/libstagefright/httplive/
media/libstagefright/omx/
media/libstagefright/wifi-display/

Note that CFI is currently hidden under the global flag,
ENABLE_CFI=true. Unless this is set, local settings are not honored
and CFI will not be enabled. This allows CFI to essentially remain off
on all branches, but will allow it to be tested and debugged using
targeted builds.

Bug: 30227045
Test: m -j40 and device builds and boots
Test: CFI is not enabled unless built with ENABLE_CFI=true
Test: CFI enabled build passes the media CTS tests.
ndroid.mk
c661ae6165338fd5f0bca50a63058b4bcd6def4b 25-Oct-2016 Marco Nelissen <marcone@google.com> Remove unneeded links with dynamic libraries

Various media components were linking against dynamic libraries that weren't needed.

Test: built and booted

Change-Id: I7379506fd06d4e28e0eff0001fd073a2d3860f8e
ndroid.mk
5f5ee1110dd85001b43db7637a97474acfe8d681 16-Aug-2016 Glenn Kasten <gkasten@google.com> LOCAL_CLANG := true is now the default

Test: verify that build has no failures
Change-Id: Ib249b276c6295e55eb54fa37b6d15486415dfbed
ndroid.mk
009c54d610a68a39dc6336c57d491940b4048f01 15-Jul-2016 Lajos Molnar <lajos@google.com> Merge \\"SoftAVCEnc/SoftMPEG4Enc: support updated i-frame interval and encoder settings\\" into nyc-mr1-dev am: 9f6392250b
am: 927326caf3

Change-Id: Ib8b947da0ccf4515098189d24ab6c961cd1b6ac0
927326caf324d555d2966d40ff435222d913066e 15-Jul-2016 Lajos Molnar <lajos@google.com> Merge \"SoftAVCEnc/SoftMPEG4Enc: support updated i-frame interval and encoder settings\" into nyc-mr1-dev
am: 9f6392250b

Change-Id: If3eafbea61f1fdb8e40fb335fe8c9dcf91fa99da
d72e751fa185f053773603222fd220ab77c92b2f 15-Jul-2016 Lajos Molnar <lajos@google.com> SoftAVCEnc/SoftMPEG4Enc: support updated i-frame interval and encoder settings

- use key-frame interval in MPEG4 encoder
- use updated definition of nBFrames and nPFrames in AVC encoder

Bug: 30096321
Bug: 28027692
Change-Id: I68d0d5182b462cad567c329a07fdafea55d19ff7
oftAVCEnc.cpp
ce4df5e534eb86748fe80c84efb6b7fc0b6b5b46 04-Mar-2016 Wonsik Kim <wonsik@google.com> stagefright: move MedaDefs from libstagefright to libmedia

Bug: 24761407
Change-Id: If4914340a645c6f3c14eea0c873c162926d72ca2
ndroid.mk
276b60e1be8ed92149411240d95705c642c7531a 19-May-2016 Chih-hung Hsieh <chh@google.com> Merge "Fix misc-macro-parentheses warnings." am: 8a6d716a1e
am: f89b497da8

* commit 'f89b497da89aefbf32b3bdfd62d92c4ca00c4928':
Fix misc-macro-parentheses warnings.

Change-Id: I137b2728a00dbdfdceb44504f4f3f4707c441d93
183d387706417863076873ec566ca5966d8f5560 18-May-2016 Chih-Hung Hsieh <chh@google.com> Fix misc-macro-parentheses warnings.

Bug: 28705665
Change-Id: I9b4b253100cc06a5f37eb3129b0d54991471e382
oftAVCEnc.h
972f653af6288f8dbb3ebd205c599e0cbb23456a 11-Mar-2016 Doney Alex <doney.alex@ittiam.com> DO NOT MERGE SoftAvcEnc:Configured constrained_intra_pred flag in internalSetParameter

Change-Id: Idbc2a0ee413651e2b6b1c82b7496507906c222c2
oftAVCEnc.cpp
9515aca0c07a32128a65a68749bda3ea6851c109 24-Feb-2016 Doney Alex <doney.alex@ittiam.com> DO NOT MERGE SoftAvcEnc: Added support for Constrained intra prediction.

Change-Id: I1a3e8fbad0bea728311c2b4b0513c9565ecf9a14
oftAVCEnc.cpp
oftAVCEnc.h
c33a41e38d414e3d2f0266d522ed42cdf7ac1e62 11-Mar-2016 Doney Alex <doney.alex@ittiam.com> Merge "SoftAvcEnc:Configured constrained_intra_pred flag in internalSetParameter"
am: ebc0faffd2

* commit 'ebc0faffd2a11a770614e699bb1e8beb51af87e1':
SoftAvcEnc:Configured constrained_intra_pred flag in internalSetParameter
ebc0faffd2a11a770614e699bb1e8beb51af87e1 11-Mar-2016 Hangyu Kuang <hkuang@google.com> Merge "SoftAvcEnc:Configured constrained_intra_pred flag in internalSetParameter"
c2902b852a086169f3c53a89fb07cfb14cad5ebd 11-Mar-2016 Hangyu Kuang <hkuang@google.com> Merge "stagefright: Fix a bug in getting intra refresh period through getConfig." into nyc-dev
am: 0d390f6da4

* commit '0d390f6da426255d8a962d36b6086f4ea2e1a07d':
stagefright: Fix a bug in getting intra refresh period through getConfig.
047ccc77b65a6a062dd88622e583b3d47f496927 11-Mar-2016 Doney Alex <doney.alex@ittiam.com> SoftAvcEnc:Configured constrained_intra_pred flag in internalSetParameter

Change-Id: Idbc2a0ee413651e2b6b1c82b7496507906c222c2
oftAVCEnc.cpp
d08a068bee8396b2ccdd819920b4496de2309a68 10-Mar-2016 Hangyu Kuang <hkuang@google.com> stagefright: Fix a bug in getting intra refresh period through getConfig.

When intra refresh mode is disable, getConfig should return '0' instead of
default intra refresh period.

Bug:26587630
Change-Id: I16d9f20d74b405f60be6bda18abd103d99a3ab28
oftAVCEnc.cpp
9222aaf44d79e501c513887f74979f16226b2fc7 05-Mar-2016 Marco Nelissen <marcone@google.com> DO NOT MERGE Verify OMX buffer sizes prior to access
am: f1a2668f4f

* commit 'f1a2668f4f09e38722424a6a74f0ea26f49e4110':
DO NOT MERGE Verify OMX buffer sizes prior to access
f4fac7abff648b75310fd715576c161c2ae6525d 03-Mar-2016 Marco Nelissen <marcone@google.com> Merge "Verify OMX buffer sizes prior to access" into nyc-dev
am: f4cf8817de

* commit 'f4cf8817de14d2a14dbef3e6f319d65dbfba6e47':
Verify OMX buffer sizes prior to access
f1a2668f4f09e38722424a6a74f0ea26f49e4110 29-Feb-2016 Marco Nelissen <marcone@google.com> DO NOT MERGE Verify OMX buffer sizes prior to access

Bug: 27207275
Change-Id: I4412825d1ee233d993af0a67708bea54304ff62d
oftAVCEnc.cpp
2720c8b094cfa58de314daa8e5e4fb4fa81fe3b2 29-Feb-2016 Marco Nelissen <marcone@google.com> Verify OMX buffer sizes prior to access

Bug: 27207275
Change-Id: I4412825d1ee233d993af0a67708bea54304ff62d
oftAVCEnc.cpp
a151bf331e801bba1d0a2c99d53b24584f0c4507 26-Feb-2016 Doney Alex <doney.alex@ittiam.com> Merge "SoftAvcEnc: Added support for Constrained intra prediction." am: f125dacbe5
am: 4a18e69c8d

* commit '4a18e69c8dc8d25327c2580aded543c52ee96559':
SoftAvcEnc: Added support for Constrained intra prediction.
f125dacbe505f97f4d8e051ecac49c571750dc95 26-Feb-2016 Hangyu Kuang <hkuang@google.com> Merge "SoftAvcEnc: Added support for Constrained intra prediction."
e239dc16d5dd5a977908a96b363dd2279b6db969 24-Feb-2016 Doney Alex <doney.alex@ittiam.com> SoftAvcEnc: Added support for Constrained intra prediction.

Change-Id: I1a3e8fbad0bea728311c2b4b0513c9565ecf9a14
oftAVCEnc.cpp
oftAVCEnc.h
7c36a6bc3f3fe4fe6d1d36b92c3a203de654b012 11-Feb-2016 Hangyu Kuang <hkuang@google.com> stagefright: Support changing refresh mode during runtime in SoftAVC encoder.

Bug: 26587630
Change-Id: I595bdefb84d7da583361da12f793be15c51f4cdf
oftAVCEnc.cpp
oftAVCEnc.h
30fecffdba48c63c2c14783d1eef08b82f422c89 05-Feb-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> SoftAVCEnc: Modified the code for runtime change in params to be generic

mBitrateUpdated and mKeyFrameRequested are removed and instead mUpdateFlag
with one bit for each param, will be used to configure the codec in runtime.
This change will make it cleaner to configure more parameters in run-time

Change-Id: I935827b54b0de469fa3c83237cccd4b5e4dcedd6
oftAVCEnc.cpp
oftAVCEnc.h
d4456ec782fc8a7d95a569614af91e81b4a58560 05-Feb-2016 Harish Mahendrakar <harish.mahendrakar@ittiam.com> SoftAVCEnc: Modified the code for runtime change in params to be generic

mBitrateUpdated and mKeyFrameRequested are removed and instead mUpdateFlag
with one bit for each param, will be used to configure the codec in runtime.
This change will make it cleaner to configure more parameters in run-time

Change-Id: I935827b54b0de469fa3c83237cccd4b5e4dcedd6
oftAVCEnc.cpp
oftAVCEnc.h
870aff9bd2442c8877f5d6b12c73032b5f24535a 28-Jan-2016 Hangyu Kuang <hkuang@google.com> stagefright: Support intra refresh in SoftAVC video encoder.

Bug: 26587630

Change-Id: Ia04dab11978fd8cc5d68bf721900775e13987a9a
oftAVCEnc.cpp
oftAVCEnc.h
f2944a0e682258ae281813c0644f2a668b906cb8 23-Oct-2015 Dan Austin <danielaustin@google.com> Merge "Enable fsanitize signed-integer-overflow in AVC soft encoder"
b3d9f56313f1838649712297ebc8205c4ec14870 09-Oct-2015 Marco Nelissen <marcone@google.com> Reconcile with master after mass cherrypicks

Change-Id: I74649c9771212aa6309ea16c253723994b8e3622
oftAVCEnc.cpp
dd7610b3141e757c2f076dec1d5b0b8a6e8607f9 11-Sep-2015 Dan Austin <danielaustin@google.com> Enable fsanitize signed-integer-overflow in AVC soft encoder

Bug: 23752600
Change-Id: I29a57d07e41bd63a81adf89f42f596c91f580eed
ndroid.mk
d5037b3576f9621c1ac16086bd9d9337890f3b77 19-Aug-2015 Wei Jia <wjia@google.com> am 1cb6d761: Merge "libstagefright: fix overflow in SoftAVCEnc." into mnc-dev

* commit '1cb6d761be0bf58aa48d9032c0704d8e31553906':
libstagefright: fix overflow in SoftAVCEnc.
595fede0cf7b53b4d3f51d72df8d66fd7ff14d1c 18-Aug-2015 Wei Jia <wjia@google.com> libstagefright: fix overflow in SoftAVCEnc.

Bug: 20674674
Change-Id: I8e320218180926d46d223cb72523118079f72342
oftAVCEnc.cpp
c2d3b25ac4c42ba4827ed0c77a52a6a85cdca435 27-Jun-2015 Martin Storsjo <martin@martin.st> SoftAVCEnc: Stop using the u4_strd field in the set dimensions struct

Since 90a3904fd3 in external/libavc, this field isn't used any longer.
After SoftAVCEnc stops using it, it can be removed from the library
altogether.

Bug: 22860270

Change-Id: I0e0fcab6740ef420df7776ede11b35aa1a383a48
oftAVCEnc.cpp
08bf77b45306ca1f1a11bd1a4d11ea03fbb5f836 28-Jul-2015 Marco Nelissen <marcone@google.com> am 23d74231: am 4c04495f: Merge "SoftAVCEnc: Stop using the u4_strd field in the set dimensions struct"

* commit '23d74231963e2ca21384e06eec1962ac46d47ce0':
SoftAVCEnc: Stop using the u4_strd field in the set dimensions struct
c884adf00fce70170003d6f18ad65c8912535ac8 27-Jun-2015 Martin Storsjo <martin@martin.st> SoftAVCEnc: Stop using the u4_strd field in the set dimensions struct

Since 90a3904fd3 in external/libavc, this field isn't used any longer.
After SoftAVCEnc stops using it, it can be removed from the library
altogether.

Change-Id: I0e0fcab6740ef420df7776ede11b35aa1a383a48
oftAVCEnc.cpp
1ad56353aec03b0255d5cd5b67f9e6df780d9b65 01-Jun-2015 Doney Alex <doney.alex@ittiam.com> SoftAVCEnc: Added support for Main Profile encoding.

Configured intra frame interval and deblock in setParams.

Change-Id: If501fa0ac42f2c4bf6604ea84715f7f13f707e74
oftAVCEnc.cpp
oftAVCEnc.h
defb2374a0e0adbd3714a2cd02be3c309cde4875 09-Jun-2015 Martin Storsjo <martin@martin.st> Clear the executable bit from source files

The executable bit was accidentally set on these files in commits
eedcd5cccc and ec7398f37.

Change-Id: I057e8841ad12561b05c4dc9553ca1cd664c7f59c
oftAVCEnc.cpp
7099d9b5f3761dbe3f76166129c3f0a22d2470ef 24-Jun-2015 Marco Nelissen <marcone@google.com> resolved conflicts for merge of 697a449f to mnc-dev-plus-aosp

Change-Id: Id6e85e5e6ed10c3103dc7591508e95735a0c5153
c0c51cbd26523fdf30bb19aa3d75c6b7dcc9daee 24-Jun-2015 Marco Nelissen <marcone@google.com> am 53670d35: am c182ac9a: Merge "Clear the executable bit from source files"

* commit '53670d357f1d2321841d6fc898d8caeee82390d0':
Clear the executable bit from source files
15a2cb0082d7c0a004c2fdc563c153f4781437d2 01-Jun-2015 Doney Alex <doney.alex@ittiam.com> SoftAVCEnc: Added support for Main Profile encoding.

Configured intra frame interval and deblock in setParams.

Change-Id: If501fa0ac42f2c4bf6604ea84715f7f13f707e74
oftAVCEnc.cpp
oftAVCEnc.h
7ad1667690966b620f2e2912b970f2a815449bfe 09-Jun-2015 Martin Storsjo <martin@martin.st> Clear the executable bit from source files

The executable bit was accidentally set on these files in commits
eedcd5cccc and ec7398f37.

Change-Id: I057e8841ad12561b05c4dc9553ca1cd664c7f59c
oftAVCEnc.cpp
f6fe4340219a8e674f3250fe32d4697ec8184b24 04-Jun-2015 Wei Jia <wjia@google.com> SoftAVCEnc: check requested memory size before allocation.

Bug: 20674674
Change-Id: I569e7a9b33fe64779a40e55539929c3dc4303c19
oftAVCEnc.cpp
cbe6ac2f281362d9dfbff867dd414d5cc2f6d21e 27-May-2015 Chong Zhang <chz@google.com> SoftAVCEnc: encode EOS frame is size is non-zero

bug: 20947883
bug: 20507129
Change-Id: I557584e8566b8529329f35e0949cb3ee24965ff4
oftAVCEnc.cpp
df0ebf5f9ea5c16aaec4752bdf06af101cc541b8 28-Apr-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> SoftAVCEnc: Removed alignment requirement on input width

Change-Id: Id6e1abf588420beec6f1af4394b69b2e53487299
oftAVCEnc.cpp
ec7398f371d35a8801c29eb303c14ec85a6e5a9e 28-Apr-2015 Harish Mahendrakar <harish.mahendrakar@ittiam.com> SoftAVCEnc: Removed alignment requirement on input width

Change-Id: Id6e1abf588420beec6f1af4394b69b2e53487299
oftAVCEnc.cpp
ee4e1b1a63758941460ae79a064249d3a5189443 17-Apr-2015 Lajos Molnar <lajos@google.com> stagefright: warnings be gone, some are now errors, use clang

Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
oftAVCEnc.cpp
oftAVCEnc.h
22b3b44ae459974794403ed0f76d95ae43d92985 03-Apr-2015 Venkatarama Avadhani <venkatarama.avadhani@ittiam.com> stagefright: add SoftAVCEnc using libavc

Change-Id: Ic51e92e9d86db21109b8714e822697869e184cd1
ndroid.mk
oftAVCEnc.cpp
oftAVCEnc.h