Skip to content

Commit

Permalink
Add display aspect ratio control
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Dec 4, 2018
1 parent af89a4a commit f1eccd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions fpv_video/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
OBJS=fpv_video.o
BIN=fpv_video
LDFLAGS+=-lilclient
CFLAGS+=-DDISPLAY_SET_NOASPECT

include Makefile.include

3 changes: 2 additions & 1 deletion fpv_video/fpv_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ static int video_decode_test()

ilclient_change_component_state(video_decode, OMX_StateExecuting);

#ifdef DISPLAY_SET_NOASPECT
{
OMX_CONFIG_DISPLAYREGIONTYPE display;
OMX_ERRORTYPE omx_err;
Expand All @@ -142,7 +143,7 @@ static int video_decode_test()
printf("Unable to set aspect: 0x%x\n", omx_err);
}
}

#endif
while((buf = ilclient_get_input_buffer(video_decode, 130, 1)) != NULL)
{
// feed data and wait until we get port settings changed
Expand Down

0 comments on commit f1eccd3

Please sign in to comment.