Skip to content

Commit

Permalink
return bits-per-pixel for each channel in JS wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Feb 24, 2025
1 parent e28b2c1 commit 367aabf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libheif/api/libheif/heif_emscripten.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ static emscripten::val heif_js_decode_image2(struct heif_image_handle* handle,
val_channel_info.set("width", heif_image_get_width(image, channel));
val_channel_info.set("height", heif_image_get_height(image, channel));

val_channel_info.set("bits_per_pixel", heif_image_get_bits_per_pixel_range(image, channel));

val_channels.call<void>("push", val_channel_info);
}
}
Expand Down

0 comments on commit 367aabf

Please sign in to comment.