Advertisement
Guest User

Untitled

a guest
Jan 27th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. void X264_Decode_Convert_gbr24p_to_packed32(uint8_t** src, uint8_t *dst, int width, int height) {
  2. int arrlen = width * height * 4;
  3.  
  4. for (int i = 0; i < arrlen; i++) {
  5. ((int*) dst)[i / 4] = src[1][i / 4] + (src[0][i / 4] << 8) + (src[2][i / 4] << 16) + (0xff << 24);
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement