/aosp_15_r20/external/mesa3d/src/util/ |
H A D | vl_vlc.h | 87 vl_vlc_next_input(struct vl_vlc *vlc) in vl_vlc_next_input() argument 89 unsigned len = vlc->sizes[0]; in vl_vlc_next_input() 91 assert(vlc); in vl_vlc_next_input() 92 assert(vlc->bytes_left); in vl_vlc_next_input() 94 if (len < vlc->bytes_left) in vl_vlc_next_input() 95 vlc->bytes_left -= len; in vl_vlc_next_input() 97 len = vlc->bytes_left; in vl_vlc_next_input() 98 vlc->bytes_left = 0; in vl_vlc_next_input() 101 vlc->data = (const uint8_t *) vlc->inputs[0]; in vl_vlc_next_input() 102 vlc->end = vlc->data + len; in vl_vlc_next_input() [all …]
|
/aosp_15_r20/external/mesa3d/src/gallium/frontends/va/ |
H A D | picture_av1_enc.c | 57 static unsigned av1_f(struct vl_vlc *vlc, unsigned n) in av1_f() argument 59 unsigned valid = vl_vlc_valid_bits(vlc); in av1_f() 65 vl_vlc_fillbits(vlc); in av1_f() 67 return vl_vlc_get_uimsbf(vlc, n); in av1_f() 70 static unsigned av1_uvlc(struct vl_vlc *vlc) in av1_uvlc() argument 76 bool done = av1_f(vlc, 1); in av1_uvlc() 85 value = av1_f(vlc, leadingZeros); in av1_uvlc() 90 static unsigned av1_uleb128(struct vl_vlc *vlc) in av1_uleb128() argument 97 leb128Bytes = av1_f(vlc, 8); in av1_uleb128() 353 static void av1_color_config(vlVaContext *context, struct vl_vlc *vlc) in av1_color_config() argument [all …]
|
H A D | picture_vp9.c | 166 static unsigned vp9_u(struct vl_vlc *vlc, unsigned n) in vp9_u() argument 168 unsigned valid = vl_vlc_valid_bits(vlc); in vp9_u() 174 vl_vlc_fillbits(vlc); in vp9_u() 176 return vl_vlc_get_uimsbf(vlc, n); in vp9_u() 179 static signed vp9_s(struct vl_vlc *vlc, unsigned n) in vp9_s() argument 184 v = vp9_u(vlc, n); in vp9_s() 185 s = vp9_u(vlc, 1); in vp9_s() 190 static void bitdepth_colorspace_sampling(struct vl_vlc *vlc, unsigned profile) in bitdepth_colorspace_sampling() argument 196 vp9_u(vlc, 1); in bitdepth_colorspace_sampling() 198 cs = vp9_u(vlc, 3); in bitdepth_colorspace_sampling() [all …]
|
H A D | picture_h264_enc.c | 722 struct vl_vlc vlc = {0}; in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() local 728 vl_vlc_init(&vlc, 1, (const void * const*)&data, &buf->size); in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 730 while (vl_vlc_bits_left(&vlc) > 0) { in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 732 for (int i = 0; i < 64 && vl_vlc_bits_left(&vlc) >= 24; ++i) { in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 733 if (vl_vlc_peekbits(&vlc, 24) == 0x000001) in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 735 vl_vlc_eatbits(&vlc, 8); in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 736 vl_vlc_fillbits(&vlc); in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 739 unsigned start = vlc.data - data - vl_vlc_valid_bits(&vlc) / 8; in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 753 vl_vlc_eatbits(&vlc, 24); /* eat the startcode */ in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() 755 if (vl_vlc_valid_bits(&vlc) < 15) in vlVaHandleVAEncPackedHeaderDataBufferTypeH264() [all …]
|
H A D | picture_hevc_enc.c | 995 struct vl_vlc vlc = {0}; in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() local 1001 vl_vlc_init(&vlc, 1, (const void * const*)&data, &buf->size); in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1003 while (vl_vlc_bits_left(&vlc) > 0) { in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1005 for (int i = 0; i < 64 && vl_vlc_bits_left(&vlc) >= 24; ++i) { in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1006 if (vl_vlc_peekbits(&vlc, 24) == 0x000001) in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1008 vl_vlc_eatbits(&vlc, 8); in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1009 vl_vlc_fillbits(&vlc); in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1012 unsigned start = vlc.data - data - vl_vlc_valid_bits(&vlc) / 8; in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1026 vl_vlc_eatbits(&vlc, 24); /* eat the startcode */ in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() 1028 if (vl_vlc_valid_bits(&vlc) < 15) in vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC() [all …]
|
H A D | picture.c | 375 struct vl_vlc vlc = {0}; in bufHasStartcode() local 379 vl_vlc_init(&vlc, 1, (const void * const*)&buf->data, &buf->size); in bufHasStartcode() 380 for (i = 0; i < 64 && vl_vlc_bits_left(&vlc) >= bits; ++i) { in bufHasStartcode() 381 if (vl_vlc_peekbits(&vlc, bits) == code) in bufHasStartcode() 383 vl_vlc_eatbits(&vlc, 8); in bufHasStartcode() 384 vl_vlc_fillbits(&vlc); in bufHasStartcode()
|
/aosp_15_r20/external/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_mpeg12_bitstream.c | 628 vl_vlc_fillbits(&bs->vlc); in motion_vector() 629 motion_code = vl_vlc_get_vlclbf(&bs->vlc, tbl_B10, 11); in motion_vector() 633 int residual = vl_vlc_get_uimsbf(&bs->vlc, r_size) + 1; in motion_vector() 640 dmvector[t] = vl_vlc_get_vlclbf(&bs->vlc, tbl_B11, 2); in motion_vector() 662 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; in motion_vector_frame() 667 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << (s + 2); in motion_vector_frame() 686 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; in motion_vector_field() 689 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << (s + 2); in motion_vector_field() 693 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; in motion_vector_field() 717 vl_vlc_fillbits(&bs->vlc); in decode_dct() [all …]
|
/aosp_15_r20/external/pdfium/third_party/libopenjpeg/ |
H A D | ht_dec.c | 193 v |= 0xF; // MEL and VLC segments can overlap in mel_read() 293 * @param [in] lcup is the length of MagSgn+MEL+VLC segments 294 * @param [in] scup is the length of MEL+VLC segments 306 melp->size = scup - 1; // size is the length of MEL+VLC-1 in mel_init() 325 d |= 0xF; //if this is MEL+VLC-1, set LSBs to 0xF in mel_init() 362 * backward, such as VLC and MRP 377 * This reader can read up to 8 bytes from before the VLC segment. 408 if (vlcp->size > 3) { // if there are more than 3 bytes left in VLC in rev_read() 454 * sum of the lengths of VLC and MEL segments), and first unstuff depends 459 * @param [in] lcup is the length of MagSgn+MEL+VLC segments [all …]
|
/aosp_15_r20/external/intel-media-driver/media_common/agnostic/common/codec/shared/ |
H A D | codec_def_encode_hevc.h | 123 …0, //!< Coded slice segment of a non-TSA, non-STSA trailing picture - slice_segment_layer_rbsp, VLC 124 …1, //!< Coded slice segment of a non-TSA, non-STSA trailing picture - slice_segment_layer_rbsp, VLC 125 …TSA_N = 0x02, //!< Coded slice segment of a TSA picture - slice_segment_layer_rbsp, VLC 126 …TSA_R = 0x03, //!< Coded slice segment of a TSA picture - slice_segment_layer_rbsp, VLC 127 … HEVC_NAL_UT_STSA_N = 0x04, //!< Coded slice of an STSA picture - slice_layer_rbsp, VLC 128 … HEVC_NAL_UT_STSA_R = 0x05, //!< Coded slice of an STSA picture - slice_layer_rbsp, VLC 129 … HEVC_NAL_UT_RADL_N = 0x06, //!< Coded slice of an RADL picture - slice_layer_rbsp, VLC 130 … HEVC_NAL_UT_RADL_R = 0x07, //!< Coded slice of an RADL picture - slice_layer_rbsp, VLC 131 … HEVC_NAL_UT_RASL_N = 0x08, //!< Coded slice of an RASL picture - slice_layer_rbsp, VLC 132 … HEVC_NAL_UT_RASL_R = 0x09, //!< Coded slice of an RASL picture - slice_layer_rbsp, VLC [all …]
|
/aosp_15_r20/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
H A D | datapart_encode.cpp | 83 /* determine which VLC table to be used */ in EncodeFrameDataPartMode() 133 /* MB VLC Encode: VLC Encode MB */ in EncodeFrameDataPartMode() 139 /* Assemble Packets: Assemble the MB VLC codes into Packets */ in EncodeFrameDataPartMode() 289 /* determine which VLC table to be used */ in EncodeSliceDataPartMode() 349 /* MB VLC Encode: VLC Encode MB */ in EncodeSliceDataPartMode() 352 /* save the state before VLC encoding */ in EncodeSliceDataPartMode() 370 /* Assemble Packets: Assemble the MB VLC codes into Packets */ in EncodeSliceDataPartMode()
|
H A D | combined_encode.cpp | 86 /* determine which VLC table to be used */ in EncodeFrameCombinedMode() 162 /* MB VLC Encode: VLC Encode MB */ in EncodeFrameCombinedMode() 168 /* Assemble Packets: Assemble the MB VLC codes into Packets */ in EncodeFrameCombinedMode() 343 /* determine which VLC table to be used */ in EncodeSliceCombinedMode() 431 /* MB VLC Encode: VLC Encode MB */ in EncodeSliceCombinedMode() 434 /* save the state before VLC encoding */ in EncodeSliceCombinedMode() 452 /* Assemble Packets: Assemble the MB VLC codes into Packets */ in EncodeSliceCombinedMode()
|
/aosp_15_r20/frameworks/av/media/module/codecs/m4v_h263/dec/src/ |
H A D | vlc_dequant.cpp | 66 /*** VLC *****/ in VlcDequantMpegIntraBlock() 105 /* perform only VLC decoding */ in VlcDequantMpegIntraBlock() 106 /* We cannot do DCACrecon before VLC decoding. 10/17/2000 */ in VlcDequantMpegIntraBlock() 392 /*** VLC *****/ in VlcDequantMpegInterBlock() 517 /*** VLC *****/ in VlcDequantH263IntraBlock() 548 /* perform only VLC decoding */ in VlcDequantH263IntraBlock() 819 /*** VLC *****/ in VlcDequantH263IntraBlock_SH() 928 /* perform only VLC decoding */ in VlcDequantH263IntraBlock_SH() 1075 /*** VLC *****/ in VlcDequantH263InterBlock()
|
H A D | vlc_dec_tab.h | 65 * Description: This file contains the VLC tables for module which deals 66 * with VLC decoding. 83 * 01.05.97 Luis Ducla-Soares: added VM7.0 Reversible VLC tables (RVLC). 84 * 13.05.97 Minhua Zhou: added VlC tables for CBPYtab2 CBPYtab3,
|
/aosp_15_r20/external/clang/unittests/AST/ |
H A D | CommentParser.cpp | 574 VerbatimLineComment *&VLC, in HasVerbatimLineAt() argument 577 ::testing::AssertionResult AR = GetChildAt(C, Idx, VLC); in HasVerbatimLineAt() 581 StringRef ActualName = VLC->getCommandName(Traits); in HasVerbatimLineAt() 587 StringRef ActualText = VLC->getText(); in HasVerbatimLineAt() 1398 VerbatimLineComment *VLC; in TEST_F() local 1399 ASSERT_TRUE(HasVerbatimLineAt(FC, Traits, 1, VLC, "fn", "")); in TEST_F() 1416 VerbatimLineComment *VLC; in TEST_F() local 1417 ASSERT_TRUE(HasVerbatimLineAt(FC, Traits, 1, VLC, "fn", in TEST_F()
|
/aosp_15_r20/external/intel-media-driver/media_driver/agnostic/common/codec/hal/ |
H A D | codechal_decode_vc1.h | 796 //! \brief Wrapper function to get VLC from VC1 bitstream according to VLC Table 798 //! Pointer to VLC Table 845 //! \brief Get VLC from VC1 bitstream according to VLC Table 847 //! Pointer to VLC Table
|
/aosp_15_r20/external/mesa3d/src/vulkan/runtime/ |
H A D | vk_video.c | 1066 struct vl_vlc vlc; in vk_video_parse_h265_slice_header() local 1068 vl_vlc_init(&vlc, 1, slice_headers, &slice_size); in vk_video_parse_h265_slice_header() 1070 assert(vl_vlc_peekbits(&vlc, 24) == 0x000001); in vk_video_parse_h265_slice_header() 1072 vl_vlc_eatbits(&vlc, 24); in vk_video_parse_h265_slice_header() 1075 vl_vlc_eatbits(&vlc, 1); in vk_video_parse_h265_slice_header() 1077 if (vl_vlc_valid_bits(&vlc) < 15) in vk_video_parse_h265_slice_header() 1078 vl_vlc_fillbits(&vlc); in vk_video_parse_h265_slice_header() 1080 vl_vlc_get_uimsbf(&vlc, 6); /* nal_unit_type */ in vk_video_parse_h265_slice_header() 1081 vl_vlc_get_uimsbf(&vlc, 6); /* nuh_layer_id */ in vk_video_parse_h265_slice_header() 1082 vl_vlc_get_uimsbf(&vlc, 3); /* nuh_temporal_id_plus1 */ in vk_video_parse_h265_slice_header() [all …]
|
/aosp_15_r20/external/XNNPACK/src/f32-vsigmoid/gen/ |
H A D | vsigmoid-sse41-rr2-lut64-p2-div-x16.c | 89 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x16() local 91 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x16() 126 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x16() local 128 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x16()
|
H A D | vsigmoid-sse2-rr2-lut64-p2-div-x16.c | 95 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse2_rr2_lut64_p2_div_x16() local 98 const __m128i vlCD = _mm_unpacklo_epi32(vlC, vlD); in xnn_f32_vsigmoid_ukernel__sse2_rr2_lut64_p2_div_x16() 140 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse2_rr2_lut64_p2_div_x16() local 143 const __m128i vlCD = _mm_unpacklo_epi32(vlC, vlD); in xnn_f32_vsigmoid_ukernel__sse2_rr2_lut64_p2_div_x16()
|
H A D | vsigmoid-sse41-rr2-lut64-p2-div-x20.c | 94 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x20() local 96 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x20() 138 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x20() local 140 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x20()
|
H A D | vsigmoid-sse41-rr2-lut64-p2-div-x24.c | 99 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x24() local 101 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x24() 150 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_64 … in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x24() local 152 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_vsigmoid_ukernel__sse41_rr2_lut64_p2_div_x24()
|
/aosp_15_r20/external/XNNPACK/src/f32-velu/gen/ |
H A D | velu-sse41-rr2-lut16-p3-x16.c | 94 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x16() local 96 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x16() 131 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x16() local 133 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x16()
|
H A D | velu-sse41-rr2-lut16-p3-x20.c | 99 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x20() local 101 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x20() 143 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x20() local 145 …const __m128i vlCD = _mm_insert_epi32(vlC, *((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_… in xnn_f32_velu_ukernel__sse41_rr2_lut16_p3_x20()
|
H A D | velu-sse2-rr2-lut16-p3-x16.c | 100 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x16() local 103 const __m128i vlCD = _mm_unpacklo_epi32(vlC, vlD); in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x16() 145 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x16() local 148 const __m128i vlCD = _mm_unpacklo_epi32(vlC, vlD); in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x16()
|
H A D | velu-sse2-rr2-lut16-p3-x20.c | 105 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x20() local 108 const __m128i vlCD = _mm_unpacklo_epi32(vlC, vlD); in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x20() 159 …const __m128i vlC = _mm_cvtsi32_si128(*((const int*) ((uintptr_t) xnn_table_exp2minus_k_over_16 … in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x20() local 162 const __m128i vlCD = _mm_unpacklo_epi32(vlC, vlD); in xnn_f32_velu_ukernel__sse2_rr2_lut16_p3_x20()
|
/aosp_15_r20/external/mesa3d/src/gallium/frontends/vdpau/ |
H A D | decode.c | 964 struct vl_vlc vlc = {}; in vlVdpDecoderFixVC1Startcode() local 968 vl_vlc_init(&vlc, *num_buffers, buffers, sizes); in vlVdpDecoderFixVC1Startcode() 969 while (vl_vlc_search_byte(&vlc, 64*8, 0x00) && vl_vlc_bits_left(&vlc) >= 32) { in vlVdpDecoderFixVC1Startcode() 970 uint32_t value = vl_vlc_peekbits(&vlc, 32); in vlVdpDecoderFixVC1Startcode() 975 vl_vlc_eatbits(&vlc, 8); in vlVdpDecoderFixVC1Startcode()
|