mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
9d3ba472dd
* - added ffmpeg stuff to cmake * - added observer_ptr * ffmpeg utils * WIP * - added ffmpeg_decoder * config file for test data * another test file * install ffmpeg * added ffmpeg_demuxer * install all ffmpeg libraries * support older version of ffmpeg * simplified loop * - test converting to dlib object - added docs - support older ffmpeg * added convert() overload * added comment * only register stuff when API not deprecated * - fixed version issues - fixed decoding * added tests for ffmpeg_demuxer * removed unused code * test GIF * added docs * added audio test * test for audio * more tests * review changes * don't need observer_ptr * made deps public. I could be wrong but just in case. * - added some static asserts. Some areas of the code might do memcpy's on arrays of pixels. This requires the structures to be packed. Check this. - added convert() functions - changed default decoder options. By default, always decode to RGB and S16 audio - added convenience constructor to demuxer * - no longer need opencv * oops. I let that slip * - made a few functions public - more precise requires clauses * enhanced example * - avoid FFMPEG_INITIALIZED being optimized away at link time - added decoding example * - avoid -Wunused-parameter error * constexpr and noexcept correctness. This probably makes no difference to performance, BUT, it's what the core guidelines tell you to do. It does however demonstrate how complicated and unecessarily verbose C++ is becoming. Sigh, maybe one day i'll make the switch to something that doesn't make my eyes twitch. * - simplified metadata structure * hopefully more educational * added another example * ditto * typo * screen grab example * whoops * avoid -Wunused-parameter errors * ditto * - added methods to av_dict - print the demuxer format options that were not used - enhanced webcam_face_pose_ex.cpp so you can set webcam options * if height and width are specified, attempt to set video_size in format_options. Otherwise set the bilinear resizer. * updated docs * once again, the ffmpeg APIs do a lot for you. It's a matter of knowing which APIs to call. * made header-only * - some Werror thing * don't use type_safe_union * - templated sample type - reverted deep copy of AVFrame for frame copy constructor * - added is_pixel_type and is_pixel_check * unit tests for pixel traits * enhanced is_image_type type trait and added is_image_check * added unit tests for is_image_type * added pix_traits, improved convert() functions * bug fix * get rid of -Werror=unused-variable error * added a type alias * that's the last of the manual memcpys gone. We'using ffmpeg API everywhere now for copying frames to buffers and back * missing doc * set framerate for webcam * list input devices * oops. I was trying to make ffmpeg 5 happy but i've given up on ffmpeg v5 compatibility in this PR. Future PR. * enhanced the information provided by list_input_devices and list_output_devices * removed vscode settings.json file * - added a type trait for checking whether a type is complete. This is useful for writing type traits that check other types have type trait specializations. But also other useful things. For example, std::unique_ptr uses something similar to this. * Davis was keen to simply check pixel_traits is specialised. That's equivalent to checking pixel_traits<> is complete for some type * code review * juse use the void_t in dlib/type_traits.h * one liners * just need is_image_check * more tests for is_image_type * i think this is correct * removed printf * better docs * Keep opencv out of it * keep old face pose example, then add new one which uses dlib's ffmpeg wrappers * revert * revert * better docs * better docs --------- Co-authored-by: pf <pf@me> |
||
---|---|---|
.. | ||
faces | ||
johns | ||
video_frames | ||
3d_point_cloud_ex.cpp | ||
assignment_learning_ex.cpp | ||
bayes_net_ex.cpp | ||
bayes_net_from_disk_ex.cpp | ||
bayes_net_gui_ex.cpp | ||
bridge_ex.cpp | ||
bsp_ex.cpp | ||
CMakeLists.txt | ||
compress_stream_ex.cpp | ||
config_reader_ex.cpp | ||
config.txt | ||
custom_trainer_ex.cpp | ||
dir_nav_ex.cpp | ||
dnn_dcgan_train_ex.cpp | ||
dnn_face_recognition_ex.cpp | ||
dnn_imagenet_ex.cpp | ||
dnn_imagenet_train_ex.cpp | ||
dnn_inception_ex.cpp | ||
dnn_instance_segmentation_ex.cpp | ||
dnn_instance_segmentation_ex.h | ||
dnn_instance_segmentation_train_ex.cpp | ||
dnn_introduction2_ex.cpp | ||
dnn_introduction3_ex.cpp | ||
dnn_introduction_ex.cpp | ||
dnn_metric_learning_ex.cpp | ||
dnn_metric_learning_on_images_ex.cpp | ||
dnn_mmod_dog_hipsterizer.cpp | ||
dnn_mmod_ex.cpp | ||
dnn_mmod_face_detection_ex.cpp | ||
dnn_mmod_find_cars2_ex.cpp | ||
dnn_mmod_find_cars_ex.cpp | ||
dnn_mmod_train_find_cars_ex.cpp | ||
dnn_self_supervised_learning_ex.cpp | ||
dnn_semantic_segmentation_ex.cpp | ||
dnn_semantic_segmentation_ex.h | ||
dnn_semantic_segmentation_train_ex.cpp | ||
dnn_yolo_train_ex.cpp | ||
empirical_kernel_map_ex.cpp | ||
face_detection_ex.cpp | ||
face_landmark_detection_ex.cpp | ||
ffmpeg_info.cpp | ||
ffmpeg_screen_grab.cpp | ||
ffmpeg_video_decoding.cpp | ||
ffmpeg_video_demuxing.cpp | ||
ffmpeg_webcam_face_pose_ex.cpp | ||
fhog_ex.cpp | ||
fhog_object_detector_ex.cpp | ||
file_to_code_ex.cpp | ||
graph_labeling_ex.cpp | ||
gui_api_ex.cpp | ||
hough_transform_ex.cpp | ||
image_ex.cpp | ||
integrate_function_adapt_simp_ex.cpp | ||
iosockstream_ex.cpp | ||
kcentroid_ex.cpp | ||
kkmeans_ex.cpp | ||
krls_ex.cpp | ||
krls_filter_ex.cpp | ||
krr_classification_ex.cpp | ||
krr_regression_ex.cpp | ||
learning_to_track_ex.cpp | ||
least_squares_ex.cpp | ||
LICENSE_FOR_EXAMPLE_PROGRAMS.txt | ||
linear_manifold_regularizer_ex.cpp | ||
logger_custom_output_ex.cpp | ||
logger_ex_2.cpp | ||
logger_ex.cpp | ||
matrix_ex.cpp | ||
matrix_expressions_ex.cpp | ||
max_cost_assignment_ex.cpp | ||
member_function_pointer_ex.cpp | ||
mlp_ex.cpp | ||
mmod_cars_test_image2.jpg | ||
mmod_cars_test_image.jpg | ||
model_selection_ex.cpp | ||
mpc_ex.cpp | ||
multiclass_classification_ex.cpp | ||
multithreaded_object_ex.cpp | ||
object_detector_advanced_ex.cpp | ||
object_detector_ex.cpp | ||
one_class_classifiers_ex.cpp | ||
optimization_ex.cpp | ||
parallel_for_ex.cpp | ||
pascal_voc_2012.h | ||
pipe_ex_2.cpp | ||
pipe_ex.cpp | ||
quantum_computing_ex.cpp | ||
queue_ex.cpp | ||
random_cropper_ex.cpp | ||
rank_features_ex.cpp | ||
resnet.h | ||
running_stats_ex.cpp | ||
rvm_ex.cpp | ||
rvm_regression_ex.cpp | ||
sequence_labeler_ex.cpp | ||
sequence_segmenter_ex.cpp | ||
server_http_ex.cpp | ||
server_iostream_ex.cpp | ||
sockets_ex.cpp | ||
sockstreambuf_ex.cpp | ||
sqlite_ex.cpp | ||
std_allocator_ex.cpp | ||
surf_ex.cpp | ||
svm_c_ex.cpp | ||
svm_ex.cpp | ||
svm_pegasos_ex.cpp | ||
svm_rank_ex.cpp | ||
svm_sparse_ex.cpp | ||
svm_struct_ex.cpp | ||
svr_ex.cpp | ||
thread_function_ex.cpp | ||
thread_pool_ex.cpp | ||
threaded_object_ex.cpp | ||
threads_ex.cpp | ||
timer_ex.cpp | ||
train_object_detector.cpp | ||
train_shape_predictor_ex.cpp | ||
using_custom_kernels_ex.cpp | ||
video_tracking_ex.cpp | ||
webcam_face_pose_ex.cpp | ||
xml_parser_ex.cpp |