1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00
mpv/common
wm4 066ecfcbfb common: simplify and optimize string escape parsing
This code is shared between input.conf parser and option parser. Until
now, the performance didn't really matter. But I want to use this code
for JSON parsing too, and since JSON will have to be parsed a lot, it
should probably try to avoid realloc'ing too much.

This commit moves parsing of C-style escaped strings into a common
function, and allows using it in a way realloc can be completely
avoided, if the already allocated buffer is large enough.
2013-12-30 22:49:50 +01:00
..
asxparser.c asxparser: remove commented code 2013-12-22 23:43:09 +01:00
asxparser.h playlist_parser: mp_msg conversion 2013-12-21 21:43:16 +01:00
av_common.c av_common: abuse av_log to print message instead of mp_msg 2013-12-21 20:50:12 +01:00
av_common.h
av_log.c msg: rename mp_msg_log -> mp_msg 2013-12-21 22:13:04 +01:00
av_log.h av_log: mp_msg conversion 2013-12-21 21:43:16 +01:00
av_opts.c
av_opts.h
codecs.c msg: rename mp_msg_log -> mp_msg 2013-12-21 22:13:04 +01:00
codecs.h codecs: mp_msg conversion 2013-12-21 20:50:12 +01:00
common.c common: simplify and optimize string escape parsing 2013-12-30 22:49:50 +01:00
common.h common: simplify and optimize string escape parsing 2013-12-30 22:49:50 +01:00
cpudetect.c cpudetect: remove mp_msg calls 2013-12-21 21:43:17 +01:00
cpudetect.h
encode_lavc.c msg: remove global state 2013-12-21 23:11:12 +01:00
encode_lavc.h encode_lavc: mp_msg conversions 2013-12-21 21:43:16 +01:00
encode.h encode_lavc: mp_msg conversions 2013-12-21 21:43:16 +01:00
global.h
msg.c msg: add some comments about thread-safety 2013-12-22 12:29:50 +01:00
msg.h msg: remove global state 2013-12-21 23:11:12 +01:00
playlist_parser.c msg: rename mp_msg_log -> mp_msg 2013-12-21 22:13:04 +01:00
playlist_parser.h playlist_parser: mp_msg conversion 2013-12-21 21:43:16 +01:00
playlist.c
playlist.h
version.c Don't include version.h from make options.c 2013-12-22 14:35:45 +01:00