summaryrefslogtreecommitdiff
authorBin Yang <bin.yang@amlogic.com>2020-08-21 11:55:12 (GMT)
committer Bin Yang <bin.yang@amlogic.com>2020-08-21 11:55:12 (GMT)
commitd80673057d47efe8c16f0de5f5c62e0a7dabfe75 (patch)
treeca42ee83fe657d8407f4b1592db663d073364d40
parentfce994e5f327dfa9b7dc0a4e5c404fa4ee7d3401 (diff)
downloadmedia_modules-d80673057d47efe8c16f0de5f5c62e0a7dabfe75.zip
media_modules-d80673057d47efe8c16f0de5f5c62e0a7dabfe75.tar.gz
media_modules-d80673057d47efe8c16f0de5f5c62e0a7dabfe75.tar.bz2
Revert "mpeg12: fix output times error. [2/2]"
This reverts commit fce994e5f327dfa9b7dc0a4e5c404fa4ee7d3401. Reason for revert: <TEST> Change-Id: I7cd0a8899cbd8cf2cdb92703d876e28ddc6a4101
Diffstat
-rw-r--r--drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
index 764a97d..ef45eb8 100644
--- a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
+++ b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
@@ -353,7 +353,7 @@ unsigned int mpeg12_debug_mask = 0xff;
/*static int counter_max = 5;*/
static u32 run_ready_min_buf_num = 2;
-static u32 forceProgressive = 1;
+
#define PRINT_FLAG_ERROR 0x0
#define PRINT_FLAG_RUN_FLOW 0X0001
@@ -1543,9 +1543,6 @@ static int prepare_display_buf(struct vdec_mpeg12_hw_s *hw,
struct aml_vcodec_ctx * v4l2_ctx = hw->v4l2_ctx;
ulong nv_order = VIDTYPE_VIU_NV21;
bool pb_skip = false;
- bool top_field_first = 0;
- bool repeat_first_field = 0;
- u32 tmp_field_num = 1;
#ifdef NV21
type = nv_order;
@@ -1578,29 +1575,6 @@ static int prepare_display_buf(struct vdec_mpeg12_hw_s *hw,
field_num = (info & PICINFO_RPT_FIRST) ? 3 : 2;
}
- top_field_first = (info & PICINFO_TOP_FIRST) ? 1:0;
- repeat_first_field = (info & PICINFO_RPT_FIRST) ? 1:0;
-
- if (hw->seqinfo & SEQINFO_PROG) {
- if (repeat_first_field) {
- tmp_field_num++;
- if (top_field_first)
- tmp_field_num++;
- }
- } else {
- if ((info & PICINFO_FRAME) == PICINFO_FRAME) {
- tmp_field_num++;
- if (repeat_first_field)
- tmp_field_num++;
- }
- }
-
- if ((tmp_field_num == 1) && (field_num == 2)) {
- if (forceProgressive) {
- field_num = 1;
- type |= VIDTYPE_PROGRESSIVE | VIDTYPE_VIU_FIELD | nv_order;
- }
- }
for (i = 0; i < field_num; i++) {
if (kfifo_get(&hw->newframe_q, &vf) == 0) {
debug_print(DECODE_ID(hw), PRINT_FLAG_ERROR,
@@ -3601,8 +3575,6 @@ module_param_array(max_process_time, uint, &max_decode_instance_num, 0664);
module_param(udebug_flag, uint, 0664);
MODULE_PARM_DESC(udebug_flag, "\n ammvdec_mpeg12 udebug_flag\n");
-module_param(forceProgressive, uint, 0664);
-MODULE_PARM_DESC(forceProgressive, "\n forceProgressive\n");
#ifdef AGAIN_HAS_THRESHOLD
module_param(again_threshold, uint, 0664);