@ -3165,6 +3165,7 @@ typedef struct AVHWAccel {
* @ }
*/
# if FF_API_AVPICTURE
/**
* @ defgroup lavc_picture AVPicture
*
@ -3176,6 +3177,7 @@ typedef struct AVHWAccel {
* four components are given , that ' s all .
* the last component is alpha
*/
attribute_deprecated
typedef struct AVPicture {
uint8_t * data [ AV_NUM_DATA_POINTERS ] ;
int linesize [ AV_NUM_DATA_POINTERS ] ; ///< number of bytes per line
@ -3184,6 +3186,7 @@ typedef struct AVPicture {
/**
* @ }
*/
# endif
# define AVPALETTE_SIZE 1024
# define AVPALETTE_COUNT 256
@ -4132,81 +4135,70 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
* @ }
*/
# if FF_API_AVPICTURE
/**
* @ addtogroup lavc_picture
* @ {
*/
/**
* Allocate memory for a picture . Call avpicture_free ( ) to free it .
*
* @ see avpicture_fill ( )
*
* @ param picture the picture to be filled in
* @ param pix_fmt the format of the picture
* @ param width the width of the picture
* @ param height the height of the picture
* @ return zero if successful , a negative value if not
* @ deprecated unused
*/
attribute_deprecated
int avpicture_alloc ( AVPicture * picture , enum AVPixelFormat pix_fmt , int width , int height ) ;
/**
* Free a picture previously allocated by avpicture_alloc ( ) .
* The data buffer used by the AVPicture is freed , but the AVPicture structure
* itself is not .
*
* @ param picture the AVPicture to be freed
* @ deprecated unused
*/
attribute_deprecated
void avpicture_free ( AVPicture * picture ) ;
/**
* Fill in the AVPicture fields , always assume a linesize alignment of 1.
*
* @ see av_image_fill_arrays ( ) .
* @ deprecated use av_image_fill_arrays ( ) instead .
*/
attribute_deprecated
int avpicture_fill ( AVPicture * picture , uint8_t * ptr ,
enum AVPixelFormat pix_fmt , int width , int height ) ;
/**
* Copy pixel data from an AVPicture into a buffer , always assume a
* linesize alignment of 1.
*
* @ see av_image_copy_to_buffer ( ) .
* @ deprecated use av_image_copy_to_buffer ( ) instead .
*/
attribute_deprecated
int avpicture_layout ( const AVPicture * src , enum AVPixelFormat pix_fmt ,
int width , int height ,
unsigned char * dest , int dest_size ) ;
/**
* Calculate the size in bytes that a picture of the given width and height
* would occupy if stored in the given picture format .
* Always assume a linesize alignment of 1.
*
* @ see av_image_get_buffer_size ( ) .
* @ deprecated use av_image_get_buffer_size ( ) instead .
*/
attribute_deprecated
int avpicture_get_size ( enum AVPixelFormat pix_fmt , int width , int height ) ;
/**
* Copy image src to dst . Wraps av_picture_data_copy ( ) above .
* @ deprecated av_image_copy ( ) instead .
*/
attribute_deprecated
void av_picture_copy ( AVPicture * dst , const AVPicture * src ,
enum AVPixelFormat pix_fmt , int width , int height ) ;
/**
* Crop image top and left side .
* @ deprecated unused
*/
attribute_deprecated
int av_picture_crop ( AVPicture * dst , const AVPicture * src ,
enum AVPixelFormat pix_fmt , int top_band , int left_band ) ;
/**
* Pad image .
* @ deprecated unused
*/
attribute_deprecated
int av_picture_pad ( AVPicture * dst , const AVPicture * src , int height , int width , enum AVPixelFormat pix_fmt ,
int padtop , int padbottom , int padleft , int padright , int * color ) ;
/**
* @ }
*/
# endif
/**
* @ defgroup lavc_misc Utility functions