Skip to content

Commit

Permalink
Fix advanced deinterlace for Raspberry Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
andbey0nd authored and andoma committed Mar 20, 2018
1 parent a472a2a commit 05e6073
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ui/glw/glw_video_rpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,16 +338,20 @@ ovd_set_codec(media_codec_t *mc, glw_video_t *gv, const frame_info_t *fi,
// add extra buffers for Advanced Deinterlace
OMX_PARAM_U32TYPE extra_buffers;
OMX_INIT_STRUCTURE(extra_buffers);
extra_buffers.nU32 = 3;
extra_buffers.nU32 = 6;
extra_buffers.nPortIndex = 130;
omxchk(OMX_SetParameter(ovd->ovd_imgfx->oc_handle,
OMX_IndexParamBrcmExtraBuffers, &extra_buffers));

OMX_CONFIG_IMAGEFILTERPARAMSTYPE image_filter;
OMX_INIT_STRUCTURE(image_filter);
image_filter.nPortIndex = 191;

image_filter.nNumParams = 1;
image_filter.nParams[0] = 3;
image_filter.nNumParams = 4;
image_filter.nParams[0] = 6;
image_filter.nParams[1] = 0; // default frame interval
image_filter.nParams[2] = 0; // half framerate
image_filter.nParams[3] = 1; // use qpus

if(0) {
image_filter.eImageFilter = OMX_ImageFilterDeInterlaceFast;
Expand Down

0 comments on commit 05e6073

Please sign in to comment.