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
4bb80133
Commit
4bb80133
authored
Sep 29, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/v4l2_buffers: More clear return code documentation
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
64e034da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
v4l2_buffers.h
libavcodec/v4l2_buffers.h
+8
-8
No files found.
libavcodec/v4l2_buffers.h
View file @
4bb80133
...
...
@@ -65,8 +65,8 @@ typedef struct V4L2Buffer {
* @param[in] frame The AVFRame to push the information to
* @param[in] buf The V4L2Buffer to get the information from
*
* @returns 0 in case of success,
EINVAL
if the number of planes is incorrect,
*
ENOMEM
if the AVBufferRef cant be created.
* @returns 0 in case of success,
AVERROR(EINVAL)
if the number of planes is incorrect,
*
AVERROR(ENOMEM)
if the AVBufferRef cant be created.
*/
int
ff_v4l2_buffer_buf_to_avframe
(
AVFrame
*
frame
,
V4L2Buffer
*
buf
);
...
...
@@ -76,8 +76,8 @@ int ff_v4l2_buffer_buf_to_avframe(AVFrame *frame, V4L2Buffer *buf);
* @param[in] pkt The AVPacket to push the information to
* @param[in] buf The V4L2Buffer to get the information from
*
* @returns 0 in case of success,
EINVAL
if the number of planes is incorrect,
*
ENOMEM
if the AVBufferRef cant be created.
* @returns 0 in case of success,
AVERROR(EINVAL)
if the number of planes is incorrect,
*
AVERROR(ENOMEM)
if the AVBufferRef cant be created.
*
*/
int
ff_v4l2_buffer_buf_to_avpkt
(
AVPacket
*
pkt
,
V4L2Buffer
*
buf
);
...
...
@@ -88,7 +88,7 @@ int ff_v4l2_buffer_buf_to_avpkt(AVPacket *pkt, V4L2Buffer *buf);
* @param[in] frame AVPacket to get the data from
* @param[in] avbuf V4L2Bfuffer to push the information to
*
* @returns 0 in case of success,
negativ
e otherwise
* @returns 0 in case of success,
a negative AVERROR cod
e otherwise
*/
int
ff_v4l2_buffer_avpkt_to_buf
(
const
AVPacket
*
pkt
,
V4L2Buffer
*
out
);
...
...
@@ -98,7 +98,7 @@ int ff_v4l2_buffer_avpkt_to_buf(const AVPacket *pkt, V4L2Buffer *out);
* @param[in] frame AVFrame to get the data from
* @param[in] avbuf V4L2Bfuffer to push the information to
*
* @returns 0 in case of success,
negativ
e otherwise
* @returns 0 in case of success,
a negative AVERROR cod
e otherwise
*/
int
ff_v4l2_buffer_avframe_to_buf
(
const
AVFrame
*
frame
,
V4L2Buffer
*
out
);
...
...
@@ -108,7 +108,7 @@ int ff_v4l2_buffer_avframe_to_buf(const AVFrame *frame, V4L2Buffer* out);
* @param[in] avbuf V4L2Bfuffer to initialize
* @param[in] index v4l2 buffer id
*
* @returns 0 in case of success,
negativ
e otherwise
* @returns 0 in case of success,
a negative AVERROR cod
e otherwise
*/
int
ff_v4l2_buffer_initialize
(
V4L2Buffer
*
avbuf
,
int
index
);
...
...
@@ -117,7 +117,7 @@ int ff_v4l2_buffer_initialize(V4L2Buffer* avbuf, int index);
*
* @param[in] avbuf V4L2Bfuffer to push to the driver
*
* @returns 0 in case of success,
negativ
e otherwise
* @returns 0 in case of success,
a negative AVERROR cod
e otherwise
*/
int
ff_v4l2_buffer_enqueue
(
V4L2Buffer
*
avbuf
);
...
...
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