Skip to content

Instantly share code, notes, and snippets.

@streamer45
Created December 1, 2013 18:14
Show Gist options
  • Save streamer45/7738745 to your computer and use it in GitHub Desktop.
Save streamer45/7738745 to your computer and use it in GitHub Desktop.
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