mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-06 16:46:52 +08:00
Enhance Codec Iteration and Checking of HardwareConfigMethodFlags (#40)
* Add IterateCodecs, Add codec.HasHardwareConfigMethodFlag * Remove HasHardwareConfigMethodFlag test because git worklow does not support hw HasHardwareConfigMethodFlag is tested on my local device but does not work in git * Review Changes Remove unused arg in HardwareConfigs Add mehtod to get all codecs Update test * Remove codecporcessor type
This commit is contained in:
@@ -107,7 +107,7 @@ func main() {
|
||||
defer s.decCodecContext.Free()
|
||||
|
||||
// Loop through codec hardware configs
|
||||
for _, p := range s.decCodec.HardwareConfigs(hardwareDeviceType) {
|
||||
for _, p := range s.decCodec.HardwareConfigs() {
|
||||
// Valid hardware config
|
||||
if p.MethodFlags().Has(astiav.CodecHardwareConfigMethodFlagHwDeviceCtx) && p.HardwareDeviceType() == hardwareDeviceType {
|
||||
s.hardwarePixelFormat = p.PixelFormat()
|
||||
|
Reference in New Issue
Block a user