summaryrefslogtreecommitdiffstats
path: root/decoder/impeg2d_structs.h
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2015-08-05 15:47:51 +0530
committerMarco Nelissen <marcone@google.com>2015-10-12 21:18:07 +0000
commit903fd2be3063609dd3cd7ad0691de46c1b52b7d1 (patch)
tree5f08406bbf76d0a66c0c5e609ef91d068c283f0a /decoder/impeg2d_structs.h
parentb34913857dacd4b7f82715c48ae1de9c56ede9e0 (diff)
downloadandroid_external_libmpeg2-903fd2be3063609dd3cd7ad0691de46c1b52b7d1.tar.gz
android_external_libmpeg2-903fd2be3063609dd3cd7ad0691de46c1b52b7d1.tar.bz2
android_external_libmpeg2-903fd2be3063609dd3cd7ad0691de46c1b52b7d1.zip
Fixed few stride issues
Removed alignment requirements for stride Fixed strides passed to frame copy function Display width is passed to frame copy function instead of stride Moved decoder specific definitions from common to decoder files Bug: 20932810 Change-Id: Ieb1370e2ff9c6b3d04e4c0b9630653943346eb54
Diffstat (limited to 'decoder/impeg2d_structs.h')
-rw-r--r--decoder/impeg2d_structs.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/decoder/impeg2d_structs.h b/decoder/impeg2d_structs.h
index 63a0b03..9fa2631 100644
--- a/decoder/impeg2d_structs.h
+++ b/decoder/impeg2d_structs.h
@@ -20,6 +20,27 @@
#ifndef __IMPEG2D_STRUCTS_H__
#define __IMPEG2D_STRUCTS_H__
+/* Decoder needs at least 4 reference buffers in order to support format conversion in a thread and
+to support B pictures. Because of format conversion in a thread, codec delay is now 2 frames instead of 1.
+To reduce this delay, format conversion has to wait for MB status before converting for B pictures.
+To avoid this check the delay is increased to 2 and hence number of reference frames minimum is 4.
+Because of temporal dependency in deinterlacer one additional buffer is also needed */
+#define NUM_INT_FRAME_BUFFERS 4
+
+
+#define MAX_WIDTH 4096
+#define MAX_HEIGHT 2160
+
+#define MIN_WIDTH 16
+#define MIN_HEIGHT 16
+
+
+#define MAX_FRM_SIZE (MAX_WIDTH * MAX_HEIGHT * 2) /* Supports only 420P and 422ILE */
+
+#define DEC_ORDER 0
+
+#define MAX_BITSTREAM_BUFFER_SIZE 2000 * 1024
+
typedef enum
{
CMD_PROCESS,