summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c45f78)
raw | patch | inline | side by side (parent: 5c45f78)
author | Buddy Liong <buddy.liong@ti.com> | |
Tue, 27 Oct 2015 22:40:33 +0000 (17:40 -0500) | ||
committer | Buddy Liong <buddy.liong@ti.com> | |
Tue, 27 Oct 2015 22:40:33 +0000 (17:40 -0500) |
Commit id: 5c45f781d307f799af9dceb5ff636d5477694e16
[DCE_TEST] Fixing the decoded output resolution
Only fixing H.264 1920x1080 for non-tiler.
The patch brokes MPEG2 decoding and H.264 1920x1080 with TILER.
Reverting the changes.
Change-Id: Ibf91c40e330c5eb56e804628db3a0e4ece469e8a
Signed-off-by: Buddy Liong <buddy.liong@ti.com>
[DCE_TEST] Fixing the decoded output resolution
Only fixing H.264 1920x1080 for non-tiler.
The patch brokes MPEG2 decoding and H.264 1920x1080 with TILER.
Reverting the changes.
Change-Id: Ibf91c40e330c5eb56e804628db3a0e4ece469e8a
Signed-off-by: Buddy Liong <buddy.liong@ti.com>
test_qnx/dce_test/dce_test.c | patch | blob | history |
index 17fbd447b31897ce15fb68fdc321b66981a4d585..7e60dd0272ac102158294f9e47f11b79a67f181b 100644 (file)
DEBUG("Num Frames is %d width=%d, height=%d", frameCount, width, height);
+ /* calculate output buffer parameters: */
+ width = ALIGN2(width, 4); /* round up to MB */
+ height = ALIGN2(height, 4); /* round up to MB */
+
switch( codec_switch ) {
case DCE_TEST_H264 :
padded_width = ALIGN2(width + (2 * PADX_H264), 7);
params->maxBitRate = 10000000;
params->displayDelay = IVIDDEC3_DISPLAY_DELAY_AUTO;
params->numOutputDataUnits = 0;
- params->maxWidth = ALIGN2(width, 4);
+ params->maxWidth = width;
break;
case DCE_TEST_MPEG4 :
params = dce_alloc(sizeof(IMPEG4VDEC_Params));
params->maxBitRate = 10000000;
params->displayDelay = IVIDDEC3_DISPLAY_DELAY_1;
params->numOutputDataUnits = 0;
- params->maxWidth = ALIGN2(width, 4);
+ params->maxWidth = width;
break;
case DCE_TEST_VC1SMP :
case DCE_TEST_VC1AP :
params->maxBitRate = 45000000;
params->displayDelay = IVIDDEC3_DISPLAY_DELAY_1;
params->numOutputDataUnits = 0;
- params->maxWidth = ALIGN2(width, 4);
+ params->maxWidth = width;
break;
case DCE_TEST_MJPEG :
params = dce_alloc(sizeof(IJPEGVDEC_Params));
params->maxBitRate = 10000000;
params->displayDelay = IVIDDEC3_DISPLAY_DELAY_1;
params->numOutputDataUnits = 1;
- params->maxWidth = ALIGN2(width, 4);
+ params->maxWidth = width;
break;
case DCE_TEST_MPEG2 :
}
- params->maxHeight = ALIGN2(height, 4);
+ params->maxHeight = height;
params->maxFrameRate = 30000;
params->dataEndianness = XDM_BYTE;
params->forceChromaFormat = XDM_YUV_420SP;