ffmpeg:avcodec_decode_video
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ffmpeg:avcodec_decode_video [2007/11/22 15:03] – created deva | ffmpeg:avcodec_decode_video [2007/11/22 16:49] (current) – More cosmetics... deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====avcodec_decode_video===== | =====avcodec_decode_video===== | ||
+ | ====Overview==== | ||
Defined in '' | Defined in '' | ||
- | ====Overview==== | ||
Decodes a video frame from '' | Decodes a video frame from '' | ||
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==== | ||
+ | ===avctx=== | ||
<code c> | <code c> | ||
- | avctx the codec context | + | A [[ffmpeg: |
- | ---- | + | |
+ | ===picture=== | ||
<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. |
- | ---- | + | |
+ | ===got_picture_ptr=== | ||
<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 |
- | ---- | + | |
+ | ===buf=== | ||
<code c> | <code c> | ||
- | buf the input buffer | + | The input buffer. |
- | ---- | + | |
+ | ===buf_size=== | ||
<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.1195740184.txt.gz · Last modified: 2007/11/22 15:03 by deva