Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libv4l-codec-plugins
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Dufresne
libv4l-codec-plugins
Commits
55a76bd7
Commit
55a76bd7
authored
May 21, 2020
by
Ezequiel Garcia
Browse files
Options
Downloads
Patches
Plain Diff
libv4l-rockchip_v2: Set default parameters
Signed-off-by:
Ezequiel Garcia
<
ezequiel@collabora.com
>
parent
8dbd8ab2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libv4l-rockchip_v2/libv4l-encplugin-rockchip.c
+4
-3
4 additions, 3 deletions
libv4l-rockchip_v2/libv4l-encplugin-rockchip.c
with
4 additions
and
3 deletions
libv4l-rockchip_v2/libv4l-encplugin-rockchip.c
+
4
−
3
View file @
55a76bd7
...
@@ -242,6 +242,10 @@ static void *plugin_init(int fd)
...
@@ -242,6 +242,10 @@ static void *plugin_init(int fd)
ctx
->
runtime_param
.
framerate_numer
=
DEFAULT_FRAME_RATE
;
ctx
->
runtime_param
.
framerate_numer
=
DEFAULT_FRAME_RATE
;
ctx
->
runtime_param
.
framerate_denom
=
1
;
ctx
->
runtime_param
.
framerate_denom
=
1
;
ctx
->
runtime_param
.
bitrate
=
DEFAULT_BITRATE
;
ctx
->
runtime_param
.
bitrate
=
DEFAULT_BITRATE
;
ctx
->
init_param
.
h264e
.
v4l2_h264_profile
=
V4L2_MPEG_VIDEO_H264_PROFILE_MAIN
;
ctx
->
init_param
.
h264e
.
v4l2_h264_level
=
V4L2_MPEG_VIDEO_H264_LEVEL_4_0
;
ctx
->
init_param
.
h264e
.
h264_sps_pps_before_idr
=
true
;
VLOG_FD
(
1
,
"Success. ctx=%p"
,
ctx
);
VLOG_FD
(
1
,
"Success. ctx=%p"
,
ctx
);
return
ctx
;
return
ctx
;
...
@@ -778,9 +782,6 @@ static int initialize_libvpu(struct encoder_context *ctx, int fd)
...
@@ -778,9 +782,6 @@ static int initialize_libvpu(struct encoder_context *ctx, int fd)
{
{
struct
rk_vepu_init_param
init_param
;
struct
rk_vepu_init_param
init_param
;
memset
(
&
init_param
,
0
,
sizeof
(
init_param
));
memset
(
&
init_param
,
0
,
sizeof
(
init_param
));
/* The default value of h264 level is 4.0. */
init_param
.
h264e
.
v4l2_h264_level
=
V4L2_MPEG_VIDEO_H264_LEVEL_4_0
;
/* Get the input format. */
/* Get the input format. */
struct
v4l2_format
format
;
struct
v4l2_format
format
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment