aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cllc.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-08-10 16:05:47 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-08-12 15:07:00 -0400
commitf4bb38cc26a4c91707194ea0b2290a028c546f7d (patch)
treef099d3821ffa160a3ced093110add3ca6a68794e /libavcodec/cllc.c
parent3b9e832e17c3956082e589433fb0e08092cb291e (diff)
downloadffmpeg-f4bb38cc26a4c91707194ea0b2290a028c546f7d.tar.gz
cllc: Rename some funcs to represent what they actually do
This is in preparation for adding support for other colorspaces and coding types. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/cllc.c')
-rw-r--r--libavcodec/cllc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/cllc.c b/libavcodec/cllc.c
index d23da181ba..703f546ea9 100644
--- a/libavcodec/cllc.c
+++ b/libavcodec/cllc.c
@@ -74,8 +74,8 @@ static int read_code_table(CLLCContext *ctx, GetBitContext *gb, VLC *vlc)
codes, 2, 2, symbols, 1, 1, 0);
}
-static int read_line(CLLCContext *ctx, GetBitContext *gb, int *top_left,
- VLC *vlc, uint8_t *outbuf)
+static int read_rgb24_component_line(CLLCContext *ctx, GetBitContext *gb,
+ int *top_left, VLC *vlc, uint8_t *outbuf)
{
uint8_t *dst;
int pred, code;
@@ -104,7 +104,7 @@ static int read_line(CLLCContext *ctx, GetBitContext *gb, int *top_left,
return 0;
}
-static int decode_bgr24_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
+static int decode_rgb24_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
{
AVCodecContext *avctx = ctx->avctx;
uint8_t *dst;
@@ -137,7 +137,7 @@ static int decode_bgr24_frame(CLLCContext *ctx, GetBitContext *gb, AVFrame *pic)
/* Read in and restore every line */
for (i = 0; i < avctx->height; i++) {
for (j = 0; j < 3; j++)
- read_line(ctx, gb, &pred[j], &vlc[j], &dst[j]);
+ read_rgb24_component_line(ctx, gb, &pred[j], &vlc[j], &dst[j]);
dst += pic->linesize[0];
}
@@ -219,7 +219,7 @@ static int cllc_decode_frame(AVCodecContext *avctx, void *data,
return ret;
}
- ret = decode_bgr24_frame(ctx, &gb, pic);
+ ret = decode_rgb24_frame(ctx, &gb, pic);
if (ret < 0)
return ret;