VLC  4.0.0-dev
Data Structures | Macros | Functions
picture.c File Reference
Include dependency graph for picture.c:

Data Structures

struct  picture_priv_buffer_t


#define PICTURE_SW_SIZE_MAX   (UINT32_C(1) << 28) /* 256MB: 8K * 8K * 4*/


static void PictureDestroyContext (picture_t *p_picture)
static void picture_DestroyDummy (picture_t *p_picture)
 Destroys a picture allocated by picture_NewFromResource() but without a custom destruction callback. More...
static void picture_DestroyFromFormat (picture_t *pic)
 Destroys a picture allocated with picture_NewFromFormat(). More...
void * picture_Allocate (int *restrict fdp, size_t size)
void picture_Deallocate (int fd, void *base, size_t size)
void picture_Reset (picture_t *p_picture)
 This function will reset a picture information (properties and quantizers). More...
static int LCM (int a, int b)
int picture_Setup (picture_t *p_picture, const video_format_t *restrict fmt)
static bool picture_InitPrivate (const video_format_t *restrict p_fmt, picture_priv_t *priv, const picture_resource_t *p_resource)
picture_tpicture_NewFromResource (const video_format_t *p_fmt, const picture_resource_t *p_resource)
 This function will create a new picture using the provided resource. More...
picture_tpicture_NewFromFormat (const video_format_t *restrict fmt)
picture_tpicture_New (vlc_fourcc_t i_chroma, int i_width, int i_height, int i_sar_num, int i_sar_den)
 This function will create a new picture. More...
void picture_Destroy (picture_t *picture)
 Destroys a picture without references. More...
void plane_CopyPixels (plane_t *p_dst, const plane_t *p_src)
void picture_CopyProperties (picture_t *p_dst, const picture_t *p_src)
 This function will copy all picture dynamic properties. More...
void picture_CopyPixels (picture_t *p_dst, const picture_t *p_src)
 This function will copy the picture pixels. More...
void picture_Copy (picture_t *p_dst, const picture_t *p_src)
 This function will copy both picture dynamic properties and pixels. More...
static void picture_DestroyClone (picture_t *clone)
picture_tpicture_InternalClone (picture_t *picture, void(*pf_destroy)(picture_t *), void *opaque)
picture_tpicture_Clone (picture_t *picture)
 Perform a shallow picture copy. More...
int picture_Export (vlc_object_t *p_obj, block_t **pp_image, video_format_t *p_fmt, picture_t *p_picture, vlc_fourcc_t i_format, int i_override_width, int i_override_height, bool b_crop)
 This function will export a picture to an encoded bitstream. More...

Macro Definition Documentation


#define PICTURE_SW_SIZE_MAX   (UINT32_C(1) << 28) /* 256MB: 8K * 8K * 4*/

Function Documentation

◆ LCM()

static int LCM ( int  a,
int  b 

References GCD().

Referenced by picture_Setup().

◆ picture_Allocate()

void* picture_Allocate ( int *restrict  fdp,
size_t  size 

References aligned_alloc().

Referenced by picture_NewFromFormat().

◆ picture_Deallocate()

void picture_Deallocate ( int  fd,
void *  base,
size_t  size 

References aligned_free.

Referenced by picture_DestroyFromFormat().

◆ picture_DestroyClone()

static void picture_DestroyClone ( picture_t clone)

References picture_Release().

Referenced by picture_Clone().

◆ picture_DestroyDummy()

static void picture_DestroyDummy ( picture_t p_picture)

Destroys a picture allocated by picture_NewFromResource() but without a custom destruction callback.

Referenced by picture_InitPrivate().

◆ picture_DestroyFromFormat()

static void picture_DestroyFromFormat ( picture_t pic)

◆ picture_InitPrivate()

static bool picture_InitPrivate ( const video_format_t *restrict  p_fmt,
picture_priv_t priv,
const picture_resource_t p_resource 

◆ picture_InternalClone()

picture_t* picture_InternalClone ( picture_t picture,
void(*)(picture_t *)  pf_destroy,
void *  opaque 

◆ picture_NewFromFormat()

picture_t* picture_NewFromFormat ( const video_format_t *restrict  fmt)

◆ picture_Setup()

int picture_Setup ( picture_t p_picture,
const video_format_t *restrict  fmt 

◆ PictureDestroyContext()

static void PictureDestroyContext ( picture_t p_picture)