Skip to content

Commit

Permalink
Debug through some Encoder cases and remove unnecessary codes.
Browse files Browse the repository at this point in the history
Signed-off-by: Wan, Hao <[email protected]>
  • Loading branch information
harvan committed Jan 15, 2025
1 parent 757cffa commit dcdce6e
Show file tree
Hide file tree
Showing 7 changed files with 233 additions and 2,876 deletions.
75 changes: 0 additions & 75 deletions c2_utils/include/mfx_c2_params.h

This file was deleted.

2 changes: 1 addition & 1 deletion unittests/include/test_streams.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#pragma once

#include <vector>
#include "mfx_c2_params.h"
#include <C2Config.h>
#include "mfxstructures.h"

struct StreamDescription
Expand Down
12 changes: 1 addition & 11 deletions unittests/src/c2_decoder_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1094,17 +1094,7 @@ static void Decode(
c2_blocking_t may_block{C2_MAY_BLOCK};
component->setListener_vb(validator, may_block);

C2MemoryTypeSetting setting;
setting.value = graphics_memory ? C2MemoryTypeGraphics : C2MemoryTypeSystem;

std::vector<C2Param*> params = { &setting };
std::vector<std::unique_ptr<C2SettingResult>> failures;
std::shared_ptr<C2ComponentInterface> comp_intf = component->intf();

c2_status_t sts = comp_intf->config_vb(params, may_block, &failures);
EXPECT_EQ(sts, C2_OK);

sts = component->start();
c2_status_t sts = component->start();
EXPECT_EQ(sts, C2_OK);

uint32_t frame_index = 0;
Expand Down
Loading

0 comments on commit dcdce6e

Please sign in to comment.