VLC 4.0.0-dev
|
Data Structures | |
struct | picture_priv_buffer_t |
Macros | |
#define | PICTURE_SW_SIZE_MAX (UINT32_C(1) << 28) /* 256MB: 8K * 8K * 4*/ |
Functions | |
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. | |
static void | picture_DestroyFromFormat (picture_t *pic) |
Destroys a picture allocated with picture_NewFromFormat(). | |
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). | |
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_t * | picture_NewFromResource (const video_format_t *p_fmt, const picture_resource_t *p_resource) |
This function will create a new picture using the provided resource. | |
picture_t * | picture_NewFromFormat (const video_format_t *restrict fmt) |
picture_t * | picture_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. | |
void | picture_Destroy (picture_t *picture) |
Destroys a picture without references. | |
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. | |
void | picture_CopyPixels (picture_t *p_dst, const picture_t *p_src) |
This function will copy the picture pixels. | |
void | picture_Copy (picture_t *p_dst, const picture_t *p_src) |
This function will copy both picture dynamic properties and pixels. | |
static void | picture_DestroyClone (picture_t *clone) |
picture_t * | picture_InternalClone (picture_t *picture, void(*pf_destroy)(picture_t *), void *opaque) |
picture_t * | picture_Clone (picture_t *picture) |
Perform a shallow picture copy. | |
int | picture_AttachAncillary (picture_t *pic, struct vlc_ancillary *ancillary) |
Attach an ancillary to the picture. | |
void * | picture_AttachNewAncillary (picture_t *pic, vlc_ancillary_id id, size_t size) |
Allocate a new ancillary and attach it to a picture. | |
struct vlc_ancillary * | picture_GetAncillary (const picture_t *pic, vlc_ancillary_id id) |
Return the ancillary identified by an ID. | |
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_codec, int i_override_width, int i_override_height, bool b_crop) |
This function will export a picture to an encoded bitstream. | |
#define PICTURE_SW_SIZE_MAX (UINT32_C(1) << 28) /* 256MB: 8K * 8K * 4*/ |
|
static |
References GCD().
Referenced by picture_Setup().
void * picture_Allocate | ( | int *restrict | fdp, |
size_t | size | ||
) |
References aligned_alloc().
Referenced by picture_NewFromFormat().
void picture_Deallocate | ( | int | fd, |
void * | base, | ||
size_t | size | ||
) |
References aligned_free.
Referenced by picture_DestroyFromFormat().
|
static |
References container_of, picture_priv_t::gc, picture_priv_t::opaque, and picture_Release().
Referenced by picture_Clone().
|
static |
Destroys a picture allocated by picture_NewFromResource() but without a custom destruction callback.
Referenced by picture_InitPrivate().
|
static |
Destroys a picture allocated with picture_NewFromFormat().
References picture_buffer_t::base, picture_buffer_t::fd, picture_t::p_sys, picture_Deallocate(), and picture_buffer_t::size.
Referenced by picture_NewFromFormat().
|
static |
References picture_priv_t::ancillaries, picture_t::date, picture_priv_t::destroy, picture_t::format, picture_priv_t::gc, picture_priv_t::opaque, picture_t::p_sys, picture_resource_t::p_sys, picture_resource_t::pf_destroy, picture_priv_t::picture, picture_DestroyDummy(), picture_Setup(), picture_t::refs, video_format_Clean(), video_format_Copy(), vlc_ancillary_array_Init(), vlc_atomic_rc_init(), and VLC_TICK_INVALID.
Referenced by picture_NewFromFormat(), and picture_NewFromResource().
picture_t * picture_InternalClone | ( | picture_t * | picture, |
void(*)(picture_t *) | pf_destroy, | ||
void * | opaque | ||
) |
References container_of, picture_t::context, picture_context_t::copy, picture_t::format, picture_priv_t::gc, plane_t::i_lines, plane_t::i_pitch, picture_t::i_planes, likely, picture_priv_t::opaque, picture_t::p, plane_t::p_pixels, picture_t::p_sys, picture_Hold(), picture_NewFromResource(), and picture_priv_buffer_t::res.
Referenced by picture_Clone(), and picture_pool_ClonePicture().
picture_t * picture_NewFromFormat | ( | const video_format_t *restrict | fmt | ) |
References picture_buffer_t::base, picture_buffer_t::fd, picture_t::format, picture_t::i_planes, picture_buffer_t::offset, p, picture_t::p, plane_t::p_pixels, picture_t::p_sys, picture_resource_t::p_sys, picture_priv_t::picture, picture_Allocate(), picture_DestroyFromFormat(), picture_InitPrivate(), PICTURE_PLANE_MAX, PICTURE_SW_SIZE_MAX, picture_priv_buffer_t::priv, picture_priv_buffer_t::res, picture_buffer_t::size, unlikely, and video_format_Clean().
Referenced by decoder_NewPicture(), filter_NewPicture(), picture_New(), picture_pool_NewFromFormat(), subpicture_region_New(), thumbnailer_buffer_new(), video_splitter_NewPicture(), and VoutVideoFilterStaticNewPicture().
int picture_Setup | ( | picture_t * | p_picture, |
const video_format_t *restrict | fmt | ||
) |
References ARRAY_SIZE, vlc_rational_t::den, picture_t::format, vlc_chroma_description_t::h, video_format_t::i_chroma, picture_t::i_nb_fields, picture_t::i_planes, LCM(), vlc_rational_t::num, p, picture_t::p, vlc_chroma_description_t::p, plane_t::p_pixels, vlc_chroma_description_t::pixel_size, vlc_chroma_description_t::plane_count, unlikely, video_format_CopyCrop(), video_format_Setup(), VLC_EGENERIC, vlc_fourcc_GetChromaDescription(), VLC_SUCCESS, and vlc_chroma_description_t::w.
Referenced by picture_InitPrivate().
|
static |
References picture_t::context, picture_context_t::destroy, picture_context_t::vctx, and vlc_video_context_Release().
Referenced by picture_Destroy(), and picture_Reset().