naming: alloc_yuv_t -> yuv_t_alloc dealloc_yuv_t -> yuv_t_free

This commit is contained in:
Laurent Fasnacht 2014-05-02 11:45:27 +02:00
parent 7d6d1d5536
commit 323054d5e2
3 changed files with 8 additions and 8 deletions

View file

@ -502,10 +502,10 @@ static void write_aud(encoder_state * const encoder_state)
static void substream_encode(encoder_state * const encoder_state, const int last_part) {
const encoder_control * const encoder = encoder_state->encoder_control;
yuv_t *hor_buf = alloc_yuv_t(encoder_state->cur_pic->width);
yuv_t *hor_buf = yuv_t_alloc(encoder_state->cur_pic->width);
// Allocate 2 extra luma pixels so we get 1 extra chroma pixel for the
// for the extra pixel on the top right.
yuv_t *ver_buf = alloc_yuv_t(LCU_WIDTH + 2);
yuv_t *ver_buf = yuv_t_alloc(LCU_WIDTH + 2);
cabac_start(&encoder_state->cabac);
init_contexts(encoder_state, encoder_state->QP, encoder_state->cur_pic->slicetype);
@ -609,8 +609,8 @@ static void substream_encode(encoder_state * const encoder_state, const int last
sao_reconstruct_frame(encoder_state);
}
dealloc_yuv_t(hor_buf);
dealloc_yuv_t(ver_buf);
yuv_t_free(hor_buf);
yuv_t_free(ver_buf);
}
static void subencoder_blit_pixels(const encoder_state * const target_enc, pixel * const target, const encoder_state * const source_enc, const pixel * const source, const int is_y_channel) {

View file

@ -36,7 +36,7 @@
#define PSNRMAX (255.0 * 255.0)
yuv_t * alloc_yuv_t(int luma_size)
yuv_t * yuv_t_alloc(int luma_size)
{
// Get buffers with separate mallocs in order to take advantage of
// automatic buffer overrun checks.
@ -49,7 +49,7 @@ yuv_t * alloc_yuv_t(int luma_size)
return yuv;
}
void dealloc_yuv_t(yuv_t * yuv)
void yuv_t_free(yuv_t * yuv)
{
free(yuv->y);
free(yuv->u);

View file

@ -206,8 +206,8 @@ typedef struct {
//////////////////////////////////////////////////////////////////////////
// FUNCTIONS
yuv_t * alloc_yuv_t(int luma_size);
void dealloc_yuv_t(yuv_t * yuv);
yuv_t * yuv_t_alloc(int luma_size);
void yuv_t_free(yuv_t * yuv);
picture * picture_alloc(int32_t width, int32_t height,
int32_t width_in_lcu, int32_t height_in_lcu);