libavcodec API use example. More...
#include <stdlib.h>#include <stdio.h>#include <string.h>#include "libavcodec/avcodec.h"#include "libavutil/channel_layout.h"#include "libavutil/common.h"#include "libavutil/imgutils.h"#include "libavutil/mathematics.h"#include "libavutil/samplefmt.h"Go to the source code of this file.
Macros | |
| #define | INBUF_SIZE 4096 |
| #define | AUDIO_INBUF_SIZE 20480 |
| #define | AUDIO_REFILL_THRESH 4096 |
Functions | |
| static int | check_sample_fmt (AVCodec *codec, enum AVSampleFormat sample_fmt) |
| static int | select_sample_rate (AVCodec *codec) |
| static int | select_channel_layout (AVCodec *codec) |
| static void | audio_encode_example (const char *filename) |
| static void | audio_decode_example (const char *outfilename, const char *filename) |
| static void | video_encode_example (const char *filename) |
| static void | pgm_save (unsigned char *buf, int wrap, int xsize, int ysize, char *filename) |
| static void | video_decode_example (const char *outfilename, const char *filename) |
| int | main (int argc, char **argv) |
libavcodec API use example.
Definition in file api-example.c.
| #define AUDIO_INBUF_SIZE 20480 |
Definition at line 47 of file api-example.c.
Referenced by audio_decode_example().
| #define AUDIO_REFILL_THRESH 4096 |
Definition at line 48 of file api-example.c.
Referenced by audio_decode_example().
| #define INBUF_SIZE 4096 |
Definition at line 46 of file api-example.c.
Referenced by video_decode_example().
|
static |
Definition at line 223 of file api-example.c.
Referenced by main().
|
static |
Definition at line 106 of file api-example.c.
Referenced by main().
|
static |
Definition at line 51 of file api-example.c.
Referenced by audio_encode_example().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 575 of file api-example.c.
|
static |
Definition at line 443 of file api-example.c.
Referenced by video_decode_example().
|
static |
Definition at line 81 of file api-example.c.
Referenced by audio_encode_example().
|
static |
Definition at line 64 of file api-example.c.
Referenced by audio_encode_example().
|
static |
Definition at line 456 of file api-example.c.
Referenced by main().
|
static |
Definition at line 317 of file api-example.c.
Referenced by main().