Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
f115a2b7
Commit
f115a2b7
authored
Aug 13, 2019
by
Zhong Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/qsvdec: add function ff_qsv_map_picstruct()
Signed-off-by:
Zhong Li
<
zhong.li@intel.com
>
parent
1b0a8e48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
qsv.c
libavcodec/qsv.c
+18
-0
qsv_internal.h
libavcodec/qsv_internal.h
+2
-0
No files found.
libavcodec/qsv.c
View file @
f115a2b7
...
...
@@ -245,6 +245,24 @@ int ff_qsv_find_surface_idx(QSVFramesContext *ctx, QSVFrame *frame)
return
AVERROR_BUG
;
}
enum
AVFieldOrder
ff_qsv_map_picstruct
(
int
mfx_pic_struct
)
{
enum
AVFieldOrder
field
=
AV_FIELD_UNKNOWN
;
switch
(
mfx_pic_struct
&
0xF
)
{
case
MFX_PICSTRUCT_PROGRESSIVE
:
field
=
AV_FIELD_PROGRESSIVE
;
break
;
case
MFX_PICSTRUCT_FIELD_TFF
:
field
=
AV_FIELD_TT
;
break
;
case
MFX_PICSTRUCT_FIELD_BFF
:
field
=
AV_FIELD_BB
;
break
;
}
return
field
;
}
enum
AVPictureType
ff_qsv_map_pictype
(
int
mfx_pic_type
)
{
enum
AVPictureType
type
;
...
...
libavcodec/qsv_internal.h
View file @
f115a2b7
...
...
@@ -95,6 +95,8 @@ int ff_qsv_level_to_mfx(enum AVCodecID codec_id, int level);
int
ff_qsv_map_pixfmt
(
enum
AVPixelFormat
format
,
uint32_t
*
fourcc
);
enum
AVPictureType
ff_qsv_map_pictype
(
int
mfx_pic_type
);
enum
AVFieldOrder
ff_qsv_map_picstruct
(
int
mfx_pic_struct
);
int
ff_qsv_init_internal_session
(
AVCodecContext
*
avctx
,
mfxSession
*
session
,
const
char
*
load_plugins
);
...
...
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