Created
December 1, 2013 18:14
-
-
Save streamer45/7738745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int kr_compositor_path_info_to_ebml(char *ebml, void *st, int32_t max) { | |
int res; | |
res = 0; | |
uber_St uber; | |
struct kr_compositor_path_info *actual; | |
if ((ebml == NULL) || (st == NULL) || (max < 1)) { | |
return -1; | |
} | |
actual = (struct kr_compositor_path_info*)st; | |
res += kr_ebml_pack_string(ebml, 0xe1, actual->name); | |
res += kr_ebml_pack_uint32(ebml, 0xe1, actual->width); | |
res += kr_ebml_pack_uint32(ebml, 0xe1, actual->height); | |
res += kr_ebml_pack_uint32(ebml, 0xe1, actual->crop_x); | |
res += kr_ebml_pack_uint32(ebml, 0xe1, actual->crop_y); | |
res += kr_ebml_pack_uint32(ebml, 0xe1, actual->crop_width); | |
res += kr_ebml_pack_uint32(ebml, 0xe1, actual->crop_height); | |
return res; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment