Commit Graph

9 Commits

Author SHA1 Message Date
Maizer
e4be514918 1. Adds hardware_frames_constraints to retrieve valid HWPixelFormats and SWPixelFormats for specific hardware frame configurations. (#151)
2. Implements a HardwareFramesConstraints method in hardware_device_context to obtain these constraints for a given hardware frames context.
2025-05-15 14:33:28 +02:00
Quentin Renard
4f133cd508 Added hardware device/frame context Free() method 2024-11-22 13:52:42 +01:00
Quentin Renard
b15d5d0e04 Added links to C doc 2024-11-14 09:01:26 +01:00
l0rem1psum
cfdc7f196f feat: create hardware device context with flags (#94) 2024-11-05 09:00:41 +01:00
Quentin Renard
09a88834bb Moved all c code to .h and .c files + removed struc_ prefix when not needed 2024-09-05 11:38:25 +02:00
Quentin Renard
e7c92c0115 Moved #cgo directives to a unique file 2024-09-05 10:26:52 +02:00
Quentin Renard
33d572de98 Added filter thread methods 2024-05-21 10:10:26 +02:00
Quentin Renard
d4abd8ded6 Fixed hardware device context buffer unref 2024-01-31 14:52:23 +01:00
Cacsjep
767f28bc3d Implementation for HW Context (#32)
* Adding HW Context

* Check for hw pixel format and transfer data on ReciveFrame when its hw pixel format

* Remove hw_decoding example and update demuxing_dec example

* unref hw_device_ctx, and improve example

Unref correctly hw_device_ctx on free
decoding example has now a flag for hw decoding
Use error on hw context because its good to know the error that happen
Add a method to list supported hw codecs so user could check if system has a specif hwcodec before the create a hw context

* Fix test to use err, and update hw with device to also return error

* revert changes in demux example

* Add/Modify according to review

Seperate Hardware Device Context and Test
Renaming HW to Hardware
Create dedicated hardware_decoding Example
Update Readme
Add TransferHardwareData to frame.go
Add SetHardwareDeviceContext to codec_context.go

* Review changes

add HardwareConfigs to codec
create codec_hardware_config
create codec_hardware_config_method_flag
update example
update flags
better error handling in TransferHardwareData
update CreateHardwareDeviceContext, better null handling
remove hw ctx test because it fails when no nvidia is present
some reordering of conss in hardware_device_type

* Minor tweaks (review changes)

HardwareConfigs only returns a slice an no error anymore
remove if HardwareDeviceType checking in codec.go this should be done by user
order codec hw_config_method_flags constants alphabetically
some small changes in example
##  hardware_device_context.go
change link
update optionsC
2024-01-24 18:23:12 +01:00