FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
avpicture.c File Reference

AVPicture management routines. More...

#include "avcodec.h"
#include "internal.h"
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
#include "libavutil/colorspace.h"

Go to the source code of this file.

Functions

int avpicture_fill (AVPicture *picture, const uint8_t *ptr, enum AVPixelFormat pix_fmt, int width, int height)
 Setup the picture fields based on the specified image parameters and the provided image data buffer. More...
 
int avpicture_layout (const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size)
 Copy pixel data from an AVPicture into a buffer. More...
 
int avpicture_get_size (enum AVPixelFormat pix_fmt, int width, int height)
 Calculate the size in bytes that a picture of the given width and height would occupy if stored in the given picture format. More...
 
int avpicture_alloc (AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height)
 Allocate memory for the pixels of a picture and setup the AVPicture fields for it. More...
 
void avpicture_free (AVPicture *picture)
 Free a picture previously allocated by avpicture_alloc(). More...
 
void av_picture_copy (AVPicture *dst, const AVPicture *src, enum AVPixelFormat pix_fmt, int width, int height)
 Copy image src to dst. More...
 

Detailed Description

AVPicture management routines.

Definition in file avpicture.c.