Parse the application extension.
- Parameters
-
| [in] | gif | The gif object we're decoding. |
| [in] | data | The data to decode. |
| [in] | len | Byte length of data. |
- Returns
- NSGIF_ERR_END_OF_DATA if more data is needed, NSGIF_OK for success.
Definition at line 846 of file gif.cpp.hpp.
850{
851
852
853
854
855
856
857
858
859 if (len < 17) {
861 }
862
864 enum {
865 EXT_LOOP_COUNT_SUB_BLOCK_SIZE = 0x03,
866 EXT_LOOP_COUNT_SUB_BLOCK_ID = 0x01,
867 };
868 if ((data[13] == EXT_LOOP_COUNT_SUB_BLOCK_SIZE) &&
869 (data[14] == EXT_LOOP_COUNT_SUB_BLOCK_ID)) {
871
872
873
874
875
876
879 }
880 }
881 }
882
884}
@ NSGIF_ERR_END_OF_DATA
Unexpected end of GIF source data.
static bool nsgif__app_ext_is_loop_count(const fl::u8 *data, fl::size len) FL_NOEXCEPT
Check an app ext identifier and authentication code for loop count extension.
int loop_max
number of times to play animation (zero means loop forever)
References FL_NOEXCEPT, nsgif__app_ext_is_loop_count(), NSGIF_ERR_END_OF_DATA, and NSGIF_OK.
Referenced by nsgif__parse_frame_extensions().