Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Code
Merge requests
4
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chips and Media
kernel
Commits
ac59eafd
Commit
ac59eafd
authored
1 year ago
by
Sebastian Fricke
Browse files
Options
Downloads
Patches
Plain Diff
WIP: m2m: add ignore streaming flag
parent
c80ba7e6
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/media/v4l2-mem2mem.h
+17
-0
17 additions, 0 deletions
include/media/v4l2-mem2mem.h
with
17 additions
and
0 deletions
include/media/v4l2-mem2mem.h
+
17
−
0
View file @
ac59eafd
...
...
@@ -57,6 +57,16 @@ struct v4l2_m2m_dev;
* @rdy_spinlock: spin lock to protect the struct usage
* @num_rdy: number of buffers ready to be processed
* @buffered: is the queue buffered?
* @ignore_streaming: Dictates whether the queue must be streaming for a job to
* be queued.
* This is useful, for example, when the driver requires to
* initialize the sequence with a firmware, where only a
* queued OUTPUT queue buffer and STREAMON on the OUTPUT
* queue is required to perform the anlysis of the bitstream
* header.
* This means the driver is responsible for implementing the
* job_ready callback correctly to make sure that requirements
* for actual decoding are met.
*
* Queue for buffers ready to be processed as soon as this
* instance receives access to the device.
...
...
@@ -69,6 +79,7 @@ struct v4l2_m2m_queue_ctx {
spinlock_t
rdy_spinlock
;
u8
num_rdy
;
bool
buffered
;
bool
ignore_streaming
;
};
/**
...
...
@@ -564,6 +575,12 @@ static inline void v4l2_m2m_set_dst_buffered(struct v4l2_m2m_ctx *m2m_ctx,
m2m_ctx
->
cap_q_ctx
.
buffered
=
buffered
;
}
static
inline
void
v4l2_m2m_set_dst_ignore_streaming
(
struct
v4l2_m2m_ctx
*
m2m_ctx
,
bool
ignore_streaming
)
{
m2m_ctx
->
cap_q_ctx
.
ignore_streaming
=
ignore_streaming
;
}
/**
* v4l2_m2m_ctx_release() - release m2m context
*
...
...
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