Skip to content

Commit

Permalink
Remove deprecated function mlt_frame_get_alpha_mask()
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatherly committed Mar 24, 2021
1 parent f773e89 commit bb8b80c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion docs/framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,6 @@ mlt_frame:
mlt_position mlt_frame_get_position( mlt_frame this );
int mlt_frame_set_position( mlt_frame this, mlt_position value );
int mlt_frame_get_image( mlt_frame this, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable );
uint8_t *mlt_frame_get_alpha_mask( mlt_frame this );
int mlt_frame_get_audio( mlt_frame this, int16_t **buffer, mlt_audio_format *format, int *frequency, int *channels, int *samples );
int mlt_frame_push_get_image( mlt_frame this, mlt_get_image get_image );
mlt_get_image mlt_frame_pop_get_image( mlt_frame this );
Expand Down
20 changes: 0 additions & 20 deletions src/framework/mlt_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,27 +533,7 @@ int mlt_frame_get_image( mlt_frame self, uint8_t **buffer, mlt_image_format *for
* \return the alpha channel
*/

uint8_t *mlt_frame_get_alpha_mask( mlt_frame self )
{
uint8_t *alpha = NULL;
if ( self != NULL )
{
alpha = mlt_properties_get_data( &self->parent, "alpha", NULL );
if ( alpha == NULL )
{
int size = mlt_properties_get_int( &self->parent, "width" ) * mlt_properties_get_int( &self->parent, "height" );
alpha = mlt_pool_alloc( size );
memset( alpha, 255, size );
mlt_properties_set_data( &self->parent, "alpha", alpha, size, mlt_pool_release, NULL );
}
}
return alpha;
}

/** Get the alpha channel associated to the frame (without creating if it has not).
*
* Unlike mlt_frame_get_alpha_mask(), this function does NOT create an alpha
* channel if one does not already exist.
*
* \public \memberof mlt_frame_s
* \param self a frame
Expand Down
1 change: 0 additions & 1 deletion src/framework/mlt_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ extern int mlt_frame_set_image( mlt_frame self, uint8_t *image, int size, mlt_de
extern int mlt_frame_set_alpha( mlt_frame self, uint8_t *alpha, int size, mlt_destructor destroy );
extern void mlt_frame_replace_image( mlt_frame self, uint8_t *image, mlt_image_format format, int width, int height );
extern int mlt_frame_get_image( mlt_frame self, uint8_t **buffer, mlt_image_format *format, int *width, int *height, int writable );
extern uint8_t *mlt_frame_get_alpha_mask( mlt_frame self );
extern uint8_t *mlt_frame_get_alpha( mlt_frame self );
extern int mlt_frame_get_audio( mlt_frame self, void **buffer, mlt_audio_format *format, int *frequency, int *channels, int *samples );
extern int mlt_frame_set_audio( mlt_frame self, void *buffer, mlt_audio_format, int size, mlt_destructor );
Expand Down

0 comments on commit bb8b80c

Please sign in to comment.