Mercurial > libavcodec.hg
comparison cyuv.c @ 2028:141a9539e270 libavcodec
data_size = 0 cleanup
author | michael |
---|---|
date | Fri, 21 May 2004 14:37:16 +0000 |
parents | 86220e37a31e |
children | 08cf92c2f7c0 |
comparison
equal
deleted
inserted
replaced
2027:3a78447c3b53 | 2028:141a9539e270 |
---|---|
78 | 78 |
79 unsigned char y_pred, u_pred, v_pred; | 79 unsigned char y_pred, u_pred, v_pred; |
80 int stream_ptr; | 80 int stream_ptr; |
81 unsigned char cur_byte; | 81 unsigned char cur_byte; |
82 int pixel_groups; | 82 int pixel_groups; |
83 | |
84 *data_size = 0; | |
85 | 83 |
86 /* sanity check the buffer size: A buffer has 3x16-bytes tables | 84 /* sanity check the buffer size: A buffer has 3x16-bytes tables |
87 * followed by (height) lines each with 3 bytes to represent groups | 85 * followed by (height) lines each with 3 bytes to represent groups |
88 * of 4 pixels. Thus, the total size of the buffer ought to be: | 86 * of 4 pixels. Thus, the total size of the buffer ought to be: |
89 * (3 * 16) + height * (width * 3 / 4) */ | 87 * (3 * 16) + height * (width * 3 / 4) */ |