Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
1ac14a51
Commit
1ac14a51
authored
Apr 04, 2012
by
Martin Storsjö
Committed by
Jean-Baptiste Kempf
Apr 04, 2012
Browse files
omxil: Show crop rect info in PrintOmx
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
d79bf1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/omxil/utils.c
View file @
1ac14a51
...
...
@@ -828,6 +828,7 @@ void PrintOmx(decoder_t *p_dec, OMX_HANDLETYPE omx_handle, OMX_U32 i_port)
OmxFormatParam
format_param
;
vlc_fourcc_t
i_fourcc
;
const
char
*
psz_name
;
OMX_CONFIG_RECTTYPE
crop_rect
;
if
(
i_port
!=
OMX_ALL
&&
i_port
!=
param
.
nStartPortNumber
+
j
)
continue
;
...
...
@@ -864,14 +865,26 @@ void PrintOmx(decoder_t *p_dec, OMX_HANDLETYPE omx_handle, OMX_U32 i_port)
GetVlcChromaFormat
(
definition
.
format
.
video
.
eColorFormat
,
&
i_fourcc
,
&
psz_name
);
msg_Dbg
(
p_dec
,
" -> video %s %ix%i@%.2f (%i,%i) (%i,%i)"
,
psz_name
,
OMX_INIT_STRUCTURE
(
crop_rect
);
crop_rect
.
nPortIndex
=
definition
.
nPortIndex
;
omx_error
=
OMX_GetConfig
(
omx_handle
,
OMX_IndexConfigCommonOutputCrop
,
&
crop_rect
);
if
(
omx_error
!=
OMX_ErrorNone
)
{
crop_rect
.
nLeft
=
crop_rect
.
nTop
=
0
;
crop_rect
.
nWidth
=
definition
.
format
.
video
.
nFrameWidth
;
crop_rect
.
nHeight
=
definition
.
format
.
video
.
nFrameHeight
;
}
msg_Dbg
(
p_dec
,
" -> video %s %ix%i@%.2f (%i,%i) (%i,%i) (%i,%i,%i,%i)"
,
psz_name
,
(
int
)
definition
.
format
.
video
.
nFrameWidth
,
(
int
)
definition
.
format
.
video
.
nFrameHeight
,
(
float
)
definition
.
format
.
video
.
xFramerate
/
(
float
)(
1
<<
16
),
(
int
)
definition
.
format
.
video
.
eCompressionFormat
,
(
int
)
definition
.
format
.
video
.
eColorFormat
,
(
int
)
definition
.
format
.
video
.
nStride
,
(
int
)
definition
.
format
.
video
.
nSliceHeight
);
(
int
)
definition
.
format
.
video
.
nSliceHeight
,
(
int
)
crop_rect
.
nLeft
,
(
int
)
crop_rect
.
nTop
,
(
int
)
crop_rect
.
nWidth
,
(
int
)
crop_rect
.
nHeight
);
break
;
case
OMX_PortDomainAudio
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment