OSDN Git Service

test for replaceBitmapData Lossless with alpha0
[swfed/swfed.git] / src / swf_shape_record_end.c
1 #include <stdio.h>
2 #include "bitstream.h"
3 #include "swf_shape_record_end.h"
4
5 int
6 swf_shape_record_end_parse(bitstream_t *bs,
7                            swf_shape_record_end_t *shape_record_end) {
8     shape_record_end->shape_record_type = bitstream_getbit(bs);
9     shape_record_end->end_of_shape = bitstream_getbits(bs, 5);
10     return 0;
11 }
12
13 int
14 swf_shape_record_end_build(bitstream_t *bs,
15                            swf_shape_record_end_t *shape_record_end) {
16     bitstream_putbit(bs, shape_record_end->shape_record_type);
17     bitstream_putbits(bs, shape_record_end->end_of_shape, 5);
18     return 0;
19 }
20
21 int
22 swf_shape_record_end_print(int indent_depth) {
23     print_indent(indent_depth);
24     printf("end_of_shape\n");
25     return 0;
26 }