Skip to content

Commit

Permalink
Merge pull request #518 from szlldm/libva_av1
Browse files Browse the repository at this point in the history
[ADM_videoEncoder] VA-API AV1 encoder
  • Loading branch information
eumagga0x2a committed Jul 21, 2024
2 parents da1218d + 0f9b1b4 commit fcd1b75
Show file tree
Hide file tree
Showing 12 changed files with 590 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

class ADM_VA_GlobalAV1
{
public:
ADM_VA_GlobalAV1() { profile = VAProfileNone; }
VAProfile profile;
};

const ADM_VA_GlobalAV1 *vaGetAV1EncoderProfile();
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,18 @@
#include "ADM_coreLibVA_encodingContext.h"
#include "ADM_coreLibVA_h264Encoding.h"
#include "ADM_coreLibVA_hevcEncoding.h"
#include "ADM_coreLibVA_av1Encoding.h"


bool ADM_initLibVAEncoder(void);
static bool initDone=false;

ADM_VA_GlobalH264 globalH264Caps;
ADM_VA_GlobalHEVC globalHevcCaps;
ADM_VA_GlobalAV1 globalAV1Caps;
const ADM_VA_GlobalH264 *vaGetH264EncoderProfile() {return &globalH264Caps;};
const ADM_VA_GlobalHEVC *vaGetHevcEncoderProfile() {return &globalHevcCaps;};
const ADM_VA_GlobalAV1 *vaGetAV1EncoderProfile() {return &globalAV1Caps;};

#if 0

Expand Down Expand Up @@ -113,6 +116,11 @@ static bool lookupSupportedFormat(VAProfile profile)
bool ADM_initLibVAEncoder(void)
{
ADM_info("initializing VA encoder\n");
if(lookupSupportedFormat(VAProfileAV1Profile0))
{
ADM_info("AV1 Profile0 is supported\n");
globalAV1Caps.profile=VAProfileAV1Profile0;
}
if(lookupSupportedFormat(VAProfileHEVCMain))
{
ADM_info("HEVC Main is supported\n");
Expand Down
1 change: 1 addition & 0 deletions avidemux_plugins/ADM_videoEncoder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ IF(DO_COMMON)
ADD_SUBDIRECTORY(directVaEnc)
ADD_SUBDIRECTORY(ffVaH264)
ADD_SUBDIRECTORY(ffVaHEVC)
ADD_SUBDIRECTORY(ffVaAV1)
ENDIF(USE_LIBVA)
IF(USE_VIDEOTOOLBOX)
ADD_SUBDIRECTORY(ffVTEnc)
Expand Down
Loading

0 comments on commit fcd1b75

Please sign in to comment.