diff options
author | Hong Teng <hongteng@google.com> | 2011-11-10 14:58:16 -0800 |
---|---|---|
committer | Hong Teng <hongteng@google.com> | 2011-11-11 18:31:00 -0800 |
commit | a3dedf13b44ae9b3fda943b73129f29aab02daa5 (patch) | |
tree | 3297d5aada7d27e7148d9c56b16b71cf50b5db4a /media_profiles.xml | |
parent | a9d834254abbf2e5155a46a2c251e195f8088fec (diff) | |
download | device_samsung_tuna-a3dedf13b44ae9b3fda943b73129f29aab02daa5.zip device_samsung_tuna-a3dedf13b44ae9b3fda943b73129f29aab02daa5.tar.gz device_samsung_tuna-a3dedf13b44ae9b3fda943b73129f29aab02daa5.tar.bz2 |
Fix for issue 5309336
-add videoeditor maximum prefetch YUV frames in media_profiles.xml to limit the total memory usage.
Change-Id: I37cf5bb6dd63495b745b24abfccc554236df0aeb
Diffstat (limited to 'media_profiles.xml')
-rwxr-xr-x | media_profiles.xml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/media_profiles.xml b/media_profiles.xml index 4a6eb46..b2163fe 100755 --- a/media_profiles.xml +++ b/media_profiles.xml @@ -75,6 +75,7 @@ <!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED> <!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED> <!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED> +<!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED> <!ELEMENT ExportVideoProfile EMPTY> <!ATTLIST ExportVideoProfile name (h264|h263|m4v) #REQUIRED> <!ATTLIST ExportVideoProfile profile CDATA #REQUIRED> @@ -379,9 +380,21 @@ --> <VideoDecoderCap name="wmv" enabled="false"/> <AudioDecoderCap name="wma" enabled="false"/> + + <!-- + The VideoEditor Capability configuration: + - maxInputFrameWidth: maximum video width of imported video clip. + - maxInputFrameHeight: maximum video height of imported video clip. + - maxOutputFrameWidth: maximum video width of exported video clip. + - maxOutputFrameHeight: maximum video height of exported video clip. + - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder, + used to limit the amount of memory for prefetched YUV frames. + For this platform, it allows maximum 30MB(3MB per 1080p frame x 10 + frames) memory. + --> <VideoEditorCap maxInputFrameWidth="1920" maxInputFrameHeight="1080" maxOutputFrameWidth="1920" - maxOutputFrameHeight="1080"/> + maxOutputFrameHeight="1080" maxPrefetchYUVFrames="10"/> <!-- The VideoEditor Export codec profile and level values correspond to the values in OMX_Video.h. |