ffmpeg:avcodec_decode_video
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
ffmpeg:avcodec_decode_video [2007/11/22 15:03] – created deva | ffmpeg:avcodec_decode_video [2007/11/22 16:47] – Cosmetic changes deva | ||
---|---|---|---|
Line 7: | Line 7: | ||
The avcodec_decode_video() function decodes a video frame from the input buffer '' | The avcodec_decode_video() function decodes a video frame from the input buffer '' | ||
- | **Warning**: The input buffer must be '' | + | **Warning:** The input buffer must be '' |
- | **Warning** The end of the input buffer '' | + | **Warning:** The end of the input buffer '' |
- | **Note** You might have to align the input buffer '' | + | **Note:** You might have to align the input buffer '' |
be 16 byte aligned unless the CPU doesn' | be 16 byte aligned unless the CPU doesn' | ||
Line 21: | Line 21: | ||
int buf_size); | int buf_size); | ||
</ | </ | ||
+ | |||
====Parameters==== | ====Parameters==== | ||
<code c> | <code c> | ||
- | avctx the codec context | + | A [[ffmpeg: |
---- | ---- | ||
+ | \\ | ||
<code c> | <code c> | ||
- | picture The AVFrame in which the decoded video frame will be stored. | + | A pointer to the [[ffmpeg:AVFrame]] in which the decoded video frame will be stored. |
---- | ---- | ||
+ | \\ | ||
<code c>int *got_picture_ptr</ | <code c>int *got_picture_ptr</ | ||
- | got_picture_ptr Zero if no frame could be decompressed, | + | An int pointer to which zero is written |
---- | ---- | ||
+ | \\ | ||
<code c> | <code c> | ||
- | buf the input buffer | + | The input buffer. |
---- | ---- | ||
+ | \\ | ||
<code c>int buf_size</ | <code c>int buf_size</ | ||
- | buf_size the size of the input buffer in bytes | + | The size of the input buffer in bytes. |
====Return value==== | ====Return value==== | ||
On error a negative value is returned, otherwise the number of bytes used or zero if no frame could be decompressed. | On error a negative value is returned, otherwise the number of bytes used or zero if no frame could be decompressed. |
ffmpeg/avcodec_decode_video.txt · Last modified: 2007/11/22 16:49 by deva