[−][src]Function ffmpeg_dev::sys::ff_get_packet_palette
pub unsafe extern "C" fn ff_get_packet_palette(
s: *mut AVFormatContext,
pkt: *mut AVPacket,
ret: c_int,
palette: *mut u32
) -> c_int
Retrieves the palette from a packet, either from side data, or appended to the video data in the packet itself (raw video only). It is commonly used after a call to ff_reshuffle_raw_rgb().
Use 0 for the ret parameter to check for side data only.
@param pkt pointer to packet before calling ff_reshuffle_raw_rgb() @param ret return value from ff_reshuffle_raw_rgb(), or 0 @param palette pointer to palette buffer @return negative error code or 1 if the packet has a palette, else 0