aboutsummaryrefslogtreecommitdiff
path: root/decoder/ih264d_structs.h
diff options
context:
space:
mode:
authorHamsalekha S <hamsalekha.s@ittiam.com>2015-06-09 15:54:31 +0530
committerMarco Nelissen <marcone@google.com>2015-06-25 08:25:44 -0700
commit9f0dcba9b4f792aedf37b6ecdceae46d36b93068 (patch)
tree981bfeb3cc491fede193c67c5f554f1c1ec2ce9d /decoder/ih264d_structs.h
parentb8681a4380ad0c2a98e4867fb33942aa7f7772bf (diff)
downloadlibavc-9f0dcba9b4f792aedf37b6ecdceae46d36b93068.tar.gz
Improved error resilience in decoder
Fixed buffer management for error cases Fixed end of picture detection logic for multiple slice error cases Fixed handling of incomplete frame, missing slices. Change-Id: Iae447667e4d88869a8bf992180cacd77870b9877
Diffstat (limited to 'decoder/ih264d_structs.h')
-rw-r--r--decoder/ih264d_structs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/decoder/ih264d_structs.h b/decoder/ih264d_structs.h
index 4e3f0bb..062747b 100644
--- a/decoder/ih264d_structs.h
+++ b/decoder/ih264d_structs.h
@@ -524,7 +524,6 @@ typedef struct
unsigned. LSB byte : weight and MSB byte: u4_ofst */
UWORD32 u4_wt_ofst_lx[2][MAX_REF_BUFS][3];
void * pv_codec_handle; /* For Error Handling */
- UWORD8 u1_end_of_frame_signal;
/* This is used when reordering is done in Forward or */
/* backward lists. This is because reordering can point */
@@ -607,6 +606,9 @@ typedef struct code_overlay_ctxt
#define REJECT_CUR_PIC (0x01)
#define REJECT_PB_PICS (0x02)
+#define MASK_REJECT_CUR_PIC (0xFE)
+#define MASK_REJECT_PB_PICS (0xFD)
+
#define PIC_TYPE_UNKNOWN (0xFF)
#define PIC_TYPE_I (0x00)
#define SYNC_FRM_DEFAULT (0xFFFFFFFF)
@@ -1351,6 +1353,7 @@ typedef struct _DecStruct
UWORD32 u4_cur_slice_decode_done;
UWORD32 u4_extra_mem_used;
+ /* 2 first slice not parsed , 1 :first slice parsed , 0 :first valid slice header parsed*/
UWORD32 u4_first_slice_in_pic;
UWORD32 u4_num_cores;
IVD_ARCH_T e_processor_arch;