Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
1ac14a51
Commit
1ac14a51
authored
Apr 04, 2012
by
Martin Storsjö
Committed by
Jean-Baptiste Kempf
Apr 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omxil: Show crop rect info in PrintOmx
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
d79bf1ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
modules/codec/omxil/utils.c
modules/codec/omxil/utils.c
+15
-2
No files found.
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)
...
@@ -828,6 +828,7 @@ void PrintOmx(decoder_t *p_dec, OMX_HANDLETYPE omx_handle, OMX_U32 i_port)
OmxFormatParam
format_param
;
OmxFormatParam
format_param
;
vlc_fourcc_t
i_fourcc
;
vlc_fourcc_t
i_fourcc
;
const
char
*
psz_name
;
const
char
*
psz_name
;
OMX_CONFIG_RECTTYPE
crop_rect
;
if
(
i_port
!=
OMX_ALL
&&
i_port
!=
param
.
nStartPortNumber
+
j
)
if
(
i_port
!=
OMX_ALL
&&
i_port
!=
param
.
nStartPortNumber
+
j
)
continue
;
continue
;
...
@@ -864,14 +865,26 @@ void PrintOmx(decoder_t *p_dec, OMX_HANDLETYPE omx_handle, OMX_U32 i_port)
...
@@ -864,14 +865,26 @@ void PrintOmx(decoder_t *p_dec, OMX_HANDLETYPE omx_handle, OMX_U32 i_port)
GetVlcChromaFormat
(
definition
.
format
.
video
.
eColorFormat
,
GetVlcChromaFormat
(
definition
.
format
.
video
.
eColorFormat
,
&
i_fourcc
,
&
psz_name
);
&
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
.
nFrameWidth
,
(
int
)
definition
.
format
.
video
.
nFrameHeight
,
(
int
)
definition
.
format
.
video
.
nFrameHeight
,
(
float
)
definition
.
format
.
video
.
xFramerate
/
(
float
)(
1
<<
16
),
(
float
)
definition
.
format
.
video
.
xFramerate
/
(
float
)(
1
<<
16
),
(
int
)
definition
.
format
.
video
.
eCompressionFormat
,
(
int
)
definition
.
format
.
video
.
eCompressionFormat
,
(
int
)
definition
.
format
.
video
.
eColorFormat
,
(
int
)
definition
.
format
.
video
.
eColorFormat
,
(
int
)
definition
.
format
.
video
.
nStride
,
(
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
;
break
;
case
OMX_PortDomainAudio
:
case
OMX_PortDomainAudio
:
...
...
Write
Preview
Markdown
is supported
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